Stage 2 · 6 lessons and a project · about 3½ hours
Describing a robot free
Write down what the robot physically is — once — in a form that the simulator, the tests and the hardware all read, and that a test can check before anything moves.
By the end you will be able to
- Read a robot description as a tree of links and joints, and predict how each joint moves before you move it.
- Keep every number in exactly one place, even when most of the robot's description is somebody else's file.
- Check an inertia tensor you did not derive, and say what a wrong one does to a physics engine.
- Place the frames later stages depend on, and read any transform between them on a live robot.
- Test a description with two independent parsers, and derive joint limits from a datasheet rather than a guess.
- Make a description lie on purpose, and name the test that catches each lie.
In the simulation
Stage 2: Describing a robot. The arm as a description: drag a joint, turn on its frames, and read its limits and where the tool ends up.
Kinematic: joints move at their real speed limit, but there is no gravity, no load and no physics.
The SO-101 loads as you reach it.
About
Free play: nothing to tick off here. Click into the view to drive it, drag to turn it.
Joints · SO-101 follower
shoulder_pan+0.0°
-110° … +110°
shoulder_lift+0.0°
-100° … +100°
elbow_flex+0.0°
-97° … +97°
wrist_flex+0.0°
-95° … +95°
wrist_roll+0.0°
-157° … +163°
gripper+0.0°
-10° … +100°
Limits from the description; speed capped at 1.7434 rad/s, the servo's datasheet derated. Poses from the profile.
Inspector
Code
The repository's own code behind what you do here appears once you move the arm.
Before you start
- Stage 1 complete —
make setupandmake testboth pass.
Lessons
| # | Lesson | Time |
|---|---|---|
| 1 | A robot is a treeRead a robot description as links and joints, and predict how each joint moves. | 30 min |
| 2 | One source of physical truthKeep every number about the robot in exactly one place, including the ones you did not write. | 35 min |
| 3 | Check a number you did not deriveCheck an inertia tensor you did not compute, and know what a wrong one does to a simulation. | 25 min |
| 4 | Frames that save you a day eachPlace the frames later phases assume, and read any transform between them on a live robot. | 30 min |
| 5 | Test it with two parsers, not oneCheck a description with independent tools, and know which bugs only raw XML reveals. | 30 min |
| 6 | Limits come from the datasheetDerive effort and speed limits from the motors that must deliver them, and prove no joint exceeds them. | 25 min |
| ◆ | Project: Make the description lie | 45 min |