Robot Hand

Results at a Glance

  • As a first task, we trained an ACT policy to control an Alt-Bionics Surge robot hand to firmly grasp a mug by the handle, lift and rotate the mug, and finally place the mug and release the grip. This task is difficult for a 1-DOF gripper, especially if the mug is heavy.
  • A subtle motion of the thumb successfully helps release the grip.
  • The hand successfully lifts the mug even when it contains a heavy unbalanced load.

A First Experiment

Fig 1. Fully autonomous ACT policy. Alt-Bionics Surge robot hand.
Note: subtle thumb motion to release the grip!
Fig 2. Same ACT policy. Alt-Bionics Surge robot hand.
The unbalanced load plus the mug weighs a total of 1.5 lbs.

We attached a 6-DOF Alt-Bionics Surge robot hand to a Trossen WidowX AI arm in place of the gripper. To teleoperate the hand, we used a Manus MetaGloves Pro glove. We also used the glove's absolute rotation angle to control the wrist joints -- joints 3,4,5 -- of the arm. For the remaining three arm joints, we used a Trossen leader arm. We trained an ACT model on our pick up mug dataset for 100K training steps. As shown in Fig 1, the model successfully learned to pick up and release the mug.

  • Thumb motion: As shown in Fig 1, the thumb performs a subtle motion to help release the mug.
  • Heavy objects: One advantage of a hand over a gripper is the ability to use leverage and to spread pressure, which helps the hand lift the mug even when it contains a heavy unbalanced load -- 1.5 lbs load plus mug -- as shown in Fig 2.
  • Teleoperation of the hand: To control the hand with the Manus glove required acquiring a dataset of glove-hand finger position correspondences and then performing a regression.
  • New robot modules: To control both the Surge hand and the WidowX arm simultaneously in lerobot_teleoperate.py, lerobot_record.py, and lerobot_rollout.py, new robot modules which have 6 arm plus 6 hand actions/states were built in our fork of the Trossen lerobot plugin repo. For teleoperation, the new leader module reads both the leader arm position and the Manus glove outputs.
Back to top

Implementation Details

