Bring up a new robot¶
The checklist before a robot drives: are its sensors delivering, on one clock, in the frames the URDF says, mounted where the URDF says? quatern bringup checks a recording or the live robot. Every failure comes with a fix, as a diff checked by running the check again on the patched files. Nothing moves.
More ways to run it:
quatern bringup --robot mybot --recording ID
quatern bringup --robot mybot --live # a short live probe; nothing moves
quatern bringup --robot mybot --write # apply the checked fixes
quatern bringup --robot mybot --agent # the agent explains and writes fixes
In the REPL: /bringup [--live] [--write] with the selected robot and target. It exits 1 while anything fails, so it can gate a script.
The checks¶
| Area | Checks | Fix written |
|---|---|---|
| Frames | Every mounted sensor (scanner, depth camera, camera, IMU, range) names a frame; the frame is a URDF link; it agrees with where the URDF mounts a sensor of that name. | The config's frame: the URDF's mount for that sensor, else the only unclaimed link with a sensor of that kind, else the closest link name. |
| Extrinsics | The mount is on the robot (within 2 m, between 1 m below and 3 m above the reference link); a 2D scanner is level (within 5°) and not upside down; no placeholder mount at the reference origin; on a recording, the mapping sensor's yaw is the one its scans line up with. | The URDF joint's origin: levelled for a tilted scanner, or the yaw the recording's scans line up with (replayed on it). |
| Rates | Every configured source delivered, at 80% or more of its nominal rate (fail under 50%), with no more than 5% of samples missing (fail over 20%). | The config's rate_hz, when the source is steady at another rate. If it's meant to run at the configured rate, fix the driver instead. |
| Timestamps | Stamps on one clock with arrival (not 100 s off: sim time against wall time); none from the future; latency inside the alignment window; never going backwards; no long silences. Live: messages stamped, stamps advancing. | None: it's the driver or the clock, and the check says which. |
| ROS frames, QoS, conventions, timing, logs | On a recording with a capture context: recorded frames in the TF tree, sensor transforms against the URDF, REP 105; every subscribed topic published, compatible QoS (REP 2003); REP 103 units and REP 145 IMU conventions; consistent stamps and TF at each message's stamp; errors on /rosout and /diagnostics. Each reports n/a when its data is absent, and never fails for that. |
None: the evidence names the node, topic or frame to change. |
The frames check reads the config and URDF directly, so it runs even when the config doesn't load (a frame the URDF lacks stops the robot from loading). Once the frames are fixed, bringup runs the rest.
What you get¶
A robot whose config names a scanner frame the URDF doesn't have:
$ quatern bringup --robot turtlebot4
quatern bringup — turtlebot4 (files only)
frames
ok imu is mounted on imu_link, a link of the URDF
FAIL scan's frame 'laser' is not a link of the URDF
config: sensors[2].frame = laser
URDF links: base_link, caster_front, imu_link, oakd_link, rplidar_link, wheel_left, wheel_right
fix (turtlebot4.quatern.json):
--- a/turtlebot4.quatern.json
+++ b/turtlebot4.quatern.json
@@ -109,7 +109,7 @@
{
"name": "scan",
"kind": "laserscan",
- "frame": "laser",
+ "frame": "rplidar_link",
"rate_hz": 6
}
],
- checked: the frames check passes on the patched files
note: the config does not load, so only the frames were checked: fix them, then run bringup again
1 failure(s) to fix before driving
nothing written; --write applies the checked fixes
With the frame fixed, every area runs:
$ quatern bringup --robot turtlebot4
quatern bringup — turtlebot4.default (recording turtlebot4.default_2026-10-02_quickstart_room_v1)
frames
ok imu is mounted on imu_link, a link of the URDF
ok scan is mounted on rplidar_link, a link of the URDF
extrinsics
ok imu's mount is plausible
ok scan's mount is plausible
ok mount check passed on turtlebot4.default_2026-10-02_quickstart_room_v1: the URDF's rplidar_link mount gives the sharpest map (+0 deg: 67.7, +90 deg: 7.6, +180 deg: 6.5, -90 deg: 7.5)
rates
ok wheel_odom at 20.0 Hz
ok imu at 99.8 Hz
ok scan at 6.0 Hz
timestamps
ok wheel_odom's stamps are sane
ok imu's stamps are sane
ok scan's stamps are sane
ready to drive: nothing fails
How a fix is checked¶
A fix is offered only when the robot still loads with it, the check it answers no longer fails or warns when run again on the patched files against the same measurements, and no other check starts failing. The mount yaw fix is replayed on the recording (the same check as quatern diagnose's sensor_mount_rotated); the others are checked against the files.
--write applies the checked fixes; nothing is written otherwise. With --agent, the agent explains each failure from its evidence and checks any fix of its own through the same checklist before offering it.
What it can't see
Recordings don't keep a message's frame_id, so a driver stamping the wrong frame shows up in quatern diagnose (the launch log's Message Filter dropping message: frame ...) rather than here.
Flags¶
| Flag | Default | Meaning |
|---|---|---|
--robot R |
required | Robot name or config path. |
--recording ID |
the newest | Recording to check. |
--live |
Probe the live robot instead of a recording. Nothing moves. | |
--target T |
the config's default | Target to probe with --live. |
--probe-seconds S |
How long the live probe watches. | |
--write |
Apply every checked fix to its file. | |
--agent |
Have the agent explain the failures and write (and check) the fixes. | |
--json |
Machine-readable output. |
Exits 0 when nothing fails, 1 otherwise.
Next¶
When it's ready to drive, quatern hardware takes the robot to its first verified run, asking before each motion.