ADR-0006: The SO-101's camera is fixed overhead, not on the wrist
Status: accepted · Date: 2026-11-30
Context
The course's camera lesson (it-sees, stage 6) needed a camera on the
SO-101, and upstream's description has none. Two placements were on the
table:
- On the wrist. Upstream published a wrist-camera variant of the SO-101 in September 2026. It sees what the jaw is about to touch, and it is what most imitation-learning setups on this arm record.
- Fixed above the bench. A camera on a stand, looking straight down at the work area. The browser lab already draws one there.
Decision
Fixed overhead, declared in the robot profile
(so101_follower.yaml, sensors.camera) and added by the overlay in
describe.py, like the world anchor. Upstream's file is not touched,
and its wrist-camera variant is not fetched.
camera_linkhangs offbase_link, 0.226 m forward and 0.723 m up, pitched to look straight down with the arm's forward at the top of the picture.camera_optical_frameis the REP-103 frame one fixed rotation away, the same split the 3VN Arm 1 makes.- The frames are emitted for every target, so TF is the same on mock,
in Gazebo and on hardware. Only
target=gzgets the<sensor>. - 640 x 480, 72.9° across (the lab camera's 58° vertical at 4:3), 5 Hz.
Why overhead
- The lesson is geometry a student can check by hand. From a fixed camera, a pixel is a ray in a frame that never moves: intrinsics, one static transform, one plane. On the wrist, the same pixel is a ray in a frame that moves with five joints, so every estimate also carries the arm's forward kinematics and its timing. That is a later lesson, not the first one.
- The error has a shape you can measure against ground truth. With
the camera still, the simulator can move the cube over a grid and the
error can be plotted against where the cube was in the picture.
scripts/verify_camera.pydoes exactly that. - The lab already shows it. The browser lab's stage 6 scene draws an overhead camera over the same point. One picture in both places.
- It does not change upstream's arm. The wrist variant is a different set of printed parts and a different URDF; adopting it means a second pinned upstream file, and a physical arm built with different parts from the one the course's bill of materials lists.
What it costs
- The arm gets in its own way. Reaching for the cube, the arm can hide it. That is real and is left in: the lesson says so.
- Imitation learning usually wants a wrist view too. If the demonstration lesson needs one, it is a second camera added to the profile, not a replacement for this one.
- The lab's camera pose is written twice. The lab computes its camera from the arm's home reach; the profile has the resulting numbers. A comment in each says so. Making the lab read the profile is the fix, and was left for whoever next works on the lab.
What rendering it costs, measured
Measured in the dev container (Docker Desktop, 8 CPUs, no GPU, llvmpipe), with another container using 2.5 CPUs throughout, as the real-time factor over 30 s of simulated time per wall second. Each line is one run; the machine is noisy, so treat differences under about 0.1 as noise.
| world | shadows | camera | real-time factor |
|---|---|---|---|
empty_bench |
on | none | 0.85, 0.91 |
empty_bench |
on | 640 x 480 at 10 Hz | 0.12, 0.13 |
empty_bench |
on | 320 x 240 at 5 Hz | 0.25 |
so101_bench |
off | 320 x 240 at 5 Hz | 0.59 |
so101_bench |
off | 640 x 480 at 5 Hz | 0.57 |
The camera itself is cheap; what is expensive is rendering upstream's full-resolution visual meshes, and rendering them twice when shadows are on. Resolution barely matters once shadows are off. So:
so101_benchturns shadows off, and renders the camera at 5 Hz.empty_benchloads no rendering system at all. It is the world the simulator tests run in, and they read no pictures; with the camera rendering there the real-time factor fell under the 0.3 the suite accepts. A robot's camera is in its description everywhere; a world decides whether to pay to render it.bench_with_targetandgrasp_bench, which the 3VN Arm 1's perception uses, still render.
Consequences
/camera/image_rawand/camera/camera_infoexist inso101_bench(and in any world that loadsgz-sim-sensors-system), bridged by the existinggz_bridge.yamlentries.- Measured with
make cameraon 2026-11-30, cube centre as the plane: 30 of 30 grid positions seen, median error 1.3 mm, worst 2.0 mm, one pixel being 1.6 mm on the bench. The error is mostly a constant offset of about half a pixel, plus a small part growing with distance from the point under the camera. The camera lesson is built on taking that apart. - A real camera needs intrinsics measured by calibration, and lens distortion this simulated one does not have. Both wait on hardware.