Skip to content

Developer CLI

scripts/omni is the supported human-facing command reference for common Omniseer setup, build, model deployment, verification, run, runtime-container, RunBundle, docs, flashing, environment, and cleanup tasks. It describes the available command surface; each command group states its applicable environment and verification boundary.

scripts/omni <command> [subcommand] [args...]
scripts/omni --help
scripts/omni <command> --help
scripts/omni env
scripts/omni doctor

Command groups:

Group Purpose
setup Install local development dependencies.
build Build ROS, native vision, firmware, and runtime-container artifacts.
runtime Build, run, record, verify, push, and pull robot runtime container checkpoints.
model Export and compile host-side YOLO-World v2-S/v2-M/v2-L RKNN artifacts.
test Run targeted local verification checks.
run Launch sim, real robot profiles, autonomy, monitor, and teleop surfaces.
runs Inspect, render topology, annotate, report, build videos, list, and retrieve RunBundles.
check Passively verify an already running graph.
doctor Report local environment and dependency state.
flash Run hardware flashing helpers.
docs Build documentation and verify diagrams.
clean Remove generated local build artifacts.

setup

Installs dependencies for the portable ROS development path.

scripts/omni setup ros-deps [package_path ...]

With no package paths, installs the default ROS dependency set. Explicit package paths narrow the install.

Example:

scripts/omni setup ros-deps

build

Builds supported local artifacts through repository-owned wrappers.

scripts/omni build
scripts/omni build all
scripts/omni build strict
scripts/omni build ros [--with-vision|--without-vision] [--with-yolo] [colcon args...]
scripts/omni build vision
scripts/omni build firmware
scripts/omni build runtime-container [options] [docker build args...]

Behavior:

  • build and build all: ROS is required; native vision builds when CMake is available; firmware builds when PlatformIO is available and a Teensy is attached.
  • build strict: same product build, but missing native vision or firmware toolchains fail the command.
  • build ros: builds the default ROS package set and auto-includes omniseer_vision_bridge when RKNN/RGA development files are present.
  • build ros --with-vision: requires the real-hardware vision bridge.
  • build ros --without-vision: builds the portable ROS package set.
  • build ros --with-yolo: also builds optional Python sim YOLO packages; torch and ultralytics must be available.
  • build runtime-container: builds Docker target robot-runtime by default. The robot target requires RKNN SDK files.
  • build runtime-container --target portable-runtime: builds the hardware-independent container target.

Devcontainer bootstrap uses this same ROS package selection: CPU x86 builds the portable set, GPU x86 also includes the YOLO simulation provider, and Radxa auto-includes the vision bridge when its SDKs are available. Bootstrap stops on dependency or build failures. The Radxa profile also builds uros_ws; laptop profiles skip it by default. For direct micro-ROS development on a laptop, run .devcontainer/bootstrap.sh --with-micro-ros (add --with-yolo for simulation detections). That optional build preserves the existing micro-ROS install layout and uses an isolated layout for a new install directory.

Runtime-container build options:

--image <name>                 Default: omniseer/robot-runtime:v2
--target <target>              robot-runtime or portable-runtime
--ros-distro <name>            Default: kilted
--micro-ros-agent-ref <ref>    Default: pinned upstream Kilted commit
--rknn-include <path>          Default: /usr/include/rknn_api.h
--rknn-lib <path>              Auto-detected from ldconfig when omitted

Examples:

scripts/omni build ros --with-yolo
scripts/omni build runtime-container --target portable-runtime --image omniseer/robot-runtime:portable

See Robot Runtime Container.

model

Builds host-side YOLO-World v2-S, v2-M, or v2-L deployment artifacts without adding any model building dependency to the robot runtime image.

scripts/omni model image
scripts/omni model analyze --variant v2m  # INT8 layer-wise accuracy analysis in the host simulator
scripts/omni model calibration --images-dir models/source/calibration_images
scripts/omni model export --variant v2s --weights <v2-s.pth>
scripts/omni model compile --variant v2s --onnx artifacts/models/yolo_world_v2_s.onnx --precision fp
scripts/omni model build --variant v2m --weights <v2-m.pth> --precision int8
scripts/omni model build --variant v2l --weights <v2-l.pth> --precision int8

