ARM LAB / STUDY / LEVEL 6 OF 8
Annotation: a target
and its distance.
The second question an operator asks: how far is the gripper from the thing I want to pick up? The scene gives you a ball you can put anywhere, draws a line from the gripper to it, and writes the distance on the line in real centimetres. Within 3 cm everything turns green and says GRAB: if this were the real robot, closing the jaws now would hold an object there. The ball is a marker, not an object; the arm does not pick it up (yet). This page runs the scene's own tables and distanceLabel.
What the headset shows
drag the ball · move the joints on the right| point | robot frame (m) | VR scene (m) |
|---|
The numbers
The tool centre point
so101Model.jsThe last row of the joint table is not a motor and carries a link with no mesh. It exists only to mark the point between the jaws, about 9.8 cm beyond the wrist roll. Robotics calls it the tool centre point (TCP). Distances to things are measured from here, not from a motor's axle. Because it is a node in the chain like any other, jointPos gives its position for free.
The annotation, every frame
armLab.jsRead the tip, measure to the target, convert to the real robot's centimetres, then draw: the ball, a dashed line from tip to target (the engine has no dashes, so it is up to 40 short tubes placed with placeLimb), and the text at the midpoint. Green and GRAB within GRAB_CM.
What you should be able to explain
- Why a link with no mesh exists. The point you care about is in the air between the jaws; no part sits there. A fixed, empty joint puts a frame there so the chain can report its position.
- A distance is a subtraction and a length.
cg.distance(a, b)isnorm(a − b): Pythagoras in three dimensions. Both points must be in the same frame; here both are scene coordinates. - Real numbers from a scaled display. The model is drawn twice life size, so the scene divides by
SCALEbefore showing centimetres. The ball is a scene object, so its distance is a scene distance until converted. - GRAB is a hint, not an action. Jaws about 8 cm apart close on an object within 3 cm of the TCP. The scene does not move the ball; it tells the operator that this pose would work.
Exercises: ① Put the ball at the gripper, then turn only the shoulder pan: why does the distance grow although the ball did not move? ② The table shows the TCP in both frames; check the scene y from the robot z by hand. ③ What would be wrong if the scene printed the scene distance without dividing by 2, and how would an operator notice?