An ACT (Action Chunking with Transformers) policy that controls a simulated CRANE+ arm in Gazebo: it picks up a 5 cm box and places it on the roof of a toy car. It sees two cameras (a fixed top view and a wrist camera) plus the 5 joint angles.
Trained with LeRobot on demonstrations from a scripted MoveIt expert. Code: bamboo51/Arm-Robot-Picking. Built as the final assignment for the UTokyo Matsuo Lab Physical AI course.
| Key | Shape | Notes | |
|---|---|---|---|
| Input | observation.images.top |
3×240×320 | Fixed camera above the table |
| Input | observation.images.wrist |
3×240×320 | Camera on the gripper |
| Input | observation.state |
5 | Joint angles (rad): crane_plus_joint1–4, crane_plus_joint_hand |
| Output | action |
5 | Joint targets 0.5 s ahead (K=5 frames at 10 Hz), same joint order |
time_from_start = 0.5 s), not in one tick.| Setting | Value |
|---|---|
| Policy | ACT, ResNet-18 backbone (ImageNet init), VAE (latent 32) |
| Transformer | dim 512, 8 heads, 4 encoder layers, 1 decoder layer, FFN 3200 |
| Chunk size | 50 (n_action_steps = 1 at inference) |
| Steps / batch | 20,000 / 64 |
| Optimizer | AdamW, lr 1e-5 (backbone 1e-5), weight decay 1e-4, grad clip 10 |
| KL weight | 10 |
| Image augmentation | off |
| Seed | 1000 |
Data: Phongwit/crane_pick_place_topwrist, about 70 successful expert episodes in random scenes (the box position is sampled within the arm's reach; the car is fixed). Frames where nothing moves in the next 0.5 s are dropped. Validation and test scenes are held out (NPZ episodes).
Inside the project's Docker container, with Gazebo running (./scripts/run_simulation.sh):
huggingface-cli download Phongwit/act_crane_topwrist --local-dir learning/checkpoints/act_crane_topwrist
# Terminal 2: policy server (Python 3.13 venv, GPU)
/opt/lerobot-venv/bin/python learning/policy_server.py learning/checkpoints/act_crane_topwrist
# optional: N=<steps of each chunk to execute>, TE=0.01 for ACT temporal ensembling
# Terminal 3: ROS node that sends cameras + joints and publishes the actions
python3 scripts/infer_node.py
# or score it on every test scene:
python3 scripts/eval_gazebo.py
policy_server.py also needs the dataset's meta/ folder at lerobot_data/crane_pick_place/meta/.
model.safetensors 206 MBpolicy_postprocessor_step_0_unnormalizer_processor.safetensors 7.5 kBpolicy_preprocessor_step_3_normalizer_processor.safetensors 7.4 kB