model analyze is a host-simulator accuracy-analysis path for v2-S, v2-M, or v2-L. It writes raw Toolkit snapshots and its report to the ignored artifacts/quant_analysis/v2<s|m|l>/ directory. It has no board, ADB, or special Docker-network dependency.

See YOLO-World v2 Model Deployment for the pinned builder, local inputs, artifacts, and calibration assets.

The isolated YOLO11 workflow uses scripts/omni model yolo11 with assets, image, export, and compile subcommands. See YOLO11 model building for pinned versions, tensor contracts, provenance, and separate INT8 calibration.

runtime

Manages robot-local runtime container checkpoints and evidence runs.

scripts/omni runtime build [--image <base>] [--tag <tag>] [build args...]
scripts/omni runtime run [--image <base>] [--tag <tag>] [container command...]
scripts/omni runtime record [--image <base>] [--tag <tag>] [record args...] [-- launch args...]
scripts/omni runtime stop --run-id <id> [--time <seconds>]
scripts/omni runtime verify [--image <base>] [--tag <tag>] [--stage smoke|full]
scripts/omni runtime push [--image <base>] [--tag <tag>] [--release-tag <tag>]
scripts/omni runtime pull [--image <base>] [--tag <tag>]

Defaults:

  • --image: ghcr.io/jburo1/omniseer-robot-runtime, or OMNISEER_RUNTIME_IMAGE.
  • runtime build: creates robot-candidate-<UTC>-g<shortsha> when --tag is omitted and writes metadata under .omniseer/runtime/.
  • runtime run, record, verify, and push: use the latest local runtime build metadata when --tag is omitted.
  • runtime pull: defaults to robot-verified when --tag is omitted.

Record arguments:

--run-id <id>                         Default: operator_<UTC>
--notes <text>                        Store notes in manifest.yaml.
--classes <text>                      Store configured class names in manifest.yaml.
--system-interval-sec <seconds>       Default: 1.0
--experiment-config <name>            Default: operator-runtime
--experiment-parameter <key=value>    Repeatable; default: stage=manual-operator

Behavior and constraints:

  • runtime build builds the robot hardware target through build runtime-container --target robot-runtime.
  • runtime record starts the selected image with the real operator profile, writes runs/<run_id> through the Docker /runs mount, and records image reference and digest in the manifest.
  • Stop recorded runs gracefully with Ctrl-C, monitor Stop Run, or runtime stop --run-id <id> so telemetry, evidence, manifest.yaml, summary.json, and logs/bringup.log are finalized.
  • runtime verify defaults to --stage smoke, a bounded container smoke check with hardware-dependent launch components disabled.
  • runtime verify --stage full runs the real operator smoke path with the Rockchip preview encoder and records its preview directly to a small verification artifact under the mounted /runs directory. It passes only when the operator acceptance checks succeed and ffprobe identifies the non-empty artifact as H.264. It writes passed metadata only after those checks, and requires the robot runtime environment and target hardware dependencies.
  • runtime push requires a clean git tree, passed full verification for the same local image ID, and matching verification/current git commits. It promotes to immutable robot-verified-g<full-commit-sha>, optional --release-tag <tag>, and moving robot-verified.
  • runtime pull retrieves a registry image, defaulting to the moving verified tag.

Container boundaries:

  • The checkpoint path is robot-local and does not request remote CI publishing.
  • Runtime Docker commands bind /dev, /run/udev, host networking, host PID/IPC namespaces, and the repository runs/ directory for hardware access and RunBundle persistence.
  • Override host bind detection with OMNISEER_RUNTIME_HOST_REPO_ROOT or OMNISEER_RUNTIME_RUNS_HOST_ROOT.
  • Set Docker TTY mode with OMNISEER_RUNTIME_DOCKER_TTY=auto, always, or never; verification forces never.

Examples:

scripts/omni runtime build
scripts/omni runtime record --run-id operator_001 --classes chair,bottle -- start_lidar:=false
scripts/omni runtime verify --stage full
scripts/omni runtime push --release-tag robot-demo-001
scripts/omni runtime pull

See Robot Runtime Container.

test

Runs targeted local verification checks.

scripts/omni test
scripts/omni test ros
scripts/omni test vision
scripts/omni test smoke-sim

