CrackRobotics

Crack robotics, one program at a time.

Write Python and watch the arm run it, in a MuJoCo physics simulation right here in your browser. You pass when the robot does the job, not when your code looks right.

main.pysim time 9.40 s
1from robot import arm, gripper, world, phase
2
3ball = world.ball("red")
4cup = world.cup
5
6phase("pre-grasp")
7arm.move_to(ball.position + [0, 0, 0.10])
8gripper.open()
9phase("approach")
10arm.move_to(ball.position)
11phase("grasp")
12gripper.close()
13phase("lift")
14arm.move_to(ball.position + [0, 0, 0.20])
15phase("transit")
16arm.move_to(cup.position + [0, 0, 0.20])
17phase("place")
18arm.move_to(cup.position + [0, 0, cup.height + 0.05])
19phase("release")
20gripper.open()
21phase("retreat")
22arm.move_to(cup.position + [0, 0, 0.20])
  • Grasped the red ball
  • Gripper released the ball
  • The red ball is resting in the cup

Step 4 of Pick & Place, replayed. You write this program yourself, one phase at a time.

Then keep going

Each lesson uses the same arm and the same Python API, so what you learn in one carries into the next.

Rather practise one algorithm at a time? Try the 22 problems, from forward kinematics to policy gradients.

Pick & Place is free, with no account. Pro unlocks every other lesson for $39 a month.

Start Pick & Place, free