opensi·si

YAM is a 6-DOF arm from I2RT Robotics for imitation learning and embodied AI. In LeRobot, yamfollower drives one standard YAM v1 arm with the linear DM4310 gripper, and…

YAM

YAM is a 6-DOF arm from I2RT Robotics for imitation learning and embodied AI. In LeRobot, yam_follower drives one standard YAM v1 arm with the linear DM4310 gripper, and bi_yam_follower drives two. Use them with lerobot-calibrate, lerobot-rollout and lerobot-replay. LeRobot has no YAM leader arm yet, so a YAM is driven by a policy or by replaying a dataset.

Assemble and wire the arms with I2RT's guides; this page covers the LeRobot side.

Guide What it covers
YAM Arm Series Unboxing, mounting, wiring, motors and grippers
Software setup CAN adapters, bitrate and fixed interface names
YAM Cell Bimanual station with two followers and leaders

YAM follower (left) and YAM Cell bimanual station (right). LeRobot drives the followers. Images courtesy of I2RT Robotics.

Hardware and safety

Each arm has seven motors with IDs 1 to 7: DM4340 for joints 1 to 3, and DM4310 for joints 4 to 6 and the gripper. YAM Pro, Ultra, BIG YAM and the other grippers are not supported yet.

You need:

  • Linux, and one USB-to-CAN adapter per arm (SocketCAN, classic CAN at 1 Mbit/s).
  • Every motor's CAN timeout set to at most 400 ms (8000 ticks, I2RT's value), for example with set_timeout.py --timeout from the I2RT SDK. The timeout is the last safeguard if LeRobot stops sending commands, so LeRobot won't enable torque without it.
  • Internet access the first time you connect: gravity compensation downloads the YAM model from the lerobot/robot-urdfs bucket and caches it under HF_LEROBOT_HOME/robot-urdfs/yam/v1.

Warning Bolt the arm to a stable surface and keep its workspace clear. Disconnecting disables torque, and the arm falls under gravity: support it first. If power or a CAN adapter disconnects while it runs, stop the program, support the arm, then reconnect.

Install LeRobot 🤗

Follow the Installation Guide, then install YAM support:

pip install -e ".[yam]"

This installs motorbridge and python-can for the arm, and placo for gravity compensation.

Connect the hardware

Each arm needs its own CAN interface, because both arms use the same motor IDs.

lerobot-setup-can --mode=setup --interfaces=can0 --use_fd=false

Use --interfaces=can0,can1 for two arms. The command configures the Linux interfaces with sudo ip link and sends no motor commands. With two arms, can0 and can1 can swap after a reboot: check which arm each interface drives, or give them fixed names such as can_follower_l with I2RT's software setup, and use those names as the port.

Device types

Type Device
yam_follower Single follower
bi_yam_follower Bimanual follower

With two arms, set each arm's options with --robot.left_arm_config.<option> and --robot.right_arm_config.<option>.

Calibration

Calibration measures only the gripper limits, fully closed and fully open: the joints keep their factory zeros. Fold the arm first, as shown below. Torque is off while you measure: support the arm, move only the gripper by hand, and press Enter at each prompt. If a calibration already exists, connecting starts control: press Enter to reuse it, or type c to measure again, and LeRobot asks you to support the arm before turning torque off.

Folded position, with every joint at zero (left), and the linear DM4310 gripper (right). Images courtesy of I2RT Robotics.

Single arm

lerobot-calibrate --robot.type=yam_follower --robot.port=can0 --robot.id=yam

Two arms

The left gripper is measured first, then the right one, into <id>_left and <id>_right files.

lerobot-calibrate --robot.type=bi_yam_follower --robot.id=bimanual_yam \
  --robot.left_arm_config.port=can0 --robot.right_arm_config.port=can1

Use the same --robot.id in later commands, so LeRobot loads the saved file.

Observations and actions

One arm has joint_1.pos to joint_6.pos, then gripper.pos, for both observations and actions. Joints are absolute angles in degrees, and the gripper goes from 0 (closed) to 100 (open). use_degrees=false switches to radians and 0 to 1, as I2RT and MolmoAct2 data use. use_velocity_and_torque=true adds .vel and .torque observations. Actions are absolute joint targets, clipped to the joint limits.

Two arms use the same names with left_ and right_ prefixes. Cameras set on an arm are prefixed too, while top-level --robot.cameras keep their names.

Run a policy

Put the arm in its folded position, with every joint at zero, before connecting: LeRobot checks that every joint is within 11.5° of it, then starts control from the measured position. Nothing moves until the policy sends an action.

lerobot-rollout \
  --robot.type=yam_follower --robot.port=can0 --robot.id=yam \
  --robot.cameras='{"wrist": {"type": "opencv", "index_or_path": 0, "width": 640, "height": 480, "fps": 30}}' \
  --policy.path=<user>/<policy> \
  --task="Pick up the cube"

For two arms, use --robot.type=bi_yam_follower --robot.id=bimanual_yam --robot.left_arm_config.port=can0 --robot.right_arm_config.port=can1. Add --dataset.repo_id=<user>/rollout_<name> to record the rollout; see Run inference and evaluate your policy. lerobot-replay replays a recorded episode with the same --robot.* options.

Before the first action, and when no action arrives for command_timeout_s (1 s), the arm holds its position. With idle_mode=float, the joints are instead gravity-compensated and lightly damped so you can move the arm by hand, while the gripper keeps its opening; tracking resumes from wherever you moved it.