test defaults to test ros. Use test ros for portable ROS checks, test vision for portable native vision checks, and test smoke-sim for the headless simulation smoke check.

Examples:

scripts/omni test ros
scripts/omni test smoke-sim

run

Launches operator-facing simulation, robot, autonomy, monitor, and teleop commands. Build explicitly before running when code, launch files, configs, or generated interfaces changed.

scripts/omni run sim [--yolo] [--yolo-device <device>] [--yolo-model <path>] [launch args...]
scripts/omni run real [--profile <name>] [recording flags] [--mode <mode>] [mode] [launch args...]
scripts/omni run autonomy --classes <classes> [options] [-- launch args...]
scripts/omni run commissioning [--dry-run]
scripts/omni run monitor [monitor args...]
scripts/omni run teleop

run sim

Sources ROS and the workspace, then launches bringup sim.launch.py. Remaining arguments are forwarded as ROS launch arguments.

scripts/omni run sim headless:=true
scripts/omni run sim --yolo --yolo-device cpu

--yolo starts the optional Python/Ultralytics sim provider and /yolo/dbg_image overlay. Build it first with scripts/omni build ros --with-yolo. --yolo-device <device> forwards yolo_device:=...; --yolo-model <path> forwards yolo_model:=....

run real

Launches real robot profiles, optionally with RunBundle recording.

Profiles:

Profile Behavior
current Default alias. Currently resolves to operator.
operator Gateway, native vision, preview, bounded teleop, and recording.
perception Native vision and recording without the gateway operator surface.
legacy-teleop Diagnostic compatibility profile.

Modes:

Mode Behavior
bringup Start the selected real profile in the foreground.
smoke Start the selected profile, run its verifier, then stop.
verify Run the selected profile verifier against an existing ROS graph.
teleop Start only the stamped keyboard teleop publisher.
operator Legacy-teleop profile only: start bringup, then open keyboard teleop.

Recording flags:

--record
--record-run <run_id>
--record-out <path>
--record-system-interval-sec <seconds>
--record-notes <text>
--record-classes <text>
--record-model-family <text>
--record-model-variant <text>
--record-model-precision <text>
--record-model-backend <text>
--record-container-image-ref <ref>
--record-container-image-digest <digest>
--record-experiment-config <text>
--record-experiment-parameters <items>
--record-experiment-parameter <key=value>
--record-comparison-id <text>
--record-trial <text>
--record-workload-id <text>
--record-overwrite

Omitting --profile selects current. Omitting the mode for operator, perception, or current selects foreground bringup. Recording flags require a mode that launches real bringup. --record creates a timestamped run ID; --record-run <run_id> uses the supplied ID; --record-out defaults to runs/<run_id>.

Recorded RunBundles include manifest, summary, detections, performance, available system and native pipeline telemetry, evidence, provenance inputs, and logs/bringup.log. During recorded runs, OMNISEER_BRINGUP_LOG is replaced by the bundle-local log path. Containerized runs can provide provenance through the record flags or OMNISEER_CONTAINER_IMAGE_REF, OMNISEER_CONTAINER_IMAGE_DIGEST, OMNISEER_GIT_SHA, OMNISEER_EXPERIMENT_CONFIG, and OMNISEER_EXPERIMENT_PARAMETERS. Use the model flags to record the explicit family, variant, precision, and backend; they are never inferred from a filename. Recorded real runs also include the bridge-emitted provenance/resolved_vision_config.yaml, which captures the effective vision parameters after launch overrides.

Examples:

scripts/omni run real
scripts/omni run real smoke
scripts/omni run real verify
scripts/omni run real --record-run demo_001
scripts/omni run real --profile perception --record-run demo_001

run commissioning

Runs the one-shot physical-motion commissioning sequence from omniseer_experiments. It publishes stamped commands only to /cmd_vel_autonomy, so the existing twist_mux and Teensy command path remain in control. It does not start real bringup or recording; start a recorded real launch first.

scripts/omni run commissioning --dry-run
scripts/omni run commissioning

The default 59-second sequence publishes at 20 Hz, contains one nonzero axis per motion phase, and finishes with additional zero commands. It marks the active phase on /commissioning/phase; recorded real rosbags include that topic in the existing allowlist.

runs commissioning

