Making it move free
Put the robot in a simulator, drive it, speak ROS 2 to it, keep two clocks apart, and send the same command — byte for byte — to two completely different backends.
By the end you will be able to
- Run Gazebo with no GPU and no display, and choose the right of three ways to watch it.
- Jog the arm by keyboard, and explain why losing the keyboard mid-move is safe.
- Choose correctly between a topic, a service and an action, and inspect each on a live robot.
- Keep simulation time and wall time apart, and know why one real-time-factor reading proves nothing.
- Send one goal to a mock and to a physics simulation, unchanged, and get the same answer.
- Write and run scenarios that are tests and demos at once, against either backend.
In the simulation
Stage 3: Making it move. The arm under a controller: the keys and buttons of make drive, limits that clamp, a bench it can hit, and a recording of what you did.
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.
make drive keysAbout
Free play: nothing to tick off here. Click into the view to drive it, drag to turn it.
Joints · SO-101 follower
1–5 joint · , . jog · [ ] jaw · - + step · h home · f frames
the keys of make drive
The buttons do what the keys do: hold one to repeat.
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 2 complete.
- Docker given at least 6 GB of memory — Gazebo is the first thing in the course that needs it.
Lessons
| # | Lesson | Time |
|---|---|---|
| 1 | A simulator that runs in CIRun Gazebo with no GPU and no display, and confirm every controller came up. | 30 min |
| 2 | Three ways to watch, and what crosses the wirePick the right view of a remote robot by understanding what each one transmits. | 25 min |
| 3 | Drive it yourselfMove the arm by hand, and feel how its controllers behave. | 30 min |
| 4 | Topics, services and actionsChoose the right ROS 2 communication primitive, and inspect each on a live robot. | 40 min |
| 5 | Two clocks, and the bug they causeKeep simulation time and wall time apart, and measure the real-time factor honestly. | 30 min |
| 6 | One command, two backendsSend an identical goal to a physics simulation and to a mock, unchanged, and get the same answer. | 35 min |
| 7 | Scenarios are tests you can watchRun scenarios that serve as tests and demos at once, against either backend. | 35 min |
| ◆ | Project: Write a scenario that runs on both backends | 90 min |