How nautilus-uuv/nautilus-ros works
This repository is Nautilus’s ROS 2 autonomous-glider control stack, with host-side scenario sweep and analysis tools. The vehicle workflow begins with a mission command, runs mission/path and estimation/control nodes over shared ROS topics, then sends actuator commands to the hardware bridge; the README also documents digital-twin operation. The graph includes scenario configuration and sweep/analysis capabilities alongside runtime nodes. Several runtime links are described only at subsystem level in the README, so those edges cite it; sampled source and the SOURCE INDEX support the remaining links.
Main entry points: physics.py Sensor conversions · lhs_sample.py Scenario sampling · compile.py Scenario compiler · robot_specs.py Vehicle specifications
Components 34
Vehicle runtime
- Stack launch
src/py_pkg/launch/control_stack.launch.py - Mission dispatcher
src/py_pkg/py_pkg/path/pathfinding.py - Mission profiles
src/py_pkg/py_pkg/path/missions/profile.py - IMU prefilter
src/py_pkg/py_pkg/imu_prefilter/imu_prefilter.py - Attitude estimator
src/py_pkg/py_pkg/attitude/attitude_node.py - BCU controller
src/py_pkg/py_pkg/control/bcu_node.py - ACU controller
src/py_pkg/py_pkg/control/acu_node.py - Sensor conversions
src/py_pkg/py_pkg/physics.py
Mission configuration
- Vehicle specifications
src/py_pkg/py_pkg/robot_specs.py - Scenario compiler
src/py_pkg/py_pkg/scenarios/compile.py - Rig scenario schema
src/py_pkg/py_pkg/scenarios/spec/rig.py - Control scenario schema
src/py_pkg/py_pkg/scenarios/spec/control.py - Scenario seeding
src/py_pkg/py_pkg/scenarios/seed.py
Interfaces and safety
- STM serial bridge
src/py_pkg/py_pkg/stm_com/stm_com_node.py - ROS MQTT bridge
src/py_pkg/py_pkg/mqtt/mqtt_bridge_node.py - Liveness watchdog
src/py_pkg/py_pkg/liveness/liveness_node.py - Debug controls
src/py_pkg/py_pkg/debug/bcu_debug_node.py - ROS topic registry
src/py_pkg/py_pkg/uuv_ros_core/topics.py - Topic node factory
src/py_pkg/py_pkg/uuv_ros_core/node_factory.py - ROS node runtime
src/py_pkg/py_pkg/uuv_ros_core/node_runtime.py
Sweep tooling
- Monte Carlo sweep
scripts/run_sweep.py - Scenario sampling
scripts/lhs_sample.py - Anomaly sampling
scripts/sampling/anomaly.py - Buoyancy sampling
scripts/sampling/buoyancy.py - Mission mix sampling
scripts/sampling/mission_mix.py - Run stratification
scripts/sampling/stratify.py
Sweep analysis
- ROS bag reader
scripts/analysis/bag_reader.py - Sweep loader
scripts/analysis/sweep_loader.py - Dataset statistics
scripts/analysis/dataset_stats.py - Duty gates
scripts/analysis/duty_gates.py - Pose plots
scripts/analysis/plotting/pose_multi_plot.py
Other components
- Pilot operator
- Pilot UI
- MQTT broker
Connections 34
- Pilot operator → Pilot UI: sends mission
README.md - Pilot UI → MQTT broker: publishes commands
README.md - MQTT broker → ROS MQTT bridge: exchanges messages
src/py_pkg/py_pkg/mqtt/mqtt_bridge_node.py - Stack launch → Scenario compiler: compiles parameters
src/py_pkg/launch/control_stack.launch.py - Stack launch → Mission dispatcher: starts stack
README.md - Mission dispatcher → Mission profiles: dispatches missions
README.md - IMU prefilter → Attitude estimator: filters IMU input
README.md - Attitude estimator → Sensor conversions: uses conversions
src/py_pkg/py_pkg/attitude/attitude_node.py - STM serial bridge → Sensor conversions: uses conversions
src/py_pkg/py_pkg/stm_com/stm_com_node.py - Scenario compiler → Rig scenario schema: builds rig parameters
src/py_pkg/py_pkg/scenarios/compile.py - Scenario compiler → Control scenario schema: builds control parameters
src/py_pkg/py_pkg/scenarios/compile.py - Rig scenario schema → Vehicle specifications: uses defaults
src/py_pkg/py_pkg/scenarios/spec/rig.py - Control scenario schema → Vehicle specifications: uses hardware constants
src/py_pkg/py_pkg/scenarios/spec/control.py - Sensor conversions → Vehicle specifications: uses constants
src/py_pkg/py_pkg/physics.py - Topic node factory → ROS topic registry: resolves topics
src/py_pkg/py_pkg/uuv_ros_core/node_factory.py - Attitude estimator → Topic node factory: creates ROS endpoints
src/py_pkg/py_pkg/attitude/attitude_node.py - IMU prefilter → Topic node factory: creates ROS endpoints
src/py_pkg/py_pkg/imu_prefilter/imu_prefilter.py - STM serial bridge → ROS topic registry: uses shared topics
src/py_pkg/py_pkg/stm_com/stm_com_node.py - ROS MQTT bridge → Liveness watchdog: monitors link health
- Debug controls → ROS topic registry: uses shared topics
src/py_pkg/py_pkg/debug/bcu_debug_node.py - Monte Carlo sweep → Sensor conversions: uses physical model
scripts/run_sweep.py - Scenario sampling → Scenario compiler: compiles scenarios
scripts/lhs_sample.py - Scenario sampling → Anomaly sampling: draws anomalies
scripts/lhs_sample.py - Scenario sampling → Buoyancy sampling: draws buoyancy
scripts/lhs_sample.py - Scenario sampling → Mission mix sampling: assigns missions
scripts/lhs_sample.py - Anomaly sampling → Run stratification: uses stratification
scripts/sampling/anomaly.py - Mission mix sampling → Run stratification: uses stratification
scripts/sampling/mission_mix.py - Run stratification → Scenario seeding: uses seeds
scripts/sampling/stratify.py - Sweep loader → ROS bag reader: reads run bags
scripts/analysis/sweep_loader.py - Duty gates → Sweep loader: loads sweep runs
scripts/run_gates.py - Duty gates → ROS bag reader: reads bag data
scripts/run_gates.py - Duty gates → Vehicle specifications: uses vehicle specs
scripts/run_gates.py - Pose plots → Sweep loader: uses run discovery
scripts/analysis/plotting/pose_multi_plot.py - Pose plots → Sensor conversions: uses conversions
scripts/analysis/plotting/pose_multi_plot.py