Operator guide¶
This guide is for the person running the robot in the field. You need four commands for a normal mission; the rest is for when something goes wrong.
Check where things stand at any time with ros2 fairy mission_status.
Before you go¶
ros2 fairy doctor

If it says NOT READY, fix what it lists first: each line has a hint. A READY (with warnings) is fine to record with, but read the warnings. An unsynchronised clock, for example, makes recordings hard to play back.
1. Start the mission: mission_start¶
ros2 fairy mission_start
Five questions, under two minutes:
| # | Question | |
|---|---|---|
| 1 | What's your name? | required; defaults to the last operator; 80 characters at most |
| 2 | In one sentence, what is this mission trying to do? | required; 280 characters at most |
| 3 | Where are you? (place name) | required |
| 4 | What's the environment like? | optional |
| 5 | Anything else worth noting? | optional; you can edit it at the end |
These answers are what make the mission findable later. Everything else about the robot is captured automatically.
mission_start won't start a new mission over unsaved data:
- A recording is running: stop it first.
- There are recordings from the previous mission: save or discard them with
mission_closefirst. - An unfinished mission with no recordings: it asks whether to replace it.
- Recordings made while no mission was open (someone ran
ros2 bag record): it lists them and asks whether to include them.
Pressing Ctrl-C during the questions changes nothing.
From a script or a launch file, give the answers as options; nothing is asked:
ros2 fairy mission_start --operator Ana --goal "Survey the north pier" \
--location "North pier" --environment marine --yes
--yes replaces an unfinished mission that has no recordings (one with
recordings is never replaced). Add --json to get the new mission's ID. In a
launch file:
from launch import LaunchDescription
from launch.actions import ExecuteProcess
def generate_launch_description():
return LaunchDescription([ExecuteProcess(
cmd=["ros2", "fairy", "mission_start", "--yes",
"--operator", "Ana", "--goal", "Survey the north pier",
"--location", "North pier"],
output="screen")])
A missing required answer stops it (exit 2) with the option to add. See
mission_start for the details.
2. Record: mission_record¶
ros2 fairy mission_record
This runs ros2 bag record for you, into the spool, with some checks first:
- Disk: under 1 GiB free, it asks before recording (default: no).
- Briefing: if you skipped
mission_start, it still records, and asks the questions atmission_close. - Another recording: if one is already running (perhaps in another terminal), it asks before starting a second one alongside it (default: no). Both would belong to the mission.
- Clock: if the system clock isn't synchronised, it asks before recording (default: no). Recordings made with a bad clock play back badly; see repair.
- Watchdog: if the background assistant isn't running, it warns and still records, but robot details won't be captured.
--yes (-y) answers yes to all of these.
What gets recorded comes from the robot's
recording: settings: specific topics
and a storage format, or every topic by default.
Options for ros2 bag record can be given to mission_record directly:
ros2 fairy mission_record --max-bag-duration 600 # a new file every 10 min
ros2 fairy mission_record /camera/image_raw /imu/data # only these topics
ros2 fairy mission_record -h # what you can pass
Topics chosen there replace the robot's recording: topics for this
recording. -o/--output isn't allowed: the recording has to go where the
assistant looks. A mistyped option stops it before anything is recorded. See
mission_record for the details.
To stop, press Ctrl-C once and wait for "saved". Pressing it again prints "Still saving the recording — please wait…". A third press forces it to stop, and the recording may then be cut off. A cut-off recording is still kept and is read back from the bag itself when you save.
You can run mission_record several times in one mission: each run is another
recording in the same mission. mission_status lists them with a number each
(#1, #2, …), which drop uses to take one out.
Recording without mission_record¶
mission_record is a convenience, not a requirement: record however you
prefer. The assistant watches for any rosbag2 recording on the robot and
attaches it to the open mission.
| How you record | For example |
|---|---|
A plain ros2 bag record, in any terminal and any folder |
ros2 bag record -o run1 /fix /imu/data |
| The rosbag2 recorder node, e.g. started from a launch file | ros2 run rosbag2_transport recorder --ros-args -p storage.uri:=run1 |
| Either of them inside a Docker container | write to a volume mounted from the host |
What changes compared with mission_record:
- No pre-recording checks. Disk space, clock and briefing aren't checked
for you: run
ros2 fairy doctorfirst. - Check that it was noticed. While it records,
ros2 fairy mission_statusshows it under Recording. - The recording stays where you wrote it.
mission_closecopies it into the archive and leaves the original in place, so you need room for both. - A few recordings can't be seen: one that starts and stops within about a
second, or one written inside a container to a folder the host has no access
to. Attach those with
adopt. - Keep a test recording out of the mission by starting it with
ROS_FAIRY_IGNORE=1, e.g.ROS_FAIRY_IGNORE=1 ros2 bag record -o scratch /chatter.
3. Close: mission_close¶
ros2 fairy mission_close
This is the one decision that matters. It:
- waits for the assistant to finish capturing, if it is still busy (up to about four minutes, with a spinner);
- asks any briefing questions that are still missing;
- offers to update your notes ("Anything else worth noting?"), keeping the current ones as the default;
- shows a review: the briefing, each recording with its length, size and health warnings, what was captured about the robot, and a data-quality verdict;
- asks whether to save.
| Verdict | Meaning | Default answer |
|---|---|---|
| ok | Nothing important is missing. | Save |
| degraded | Usable, with gaps: a sensor that never published, some recordings with unusable timing. | Save |
| poor | Core content is missing: no ROS context was captured, no usable recording timing, or the robot isn't set up. | Don't save |
If you choose not to save, it asks whether to throw the recording away. Say
no and nothing changes: the recording stays in the spool, and you can run
mission_close again later.
It also warns, without blocking, when the mission looks like a duplicate: - the same operator saved a mission at a very similar place name within the last two hours, which is often a typo of the same outing; or - the very same recording is already in a saved mission (by content).
Saving moves the recordings into the archive and builds the
RO-Crate. It is safe to interrupt: if the power goes or
you press Ctrl-C, the next mission_close offers to finish the save, and your
data is never in a half-written state.
For scripts: ros2 fairy mission_close --yes --note "text" saves without
asking. The briefing must already exist.
After the mission¶
ros2 fairy list # latest 20 missions, newest last
ros2 fairy list --all --path # every mission, with folders
ros2 fairy list --operator ana --since 2026-10-01 --quality poor
ros2 fairy list --search "sonar pier" # goal or notes mention both words
ros2 fairy list --not-exported # not sent anywhere yet
ros2 fairy list --reverse # the oldest 20, oldest at the bottom
ros2 fairy export 1 # newest mission → ./<name>.zip + .sha256
ros2 fairy export --today -o /media/usb/
ros2 fairy export 3 2 1 -o /media/usb/ # the last three missions
ros2 fairy export --yesterday -o /media/usb/
ros2 fairy export 1 --compress # smaller: deflated .zip
ros2 fairy export --today --upload # …and copy them to the lab's storage
ros2 fairy upload --all # upload what was exported before
ros2 fairy list --exported --not-uploaded # exported, not uploaded yet
ros2 fairy verify 1 # is it intact?
ros2 fairy diff # what changed between the last two missions?
Commands that take a mission accept a number (1 = newest, 2 = the one
before), a mission ID (m-20261002-082109-1a2b, shown by list) or an
archive folder path.
export writes one uncompressed .zip (or .tar with --format tar) with a
sha256sum-compatible .sha256 file next to it. --compress makes it
smaller, often by half or more (how). The receiver
checks the transfer and the contents in one step, without unpacking:
ros2 fairy verify <file>. Without ROS F.A.I.R.y, sha256sum -c
<file>.sha256 checks the transfer. export --all exports every mission not
yet exported.
--upload copies each bundle to the lab's cloud storage as soon as it's
written, and upload sends bundles exported earlier. An engineer sets the
storage up once with ros2 fairy setup --upload-to (how).
Add --delete-local to delete each local bundle once the uploaded copy is
checked. list shows ✓↑ under Exp for uploaded missions. Missions you
uploaded yourself can be recorded with ros2 fairy upload <n>… --mark-only
--to "where" (more).
When something goes wrong¶
A mission that couldn't go ahead: mission_abort¶
ros2 fairy mission_abort
Abandons the open mission without saving. It asks twice: once to abort, and again before deleting recordings. Recordings in the spool are deleted. Recordings made outside ROS F.A.I.R.y stay where they are on disk.
One recording too many: drop¶
A test run, a false start, a recording of the wrong topics: take it out and
keep the rest of the mission. mission_status numbers the recordings:
Recordings waiting 3 (1.2 GB) — run: ros2 fairy mission_close
#1 10:02:11, 12 minutes, 640 MB
#2 10:15:40, 40 seconds, 21 MB
#3 10:17:03, 10 minutes, 550 MB
ros2 fairy drop 2 # takes #2 out; #1 and #3 keep their numbers
ros2 fairy drop # lists them and asks which
A recording made with mission_record is deleted (it asks first). One made
elsewhere is only taken out of the mission and stays where it is; adopt
attaches it again.
Recordings made elsewhere¶
A plain ros2 bag record or the recorder node is normally noticed on its own
(see Recording without mission_record),
and listed under Recordings waiting in mission_status. If it wasn't (for
example, the bag was copied over from another machine), attach it yourself:
ros2 fairy adopt /path/to/rosbag2_folder
It says which number the recording got (Adopted run1 as #4); ros2 fairy drop
4 takes it out again. The folder stays where it is until you save.
mission_close then copies it into the archive and leaves the original
untouched.
A mistake in a saved mission's briefing: edit¶
A typo in the place name, a goal worded better, notes added afterwards:
ros2 fairy edit 1 # asks again, saved answers as defaults
ros2 fairy edit 1 --location "North pier" --notes "gusty after 11:00"
It keeps the archive consistent (record, README, RO-Crate, checksums) and
notes the change in the mission's history, so verify still passes and shows
that the briefing was edited. The recordings aren't touched. If you had
exported the mission, export it again: the message gives the command.
The old values stay in that history. If they shouldn't be kept at all (a
phone number typed into the notes, say), an engineer can remove them with
--redact --by "Their Name", which needs their sudo password; see
edit.
Unplayable recordings: repair¶
Recordings made while the clock was not synchronised often have most messages
stamped in 1970, and ros2 bag play stalls on them. mission_close flags them as
having unusable timing.
ros2 fairy repair 1 # newest mission → ./<name>_repaired/
ros2 fairy repair /path/to/bag # a single bag folder
This writes new, playable bags (MCAP or sqlite3, like the originals) and
never touches the originals. The new timing is evenly spaced and synthetic:
fine for looking at the data, not for timing-sensitive processing. A recording
compressed as a whole file (.mcap.zstd, .db3.zstd) can't be repaired.
--duration sets the playback length.
Deleting saved missions: delete¶
ros2 fairy delete m-20261002-082109-1a2b m-20261002-093015-7c3d
ros2 fairy delete --today # several missions: asks for your sudo password
Deletes for good. It only accepts exact mission IDs (never a number, so a typo
can't delete the wrong one), or --today/--yesterday/--all. It asks you to confirm, then
prompts you to type a confirmation phrase, shown on screen.
The disk is filling up: prune¶
ros2 fairy export --all -o /media/usb/ --upload # first, a copy
ros2 fairy prune --older-than 30 --dry-run
ros2 fairy prune --older-than 30
Deletes the recordings of missions already exported, keeping everything
else about them. Missions never exported are skipped, with the reason; you
can also name missions (ros2 fairy prune 3 4 5). The bundle isn't
checked, so you can upload it and delete it from the stick first, but
keep the uploaded copy: it is now the only one of the recordings. When
fairy uploaded it, the mission records where it went. It asks
your name, which is recorded in each mission, and your sudo password.
The mission list looks wrong: reindex¶
ros2 fairy reindex
Rebuilds the mission list from the folders in the archive. The archive is the source of truth; the list is only a cache.
Command cheat-sheet¶
| I want to… | Run |
|---|---|
| check the robot is ready | ros2 fairy doctor |
| see what's happening now | ros2 fairy mission_status |
| start / record / finish | mission_start · mission_record · mission_close |
| give up on this mission | ros2 fairy mission_abort |
| take one recording out of it | ros2 fairy drop <#> |
| fix a saved mission's briefing | ros2 fairy edit <n> |
| attach a bag recorded elsewhere | ros2 fairy adopt <folder> |
| find a mission | ros2 fairy list |
| see the oldest missions | ros2 fairy list --reverse |
| send missions to someone | ros2 fairy export <n> [<n>…] -o <folder> |
| send yesterday's missions | ros2 fairy export --yesterday -o <folder> |
| send missions to the lab's storage | ros2 fairy export <n> --upload, or ros2 fairy upload --all |
| record missions you uploaded yourself | ros2 fairy upload <n> [<n>…] --mark-only --to "<where>" |
| check a mission is intact | ros2 fairy verify <n> |
| check a bundle you were sent | ros2 fairy verify <file> |
| see what hasn't been exported yet | ros2 fairy list --not-exported |
| compare two missions | ros2 fairy diff <older> <newer> |
| fix a bag that won't play | ros2 fairy repair <n> |
| free disk space (exported missions) | ros2 fairy prune --older-than <days> |
Every option is listed in the command reference.