From 8f04c779957591a72be5d8f456a34c787a7b739b Mon Sep 17 00:00:00 2001 From: JeanElsner Date: Mon, 11 Dec 2023 23:17:02 +0100 Subject: [PATCH] Don't raise exception on physics error. This is now default behavior. Raised exceptions can be proglematic when training agents in batches or in a distributed manner. --- src/dm_robotics/panda/environment.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dm_robotics/panda/environment.py b/src/dm_robotics/panda/environment.py index 548e830..6303491 100644 --- a/src/dm_robotics/panda/environment.py +++ b/src/dm_robotics/panda/environment.py @@ -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