@@ -145,8 +145,8 @@ def test_collision_trpy(self, cfg, gripper_cfg, cam_cfg):
145145 )
146146 obs , _ = env .reset ()
147147 # an obvious below ground collision action
148- obs ["xyzrpy" ][0 ] = 0.3
149- obs ["xyzrpy" ][2 ] = - 0.2
148+ obs ["xyzrpy" ][0 ] = 0.4
149+ obs ["xyzrpy" ][2 ] = - 0.05
150150 collision_action = TRPYDictType (xyzrpy = obs ["xyzrpy" ])
151151 collision_action .update (GripperDictType (gripper = 0 ))
152152 obs , _ , _ , _ , info = env .step (collision_action )
@@ -163,14 +163,14 @@ def test_collision_guard_trpy(self, cfg, gripper_cfg, cam_cfg):
163163 gripper_cfg = gripper_cfg ,
164164 collision_guard = True ,
165165 camera_set_cfg = cam_cfg ,
166- max_relative_movement = 0.5 ,
166+ max_relative_movement = None ,
167167 )
168168 obs , _ = env .reset ()
169169 unwrapped = cast (FR3Env , env .unwrapped )
170170 p1 = unwrapped .robot .get_joint_position ()
171171 # an obvious below ground collision action
172- obs ["xyzrpy" ][0 ] = 0.3
173- obs ["xyzrpy" ][2 ] = - 0.2
172+ obs ["xyzrpy" ][0 ] = 0.4
173+ obs ["xyzrpy" ][2 ] = - 0.05
174174 collision_action = TRPYDictType (xyzrpy = obs ["xyzrpy" ])
175175 collision_action .update (GripperDictType (gripper = 0 ))
176176 _ , _ , _ , _ , info = env .step (collision_action )
@@ -265,8 +265,8 @@ def test_collision_tquart(self, cfg, gripper_cfg, cam_cfg):
265265 )
266266 obs , _ = env .reset ()
267267 # an obvious below ground collision action
268- obs ["tquart" ][0 ] = 0.3
269- obs ["tquart" ][2 ] = - 0.2
268+ obs ["tquart" ][0 ] = 0.4
269+ obs ["tquart" ][2 ] = - 0.05
270270 collision_action = TQuartDictType (tquart = obs ["tquart" ])
271271 collision_action .update (GripperDictType (gripper = 0 ))
272272 _ , _ , _ , _ , info = env .step (collision_action )
@@ -289,8 +289,8 @@ def test_collision_guard_tquart(self, cfg, gripper_cfg, cam_cfg):
289289 unwrapped = cast (FR3Env , env .unwrapped )
290290 p1 = unwrapped .robot .get_joint_position ()
291291 # an obvious below ground collision action
292- obs ["tquart" ][0 ] = 0.3
293- obs ["tquart" ][2 ] = - 0.2
292+ obs ["tquart" ][0 ] = 0.4
293+ obs ["tquart" ][2 ] = - 0.05
294294 collision_action = TQuartDictType (tquart = obs ["tquart" ])
295295 collision_action .update (GripperDictType (gripper = 0 ))
296296 _ , _ , _ , _ , info = env .step (collision_action )
0 commit comments