◂ Back to the worldNormal site ▸
CH.01

Imitation Learning with 6-Axis Robot Arm

Built at the Viam × Intel Robot Hackathon, this project uses imitation learning to teach a 6-axis uFactory arm (xArm 6) to pick up and place a shirt, a hat, a ball, and a small box in a package in any order, learning from a human teleoperating an SO-101 leader arm. Rather than train one monolithic policy, I trained a separate Action Chunking with Transformers (ACT) policy for each object, so each policy only has to learn a short-horizon grasp-and-place skill and the task order stays free. Each policy was trained on 15 teleoperated episodes per object, recording joint and gripper states alongside an overhead webcam and a wrist-mounted RealSense depth camera. I also successfully fine-tuned SmolVLA, Hugging Face’s compact vision-language-action model.

The main failure mode was stalling: a policy would produce the right motion but hesitate, taking a long time to commit to a grasp and start moving toward the destination, which I suspect came from imperfect episode data and/or overfitting to specific movements. To fix it, I wrote an orchestration layer that sequences the per-object policies and wraps them in guardrails. A watchdog times out a policy step when the arm’s movement stays below a threshold for too long, and once an object is gripped the orchestrator stops waiting on the policy and drives the arm to the placement location. Inference runs through OpenVINO on the NPU of an Intel NUC, with the pipeline built on Viam in Python. The videos are runs on the real arm.