Generates derived, offline diagnostics for a completed commissioning RunBundle. It reads the bag but never publishes ROS commands or changes raw evidence.

scripts/omni runs commissioning runs/<run_id>

The analyzer writes analysis/commissioning/summary.json, summary.md, and SVG time-series/trajectory plots below the RunBundle. Use --overwrite only to replace that derived analysis directory.

run autonomy

Starts the real operator profile with bounded target-centering autonomy enabled from inside the Radxa devcontainer.

scripts/omni run autonomy --classes <class[,class...]> [options] [-- launch args...]
scripts/omni run autonomy --target <class> [options] [-- launch args...]
scripts/omni run autonomy <class> [options] [-- launch args...]

Options:

--classes <text>                 First class is centered; all classes are evidence candidates.
--target <class>                 One-class compatibility alias.
--run-id <id>                    Default: autonomy_<class>_<UTC>
--out <path>                     Default: runs/<run_id>
--notes <text>                   Store notes in manifest.yaml.
--system-interval-sec <seconds>  Default: 1.0
--evidence-interval-sec <s>      Default: 0.25
--no-overwrite                   Do not replace an existing output directory.

The command writes classes.txt, starts omniseer_autonomy/target_centering_node, records through the real-run recording path, and forwards launch arguments after --. The bounded behavior is summarized in the Runtime Overview.

scripts/omni run autonomy --classes chair,backpack,bottle --run-id autonomy_chair_001 -- start_vision:=false

run monitor

Launches the laptop Tk operator monitor and forwards arguments to robot_monitor_gui.

scripts/omni run monitor --host 192.168.1.178 --ssh-user radxa

The monitor defaults to robot SSH target radxa@192.168.1.178. It starts robot-side runs over SSH, using either scripts/omni runtime record or the configured devcontainer command template, then retrieves completed bundles and generates local reports. See Operator Run Workflow.

run teleop

Starts the stamped keyboard teleop publisher.

scripts/omni run teleop

runs

Inspects local RunBundles and retrieves robot-side RunBundles.

scripts/omni runs inspect <run_dir> [--json] [--require-complete]
scripts/omni runs annotate <run_dir> [--overwrite]
scripts/omni runs report <run_dir> [--overwrite]
scripts/omni runs topology <topology.json> <output.svg>
scripts/omni runs comparison-report <reference_run> --trial <run_dir> --trial <run_dir> --trial <run_dir> --trial <run_dir> [--comparison <name>] [--truth <path>] [--overwrite]
scripts/omni runs video <run_dir>
scripts/omni runs compare <run_dir> [--name <comparison-name>] [--model-dir <dir>] [--classes <path>] [comparison options]
scripts/omni runs local-list [--root <local-runs-root>]
scripts/omni runs list [retrieval args...]
scripts/omni runs pull <run_id> [retrieval args...]

Retrieval arguments:

--host <robot-ip>
--user <ssh-user>
--remote-root <robot-runs-root>
--import-root <local-import-root>
--out <local-run-dir>
--overwrite

Defaults: --host 192.168.1.178, --user radxa, and --remote-root /home/radxa/apps/omniseer/runs; override them with OMNISEER_ROBOT_HOST, OMNISEER_ROBOT_USER, and OMNISEER_ROBOT_RUNS_ROOT.

inspect, annotate, report, and local-list operate on local bundle directories. annotate creates derived annotated evidence without modifying canonical evidence frames. report annotates missing evidence first, then writes report/index.html. list and pull use SSH and validate pulled bundles locally.

topology renders a captured ros_graph/topology.json to the requested SVG with Graphviz dot, and writes an inspectable sibling .dot file. It leaves the captured JSON unchanged and filters only the renderer view's documented ROS plumbing.

For bounded target acquisition, generate a fresh graph from the next real run and validate it against the implemented runtime path before publishing it:

vision_bridge
    -> /yolo/detections
    -> target_centering_node
    -> /cmd_vel_autonomy
    -> twist_mux
    -> /mecanum_drive_controller/reference
    -> omniseer_teensy

omniseer_teensy /encoder_counts
    -> encoder_counts_to_odometry
    -> /mecanum_drive_controller/odometry
    -> ekf_filter
    -> /odometry/filtered
    -> target_centering_node

omniseer_teensy /imu
    -> ekf_filter

