Robot commands · Python plans the job; Run executes it
slide_base(direction, distance, speed)
shoulder_up(distance, speed)
shoulder_down(distance, speed)
rotate_shoulder(degrees, speed)
rotate_elbow(degrees, speed)
rotate_wrist(degrees, speed)
open_claw()
close_claw(force, speed)
wait(seconds)
block_color() → "red" / "yellow"
slide_base moves the whole base left or right along its rail — direction is "left" or "right", distance is in pixels. shoulder_up and shoulder_down raise or lower the shoulder along its pole, also in pixels. rotate_shoulder, rotate_elbow and rotate_wrist point that part of the arm in a direction: 0 = up, 90 = right, 180 = down, 270 = left. Each part keeps pointing the same way when the others move, and turns the shorter way to reach its new direction (exactly opposite turns clockwise). speed is 1 (painfully slow) to 30 (about a second, very fast) everywhere it appears, including close_claw.
Place the part fully between the fingers: the grab region turns green when aligned. close_claw secures that contact; off-center grips can slip during fast, wide swings. Fold the elbow before swinging between stations. The base stays 100 pixels clear of both stations. Point the claw down (rotate_wrist(180)) to release. Unsafe moves stop the job. Closing with high force at high speed cracks the part outright — a slow, careful close can use full force safely.