Gate checks¶
This page lists the checks that ship with RoboFACTS for the T-0 gate: what each one verifies, its arguments and its concurrency class. A script writes the page from the check scripts and the classification sets in the code, so it matches the code of this version.
How a checklist uses a check¶
An entry of preflight_checklist.json names a check by its script name without .sh and passes its arguments as key=value pairs. The gate looks for the script in this order: the project's own common/preflight/checks/ under the experiments root, the enabled robot adapters, the project's backend, and last the general checks. A project check with the same name as a packaged one wins. To write a check of your own, see own-gate-checks.
Concurrency classes¶
In concurrent mode (the default), the gate runs consecutive parallel-safe checks together in one batch, at most 8 at once (--jobs). A sequential check runs alone, at its place in the checklist. A check that nobody classified also runs alone. trials gate --concurrency sequential runs every check alone. The report lines, their order and the verdict are the same in both modes.
| Class | Meaning |
|---|---|
| parallel-safe | a read-only probe that may share a batch with other parallel-safe checks |
| sequential | must run alone, for the reason listed under its table |
| not classified | nobody has read its code yet, so it runs alone |
General checks¶
These checks work in every project, whatever its backend. They live in robofacts/robofacts/preflight/checks/.
| Check | Verifies | Arguments | Concurrency |
|---|---|---|---|
address_on_interface |
The named network interface carries the expected IP address. | addr=192.0.2.20 iface=wlan1 [why=...] |
parallel-safe |
bag_dir_writable(also recording_dir_writable) |
The directory that the recording goes to exists and is writable. | path=/workspaces/.../experiments/<exp>/bags [label=bags] |
parallel-safe |
disk_space |
The disk has enough free space for the recording. | [path=.] [min_gb=20] |
parallel-safe |
file_exists |
A required file exists and, optionally, has a minimum size. | path=/ssd/engines/refine.plan [min_mb=1] [label=refine engine] |
parallel-safe |
gpu_memory |
The GPU has enough free memory for the processes that start next. | min_free_mb=4096 [index=0] |
parallel-safe |
host_reachable |
Another machine answers ping, optionally within a maximum round-trip time. | host=192.0.2.3 [max_rtt_ms=0] [count=3] |
parallel-safe |
mem_available |
The recording host has enough free memory at the time of the check. | [min_gb=4] |
sequential |
stop_latch |
No operator stop latch is younger than 120 s. | [path=<latch file>] |
parallel-safe |
The general checks that run alone, and why:
mem_available: measures MemAvailable, which the concurrent checks' own processes consume, so it reads a quiet machine only when it runs alone.
Checks of the ROS 2 backend¶
These checks exist only in a project whose backend is ros2. They live in robofacts_ros2/robofacts_ros2/checks/. The robot adapters of the ROS 2 backend add more checks. A project gets them when it enables the adapter in trials.yaml.
| Check | Verifies | Arguments | Concurrency |
|---|---|---|---|
camera_frames |
Frames arrive from the camera, which a running camera node alone does not prove. | [topic=/camera/color/image_raw] [min_hz=20] [required=false] |
parallel-safe |
dds_socket_buffer |
The kernel allows the receive buffer size that the CycloneDDS configuration requests. | [config=<path>] [min_bytes=<n>] |
parallel-safe |
estop_reachable |
The emergency-stop service is visible from this shell, and a running node offers it. | [service=emergency] [node=/driver_server] |
parallel-safe |
gz_world_matches |
Exactly one Gazebo world is running, and it is the world that the trial declares. | world=${world} [gz_ip=127.0.0.1] [timeout_s=5] |
parallel-safe |
mocap_stream |
The motion-capture stream publishes at least at its minimum rate at the time of the check. | [topic=/poses] [min_hz=85] [window_s=10] |
parallel-safe |
node_present |
A named node is in ros2 node list. |
name=/driver_server or name=/detector_node exact=true |
parallel-safe |
rigidbody_continuity |
The configured rigid body is present in almost every motion-capture frame, not only in some. | name=robot1 [topic=/poses] [min_pct=90] [window_s=5] |
sequential |
rigidbody_near |
The rigid body is within max_m of a given point, measured seconds before the robot arms. | name=robot1 x=0.0 y=0.0 [max_m=0.25] [topic=/poses] [timeout_s=6] or name=robot1 node=/teleop [param_prefix=initial_position] [max_m=0.25] |
sequential |
ros_clean_slate |
Nothing is left over from the previous run. | [max_each=1] [pattern=component_container] |
sequential |
ros_param_equals |
A parameter of a running node has the value that the trial declares. | node=/camera param=depth_module.visual_preset expected=3 [timeout_s=10] |
parallel-safe |
rosout_report |
The /rosout messages of a node contain the expected text and none of the forbidden text. | node=camera_node present='fps, ' absent=JPEG [window_s=7] |
parallel-safe |
topic_rate |
Messages arrive on a topic at a rate within its limits, which an advertised topic alone does not prove. | topic=/poses min_hz=85 [max_hz=<n>] [window_s=10] [required=true] |
parallel-safe |
topic_value |
A field of a sensor's messages has plausible values (inside its limits, not frozen), which a message rate alone does not prove. | topic=<name> field=<path> [min=<n>] [max=<n>] [vary=true] [window_s=2] [min_samples=5] [required=true] |
parallel-safe |
The ROS 2 checks that run alone, and why:
rigidbody_continuity:its entries share one capture file per topic (/tmp/pf_rbc_<uid>_<topic>.cap): the first entry captures and its siblings reuse the frames, so two entries at once would truncate each other's capture.rigidbody_near: oneros2 topic echo --onceon the same NamedPoseArray topic that rigidbody_continuity captures: on the rig only the first echo on a topic reliably attaches within the window, so it must not race that capture.ros_clean_slate: counts matching processes with pgrep and deliberately does not exclude its siblings (lib/common.sh pf_count_processes), so a concurrent check whose command line holds the pattern (a file_exists path that names the same binary) would count as a leftover.
Counts¶
RoboFACTS ships 8 general checks and 13 checks of the ROS 2 backend.