omniseer_teensy /range
    -> target_centering_node

This is a source-derived validation reference, not a template for adding missing endpoints to a captured topology. perception_run_recorder is experiment evidence infrastructure; rosbag2_recorder may appear when rosbag recording is enabled; and robot_diag_control_cpp is operator/gateway support, not the bounded-autonomy controller. LiDAR may be launched by the real profile, but it is outside bounded target acquisition when SLAM, Nav2, and RF2O are disabled.

comparison-report combines exactly six physical RunBundles (one for each canonical v2-S/v2-M/v2-L FP/INT8 configuration) with one named controlled replay from the reference RunBundle. It writes <reference_run>/report/comparison.html without replacing the single-run report. Trial order does not matter; model identity is resolved from each manifest. The optional --truth JSON uses inclusive source-frame ranges for known-present classes and a list of known-absent classes. Alternatively, --objects reads the study's manual visibility-annotation syntax: <class> start <inclusive-frame>, <class> end <inclusive-frame>, and <class> absent. It reports malformed or vocabulary-mismatched annotations in the report without inventing intervals; only labels in the comparison vocabulary are evaluated. These are manual scene-presence / visibility metrics, not mAP, bounding-box recall, or full detection accuracy. A valid coco80 comparison is added automatically as a descriptive-only exploratory section.

compare is a ROCK 5B+ devcontainer offline RKNN workflow. Build native vision in the devcontainer, then it directly decodes immutable video/source.ts, reverses the validated Rockchip 8-pixel preview wrap in memory, and executes the same corrected frame serially through the six resident YOLO-World v2 S/M/L FP/INT8 configurations. It does not need ROS, a camera, or a live recording pipeline. The command always executes the local vision/build/vision_runbundle_compare artifact produced by scripts/omni build vision (or the OMNISEER_VISION_BUILD_DIR override). It writes only derived files under video/comparison/<name>/ (comparison.mp4, provenance.json, and one canonical replay JSONL detection stream for each model) and never changes raw RunBundle evidence or its manifest. --name defaults to default; names are deliberately restricted to ASCII letters, digits, _, and - so a comparison cannot select another path.

After a comparison has produced its replay JSONLs, compare --render-replay redraws the same source video from those streams without initializing RKNN or changing replay JSONLs, provenance, thresholds, or study results. It replaces only the selected derived MP4. The portable vision_runbundle_replay_render executable is built on laptops with OpenCV even when RKNN support is unavailable; scripts/omni runs compare --render-replay selects it.

The GUI and production runtime container run and record robot experiments. The ROCK 5B+ devcontainer runs this offline comparison. The operator/laptop retrieves RunBundles and generates presentation videos and reports. Do not enter the production runtime container for the normal comparison workflow. Paths are interpreted exactly in the filesystem namespace of the shell running the command.

Examples:

scripts/omni runs list
scripts/omni runs pull demo_001
scripts/omni runs inspect runs/imported/demo_001
scripts/omni runs topology runs/<new_run_id>/ros_graph/topology.json \
  runs/<new_run_id>/ros_graph/topology.svg
scripts/omni runs report runs/imported/demo_001
scripts/omni runs comparison-report runs/reference_scene \
  --trial runs/v2s_fp_scene \
  --trial runs/v2s_int8_scene \
  --trial runs/v2m_fp_scene \
  --trial runs/v2m_int8_scene \
  --trial runs/v2l_fp_scene \
  --trial runs/v2l_hybrid_scene \
  --comparison task \
  --objects studies/detector_comparison/scan_final_recal/visibility.txt
scripts/omni build vision
scripts/omni runs compare runs/demo_001 --max-frames 120
scripts/omni runs compare runs/demo_001 --render-replay --name default --max-frames 120

# In the ROCK 5B+ devcontainer, retain separate controlled-comparison passes.
scripts/omni runs compare runs/reference_scene --name task --classes config/classes/task.txt
scripts/omni runs compare runs/reference_scene --name coco80 --classes config/classes/coco80.txt

The checked-in config/classes/task.txt contains the restrained indoor/object-search vocabulary for the final replay. config/classes/coco80.txt is the conventional 80-category COCO order. The existing compiled-class-capacity validation remains authoritative: a model that cannot accept the selected vocabulary fails clearly; the command does not split or batch classes.

