i2rt / examples /minimum_gello /README.md
zhicao's picture
Upload from jdw-Lambda-Vector 2026-10-20
c0a5679 verified
|
Raw History Blame Contribute Delete
2.57 kB

Minimum Gello (Teleoperation)

Minimal leader-follower teleoperation example. Supports different arm and gripper assemblies, simulation mode, and local/remote visualization.

Quick Start

# Follower mode (default) — serves robot state over portal
python examples/minimum_gello/minimum_gello.py --can-channel can0

# Follower mode in simulation (no hardware required)
python examples/minimum_gello/minimum_gello.py --sim

# Leader mode — reads teaching handle and drives a remote follower
python examples/minimum_gello/minimum_gello.py --mode leader --can-channel can1

# Visualizer — MuJoCo viewer mirrors live robot state
python examples/minimum_gello/minimum_gello.py --mode visualizer_local

# Different arm and gripper combinations
python examples/minimum_gello/minimum_gello.py --arm big_yam --gripper linear_4310 --sim
python examples/minimum_gello/minimum_gello.py --arm yam_pro --gripper flexible_4310 --sim

Leader-Follower Setup

Run the follower on one terminal (or machine):

python examples/minimum_gello/minimum_gello.py \
    --gripper linear_4310 --mode follower --can-channel can0

Run the leader on another:

python examples/minimum_gello/minimum_gello.py \
    --gripper yam_teaching_handle --mode leader --can-channel can1 --bilateral-kp 0.2

Press button 0 on the teaching handle to synchronize. Press again to desync.

Note: Leader mode requires real hardware (--sim is not supported).

Options

Flag Default Description
--arm yam Arm type (yam, yam_pro, yam_ultra, big_yam, no_arm)
--gripper yam_teaching_handle Gripper type (crank_4310, linear_3507, linear_4310, flexible_4310, yam_teaching_handle, no_gripper)
--mode follower Operation mode (follower, leader, visualizer_local, visualizer_remote)
--sim False Use SimRobot instead of real hardware
--can-channel can0 CAN interface name
--server-host localhost Portal server host (for leader/remote visualizer)
--server-port 11333 Portal server port
--bilateral-kp 0.0 Bilateral force feedback gain (leader mode)
--ee-mass XML default Override link_6 mass (kg) for gravity compensation with different handles

Overriding Handle Weight

Older 3D-printed teaching handles may have a different mass than the default (0.258 kg). Use --ee-mass to compensate:

python examples/minimum_gello/minimum_gello.py --ee-mass 0.350 --can-channel can0