Skip to content

Commit

Permalink
Don't raise exception on physics error.
Browse files Browse the repository at this point in the history
This is now default behavior. Raised exceptions can be proglematic
when training agents in batches or in a distributed manner.
  • Loading branch information
JeanElsner committed Dec 11, 2023
1 parent 07e8b39 commit 8f04c77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dm_robotics/panda/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def build_task_environment(self) -> subtask_env.SubTaskEnvironment:

env_builder.set_action_space(full_action_space)
env = env_builder.build()
env._env._raise_exception_on_physics_error = False

return env

Expand Down

0 comments on commit 8f04c77

Please sign in to comment.