check

Passively validates an already running graph.

scripts/omni check
scripts/omni check real-perception

check defaults to real-perception. The verifier checks stamped teleop, detections, and vision performance topic types, then waits for representative messages. OMNISEER_TOPIC_TIMEOUT_SECONDS controls wait time; default 15. OMNISEER_REQUIRE_DETECTIONS=1 makes missing detections fatal.

OMNISEER_REQUIRE_DETECTIONS=1 scripts/omni check real-perception

doctor

Reports local build, runtime, and robot dependency state.

scripts/omni doctor

Use it to inspect local toolchains, workspace setup, hardware SDK availability, device visibility, installed ROS packages, and real vision asset paths.

flash

Runs hardware flashing helpers.

scripts/omni flash teensy

This delegates to the headless Teensy flashing helper and changes firmware on the connected controller.

docs

Builds documentation and verifies tracked diagrams.

scripts/omni docs build
scripts/omni docs diagrams [--check]
scripts/omni docs check-diagram-links [--site-dir site]

docs build is the authoritative strict documentation verification command: it checks generated HTML links and assets, built SVG-internal links, and published media for Git LFS pointers after MkDocs builds the site. docs diagrams renders D2 sources under docs/diagrams/ into tracked SVG assets under docs/assets/diagrams/; --check verifies freshness. docs check-diagram-links verifies embedded diagram links, defaulting to site unless --site-dir is supplied. OMNISEER_D2_BIN can point to the pinned D2 renderer.

scripts/omni docs build
scripts/omni docs diagrams --check

clean

Removes generated local build artifacts.

scripts/omni clean
scripts/omni clean ros
scripts/omni clean vision
scripts/omni clean docs
scripts/omni clean all

clean defaults to clean ros. Targets remove ROS workspace build/install/log trees, native vision build directories, generated docs outputs, or all of those targets.

Environment Overrides

Use scripts/omni env to see resolved values for the current shell.

Variable Effect
OMNISEER_ROS_SETUP, OMNISEER_WS_SETUP, OMNISEER_UROS_WS_SETUP Override ROS, workspace, and micro-ROS setup files.
OMNISEER_ROS_DISTRO Override the ROS distro used by setup and builds.
OMNISEER_DEFAULT_REAL_PROFILE, OMNISEER_CURRENT_REAL_PROFILE Override real-profile defaults.
OMNISEER_VISION_PARAMS_FILE Override real vision bridge parameter file.
OMNISEER_BRINGUP_DELAY_SEC, OMNISEER_BRINGUP_LOG Override real-run smoke wait and non-recording log path.
OMNISEER_TOPIC_TIMEOUT_SECONDS, OMNISEER_REQUIRE_DETECTIONS Override passive check timing and detection requirements.
OMNISEER_ROBOT_HOST, OMNISEER_ROBOT_USER, OMNISEER_ROBOT_RUNS_ROOT Override robot RunBundle retrieval target.
OMNISEER_RUNTIME_IMAGE, OMNISEER_RUNTIME_METADATA_DIR Override runtime image base and metadata directory.
OMNISEER_RUNTIME_HOST_REPO_ROOT, OMNISEER_RUNTIME_RUNS_HOST_ROOT Override runtime Docker host bind paths.
OMNISEER_RUNTIME_RUNS_LOCAL_ROOT Override the caller-visible RunBundle directory used for recording setup and verification. Defaults to <repo>/runs; set it when the Docker host bind path is unavailable inside a devcontainer.
OMNISEER_RUNTIME_DOCKER_TTY, OMNISEER_RUNTIME_SAFE_SMOKE_SEC Override runtime Docker TTY mode and smoke timeout.
OMNISEER_CONTAINER_IMAGE_REF, OMNISEER_CONTAINER_IMAGE_DIGEST, OMNISEER_EXPERIMENT_CONFIG, OMNISEER_EXPERIMENT_PARAMETERS Record container and experiment provenance.
OMNISEER_D2_BIN Override D2 renderer path for diagram commands.

Compatibility Note

scripts/omni up and legacy real-profile aliases remain available for older runbooks. New operator commands should use scripts/omni run sim, scripts/omni run real --profile operator, or scripts/omni run real --profile perception directly.