Closeup of Alt-Bionics Surge hand attached to Trossen WidowX AI arm
Fig 3. Alt-Bionics hand attached to Trossen WidowX AI.
Note: arm camera is flipped upside down.
  • Hardware: Alt-Bionics machined a hand-robot connector specifically for the WidowX AI which fit beautifully in place of the current gripper, as shown in Fig 3. The hand communicates over low bandwidth serial via RS-485 with ASCII AT commands. Notice that we flipped the WidowX camera upside down because it was aimed at the top of the hand so object views were blocked. This also required adding --robot.cameras={... rotation: 180 ...} to the camera command line (see below) in order to flip the image.

    For teleoperation, Fig 4, we use the Manus MetaGloves Pro which we purchased bundled with the Alt-Bionics hand. The glove communicates with a wireless USB dongle and requires the Manus .so library and their API and a license key embedded in the dongle which comes with the glove. The glove controls the Surge's fingers and the WidowX's wrist joints 3,4,5, the latter using its built-in 3-DOF wrist rotation angle sensor. That leaves only joints 0,1,2 to be controlled by the WidowX leader arm. We may eventually replace this leader arm with a wireless wrist tracker in the future.

    To combine both glove and leader arm, we removed the gripper from the leader arm, and used a flexible strap to attach the person's lower arm to the leader arm, as shown in Fig 4. Note that we set the command option --teleop.end_effector_palm_mass=0.468 for the leader arm so the arm controller will compensate properly for gravity with the leader gripper removed.

    We use three D405 RealSense cameras, one on the follower arm, one facing the arm head-on, and one perpendicular to the arm, as shown in Fig 5.
  • Teleoperation: We use the lerobot_teleoperate.py script -- with some mods to workflow for smoother arm/hand/glove control -- in our fork of the latest LeRobot repo:
    uv run python -m lerobot.scripts.lerobot_teleoperate \ --robot.type=widowxai_follower_robot_surge \ --robot.ip_address=192.168.1.3 \ --robot.id=follower \ '--robot.staged_positions=[0, 0.261799, 0.261799, 0, 0, 0, 0.04]' \ --robot.max_relative_target=0.5 \ --teleop.type=widowxai_leader_teleop_surge \ --teleop.ip_address=192.168.1.2 \ --teleop.id=leader \ '--teleop.staged_positions=[0, 0.261799, 0.261799, 0, 0, 0, 0.04]' \ --teleop.end_effector_palm_mass=0.468 \ --teleop.freeze_wrist=true \ '--robot.cameras={ cam_right_wrist: {type: intelrealsense, serial_number_or_name: "260522279125", width: 640, height: 480, fps: 30, rotation: 180}, cam_left_wrist: {type: intelrealsense, serial_number_or_name: "260522278146", width: 640, height: 480, fps: 30}, cam_high: {type: intelrealsense, serial_number_or_name: "260522274929", width: 640, height: 480, fps: 30} }' \ --teleop_time_s=1200 \ --display_data=true
    The follower robot, widowxai_follower_robot_surge, and the leader robot, widowxai_leader_teleop_surge, are new plugins in our fork of the Trossen LeRobot repo. These new classes wrap the Trossen follower and leader classes together with Alt-Bionics hand and Manus glove commands.

    Note that the leader end_effector_palm_mass is set to 0.468 to re-balance the gravity compensation after removing the leader gripper. Also, note that the robot.cameras cam_right_wrist has rotation: 180 to flip the follower camera back to upright since it is physically up-side-down, see Fig 3.

    Communication with the Surge hand and Manus glove is provided by our python package, altbionics. As mentioned above, the hand uses RS-485 serial ASCII AT commands which are listed in their documentation. For the glove, the calls are to the Manus API which requires their libManusSDK_Integrated.so library as well as their wireless dongle with license key. In addition to the API in our altbionics package, we include some GUI testing apps in the examples folder. These include hand_test.py which allows direct control of the hand using the keyboard and graphically displays, as well, the finger sensor responses if those are connected. Note that the hand boots up in 'Manus' mode, AT+SMC=1, in which commanded joint angles sent to the hand are not physical angles. Hence we turn this mode off: AT+SMC=0.
  • Glove-Hand calibration: We spent quite a bit of time refining the mapping from glove finger positions to hand joint angles. What has worked best so far is to map raw glove finger positions to hand joint angles, rather than use the finger angles computed in the Manus SDK. To do so, we used examples/calibrate_app.py to collect a set of corresponding glove and hand positions. This data was then run through fit_hand_coeffs.py which performs linear regression on the data (we have tried quadratic regression as well). The regression coefficients are then hard coded -- cut and paste -- into ik.py which makes the transform available for glove control of the hand. Optimizing the glove-hand transform continues to be a work in progress.
  • Recording a Dataset: We used the lerobot_record.py script -- again with some workflow mods -- to record a 50-episode lerobot dataset of the hand lifting the mug, which we uploaded to Hugging Face:
    uv run python -m lerobot.scripts.lerobot_record \ --robot.type=widowxai_follower_robot_surge \ --robot.ip_address=192.168.1.3 \ --robot.id=follower \ '--robot.cameras={ cam_right_wrist: {type: intelrealsense, serial_number_or_name: "260522279125", width: 640, height: 480, fps: 30, rotation: 180}, cam_left_wrist: {type: intelrealsense, serial_number_or_name: "260522278146", width: 640, height: 480, fps: 30}, cam_high: {type: intelrealsense, serial_number_or_name: "260522274929", width: 640, height: 480, fps: 30} }' \ '--robot.staged_positions=[0, 0.261799, 0.261799, 0, 0, 0, 0.04]' \ --teleop.type=widowxai_leader_teleop_surge \ --teleop.ip_address=192.168.1.2 \ --teleop.id=leader \ '--teleop.staged_positions=[0, 0.261799, 0.261799, 0, 0, 0, 0.04]' \ --teleop.end_effector_palm_mass=0.468 \ --display_data=true \ --dataset.repo_id=anredlich/trossen_altbionics_pick_up_mug_01 \ --resume=true \ --dataset.fps=30 \ --dataset.episode_time_s=60 \ --dataset.reset_time_s=5 \ --dataset.num_episodes=50 \ --dataset.push_to_hub=false \ '--dataset.single_task=pick up mug' \ --dataset.root=/home/trossen/lerobot_trossen/datasets/pick-up-mug \ --dataset.output_version=v2.1 \ '--dataset.v21_joint_names=[right_joint_0, right_joint_1, right_joint_2, right_joint_3, right_joint_4, right_joint_5, right_hand_X, right_hand_T, right_hand_I, right_hand_M, right_hand_R, right_hand_P]'
    New options here include dataset.output_version which adds a lerobot version 2.1 dataset output in addition to the default version 3.0 output. This is useful for legacy algorithms. The dataset.v21_joint_names renames the joints to be more consistent with those used for legacy algorithms.
  • Imitation Learning: We used lerobot_train.py to train a baseline ACT algorithm on the mug dataset:
    uv run python -m lerobot.scripts.lerobot_train \ --policy.type=act \ --policy.device=cuda \ --dataset.repo_id=anredlich/trossen_altbionics_pick_up_mug_01 \ --output_dir=/home/trossen/lerobot_trossen/outputs/train/act_pick_up_mug_01 \ --job_name=act_pick_up_mug_01 \ --steps=100000 \ --save_freq=10000 \ --log_freq=200 \ --batch_size=8 \ --num_workers=8 \ --seed=1000 \ --dataset.eval_split=0.1 \ --eval_steps=5000 \ --accelerator.mixed_precision=bf16 \ --wandb.enable=false \ --policy.push_to_hub=false
  • Inference: We use lerobot_rollout.py to rollout the ACT algorithm, as shown in Figs 1 and 2:
    uv run python -m lerobot.scripts.lerobot_rollout \ --strategy.type=base \ --inference.type=sync \ --policy.path=/home/trossen/lerobot_trossen/outputs/train/act_pick_up_mug_01/checkpoints/last/pretrained_model \ --device=cuda \ --robot.type=widowxai_follower_robot_surge \ --robot.ip_address=192.168.1.3 \ --robot.id=follower \ '--robot.cameras={ cam_right_wrist: {type: intelrealsense, serial_number_or_name: "260522279125", width: 640, height: 480, fps: 30, rotation: 180}, cam_left_wrist: {type: intelrealsense, serial_number_or_name: "260522278146", width: 640, height: 480, fps: 30}, cam_high: {type: intelrealsense, serial_number_or_name: "260522274929", width: 640, height: 480, fps: 30} }' \ '--robot.staged_positions=[0, 0.261799, 0.261799, 0, 0, 0, 0.04]' \ --robot.max_relative_target=0.5 \ '--task=pick up mug' \ --fps=30 \ --duration=20 \ --return_to_initial_position=true \ --display_data=true
Manus glove together with leader arm control hand and arm
Fig 4. Manus glove and leader arm used together to control hand and arm.
Overview of follower arm with hand, leader arm, and 2nd and 3rd cameras
Fig 5. Overview showing hand, follower and leader arms, and two external cameras.
Back to top