Skip to content

Commit fcb0806

Browse files
committed
feat(so101): config for sim mode
1 parent c79f892 commit fcb0806

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

python/rcs_so101/env_joint_control.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,24 @@ def main():
2828
else:
2929
cfg = sim.SimRobotConfig()
3030
cfg.robot_type = rcs.common.RobotType.SO101
31+
cfg.actuators = ["1", "2", "3", "4", "5"]
32+
cfg.joints = ["1", "2", "3", "4", "5"]
33+
cfg.arm_collision_geoms = []
34+
cfg.attachment_site = "gripper"
35+
36+
grp_cfg = sim.SimGripperConfig()
37+
grp_cfg.actuator = "6"
38+
grp_cfg.joint = "6"
39+
grp_cfg.collision_geoms = []
40+
grp_cfg.collision_geoms_fingers = []
41+
3142
env_rel = SO101SimEnvCreator()(
3243
control_mode=ControlMode.JOINTS,
3344
urdf_path="/home/tobi/coding/lerobot/so101_new_calib.urdf",
3445
robot_cfg=cfg,
3546
collision_guard=False,
3647
mjcf="/home/tobi/coding/lerobot/SO-ARM100/Simulation/SO101/scene.xml",
37-
gripper_cfg=default_fr3_sim_gripper_cfg(),
48+
gripper_cfg=grp_cfg,
3849
# camera_set_cfg=default_mujoco_cameraset_cfg(),
3950
max_relative_movement=None,
4051
# max_relative_movement=10.0,

0 commit comments

Comments
 (0)