ARM LAB / STUDY / LEVEL 1 OF 8
A robot is
six numbers.
The SO101 has six motors: a base that pans, a shoulder, an elbow, a wrist that nods, a wrist that rolls, and a gripper. Each motor does one thing: it turns to an angle and holds it. So the whole state of the robot is six angles. Give me the six numbers and I can pose the arm exactly as you have it; the real robot's controller sends its motors nothing else. Everything on the other levels, the pose, the positions, the annotations, is computed from these six numbers. This page runs the scene's own joint table.
The arm, drawn from the six numbers
sticks between the joints; the purple dot is the gripper's centreFrom the front (x across, z up)
From above (x across, y up the page)
With every angle at 0 the arm reaches forward along +x and a little up: that is the zero position the designers chose, and the gripper's centre is then 45 cm from the base. Robot coordinates here: metres, z up. Level 4 is about turning them into VR coordinates.
The six numbers
sliders stop at each motor's limitThe joint table
so101Model.js, from the SO101's URDFOne row per joint. parent says what it hangs from; xyz and rpy say where it sits in the parent's frame (level 2); axis says which of its own axes the motor turns about; lo..hi is the motor's range. The last row, gripper_frame, is not a motor: it only marks the point between the jaws (level 6).
| # | joint | parent | axis | lo..hi (deg) | xyz in parent (m) |
|---|
Where the scene keeps the six numbers
armLab.jsOne array. The keyboard, the thumbstick and the demo motion all end in a line that writes into it, always through clampAngle.
What you should be able to explain
- A servo holds an angle. The STS3215 motors in this arm are told a position and keep it. Internally they count 4096 steps per turn, so a motor alone could turn a full circle.
- The range is mechanical, then written down. Mounted in the arm, a motor is stopped by the parts around it and by its cable. The designers found those angles in CAD and wrote them into the URDF as
lower/upper. The course'sSO101.jscopied them, andso101Model.jscopies that. - In VR nothing stops a joint. There is no motor and no collision in the model, so the scene enforces the range itself with
clampAngle, and the annotations in level 5 show how close a joint is to it. - Six numbers are the source of truth. The pose is computed from them every frame; nothing ever computes them back from the pose. Changing how the arm is controlled means changing what writes into the array, nothing else.
Exercises: ① Set every slider to 0 and read the gripper's position in the state box: how long is the arm? ② Which joint changes the top view but not the front view? Why? ③ Ask the elbow for +150°: what does clampAngle return, and which number in the table decided it?