Teaching a robotic hand from human demonstrations.
I built a pipeline to teach the Shadow Hand to grasp, hold and rotate a cube. It connects Leap Motion teleoperation, demonstration data, a learned policy and control on the physical hand.
01 Capture
Map finger and wrist features from Leap Motion to 22 joint commands. Apply joint limits, smoothing and rate limits before sending commands to the hand at approximately 100 Hz.
02 Learn
Record state–action sequences and train a recurrent Behavior Cloning policy. A GRU uses recent observation history to produce temporally coherent joint commands.
03 Execute
Estimate the cube’s pose with ArUco markers and combine the learned policy with control strategies. Test grasp stability and object rotation on the physical system.
Learning and control in simulation
00:21 · MuJoCoCube rotation on the real hand
03:47 · Physical experimentControl architecture and implementation details
On hardware, I used a compact six-feature state that includes object position, tilt, rotation speed and marker confidence. Quaternion filtering and temporary-occlusion handling reduced disruption from noisy or missing measurements.
I compared Behavior Cloning, a greedy one-step controller and their combination in simulation. For the physical hand, I implemented predictive control with Cross-Entropy Method sampling, joint masks and finger-dependent blending with the learned policy.
Python · ROS · UDP · MuJoCo · Gymnasium Robotics · GRU · Behavior Cloning · OpenCV · ArUco · MPC / CEM




