@@ -37,8 +37,6 @@ def __call__( # type: ignore
3737 control_mode : ControlMode ,
3838 ip : str ,
3939 calibration_dir : PathLike | str | None = None ,
40- collision_guard : str | PathLike | None = None ,
41- cg_kinematics_path : str | PathLike | None = None ,
4240 camera_set : HardwareCameraSet | None = None ,
4341 hand_cfg : THConfig | None = None ,
4442 max_relative_movement : float | tuple [float , float ] | None = None ,
@@ -47,7 +45,6 @@ def __call__( # type: ignore
4745 if isinstance (calibration_dir , str ):
4846 calibration_dir = Path (calibration_dir )
4947 robot = XArm7 (ip = ip )
50- # env: gym.Env = RobotEnv(robot, ControlMode.JOINTS, home_on_reset=True)
5148 env : gym .Env = RobotEnv (robot , control_mode , home_on_reset = True )
5249
5350 if camera_set is not None :
@@ -59,20 +56,6 @@ def __call__( # type: ignore
5956 hand = TilburgHand (cfg = hand_cfg , verbose = True )
6057 env = HandWrapper (env , hand , True )
6158
62- # if collision_guard:
63- # env = CollisionGuard.env_from_xml_paths(
64- # env=env,
65- # cg_kinematics_path=cg_kinematics_path,
66- # hand=True,
67- # gripper=False,
68- # check_home_collision=False,
69- # control_mode=control_mode,
70- # tcp_offset=rcs.common.Pose(),
71- # sim_gui=True,
72- # truncate_on_collision=True,
73- # id="",
74- # )
75-
7659 if max_relative_movement is not None :
7760 env = RelativeActionSpace (env , max_mov = max_relative_movement , relative_to = relative_to )
7861
0 commit comments