Run SUAVE
With Runner
Trying it out!
If you simply want to try out the exemplar, simply enter the following commands in a terminal:
cd ~/suave_ws/src/suave/runner/
./example_run.sh
Within a couple of minutes, some new terminals should open as well as the Gazebo simulator.
A default mission is executed of inspecting the pipeline with a time limit.
To follow the robot as it progresses along its mission make sure to right click and follow it in the entity tree of Gazebo as shown below:
Please note: It can take a little while for the robot to get moving, it is an issue we are aware of. Once it does get a move on you should see it perform its mission for about 5 minutes.
Full Runner
There are two ways to run a full experiment campaign.
Option 1 — Shell runner (simple, positional arguments):
cd ~/suave_ws/src/suave/runner/
./runner.sh false metacontrol time 2
The script takes 4 positional arguments:
trueorfalse— whether to show a GUImetacontrol,random,none, orbt— adaptation managertimeordistance— mission typeNumber of runs (integer)
Option 2 — ROS 2 runner (config-file driven, recommended for larger campaigns):
First make sure you source the suave workspace:
cd ~/suave_ws/
source install/setup.bash
Then run:
Without gui:
ros2 run suave_runner suave_runner \
--ros-args \
-p gui:=False \
-p experiments:='[
"{\"experiment_launch\": \"ros2 launch suave_bringup mission.launch.py adaptation_manager:=bt\", \
\"num_runs\": 2, \
\"adaptation_manager\": \"bt\", \
\"mission_name\": \"suave\"}"
]'
With gui:
ros2 run suave_runner suave_runner \
--ros-args \
-p gui:=True \
-p experiments:='[
"{\"experiment_launch\": \"ros2 launch suave_bringup mission.launch.py adaptation_manager:=bt\", \
\"num_runs\": 2, \
\"adaptation_manager\": \"bt\", \
\"mission_name\": \"suave\"}"
]'
To run the BT manager through ROS 2 actions, append
use_action_server:=true to its experiment command:
ros2 run suave_runner suave_runner \
--ros-args \
-p experiments:='[
"{\"experiment_launch\": \"ros2 launch suave_bringup mission.launch.py adaptation_manager:=bt use_action_server:=true\", \
\"num_runs\": 2, \
\"adaptation_manager\": \"bt\", \
\"mission_name\": \"suave\"}"
]'
You can also use a launch file with a config file to make it easier to run the experiments:
ros2 launch suave_runner suave_runner_launch.py
To run SUAVE with different managing subsystems, replace the experiment_launch with the proper launch file.
Runner config reference
suave_runner/config/runner_config.yml controls all experiment parameters. The key fields are:
Parameter |
Default |
Description |
|---|---|---|
|
|
Directory where CSV result files and per-run logs are written |
|
|
Launch Gazebo with a visible window |
|
|
Enable extra console output from the runner (ArduPilot and ROS node logs are always captured to |
|
|
Maximum seconds to wait for |
|
|
ROS package containing the mission config |
|
|
Path to mission config within that package |
|
|
Command used to start ArduPilot SITL |
|
|
Simulation launch command |
|
|
AUV spawn position in the Gazebo world; Y comes from the shipped runner config |
|
|
Random offset range applied to X spawn position each run |
|
|
Random offset range applied to Y spawn position each run |
|
|
Random offset range applied to Z spawn position each run |
|
|
Fixed time offset (s) before the water visibility disturbance |
|
|
Random range added on top of the fixed offset |
|
|
List of thruster events: |
|
|
Random offset (s) applied to each thruster event time |
|
|
Number of runs before re-randomising offsets |
|
|
Seed for the perturbation RNG — fix this value for reproducible benchmark campaigns |
|
|
Path to an existing result folder to resume a crashed campaign (empty = start a new timestamped folder) |
|
(see file) |
List of experiment definitions (see below) |
Each entry in experiments is a JSON string with four fields:
experiments:
- |
{
"experiment_launch": "ros2 launch suave_bringup mission.launch.py adaptation_manager:=bt",
"num_runs": 10,
"adaptation_manager": "bt",
"mission_name": "suave"
}
Field |
Description |
|---|---|
|
Full |
|
Number of times to repeat this experiment |
|
Label written into result CSV files |
|
Mission label written into result CSV files |
Multiple experiments can be listed and will be run sequentially. See the Metrics Reference for details on output files.
Resuming a crashed campaign
If the runner is interrupted mid-campaign (crash, Ctrl+C, power loss), it can resume from where it left off without re-running completed runs.
After each successful run the runner writes a marker file
run_<exp_idx>_<run_idx>.done inside the result folder. Runs that timed out
(no result received within run_duration) are not marked and will be
retried on resume.
To resume, pass the path of the interrupted result folder via
resume_result_path:
ros2 run suave_runner suave_runner \
--ros-args \
-p resume_result_path:=~/suave/results/2026_06_19_10-30-00 \
-p experiments:='[
"{\"experiment_launch\": \"ros2 launch suave_bringup mission.launch.py adaptation_manager:=bt\", \
\"num_runs\": 10, \
\"adaptation_manager\": \"bt\", \
\"mission_name\": \"suave\"}"
]'
The experiments parameter must match the original campaign exactly so that
run indices line up with the marker files. Per-run mission config files
(mission_config_run*.yaml) are reused from the existing folder if present;
otherwise they are regenerated using the same random seed.
Without the runner
Configuring SUAVE:
SUAVE has a number of parameters that may be of interest when running experiments with its missions, such as the time limit of a time constrained mission or the frequency of thruster failure. These can be found in the mission_config.yaml file. Note: When you change the mission_config file, you need to rebuild the suave_ws with colcon build --symlink-install
Note: Before starting the simulation or the ros nodes, remember that you have to source SUAVE’s workspace. If you are using the dockerized version this is already done for you, therefore sourcing the workspace is not necessary.
Navigate to the workspace and source it:
cd ~/suave_ws/
source install/setup.bash
With SUAVE configured and sourced, start ArduSub, the simulation, and the SUAVE’s nodes with the following instructions.
Start ArduSub
Run:
sim_vehicle.py -L RATBeach -v ArduSub --model=JSON --console
Start the simulation
Run:
ros2 launch suave simulation.launch.py x:=-17.0 y:=2.0
Note: It is possible to pass arguments to specify the x and y coordinates of where the UUV spawns, by changing the values. In the above launch command the initial coordinates are set to (-17.0, 2.0).
Start SUAVE’s nodes
Run:
ros2 launch suave_bringup mission.launch.py
Mission results: The mission results will be saved in the path specified in the mission_config.yaml file.
Selecting the managing system and mission type: Launching the mission file without launch arguments will start a time-constrained mission without a managing subsystem. To select a different managing subsystem or a different type of mission, the following launch arguments can be used:
'adaptation_manager':
Managing subsystem to be used
available values: none/metacontrol/random/bt
(default: 'none')
'result_filename':
Filename for the mission measured metrics
available values: any name
(default: empty; the metrics node uses its default filename)
'mission_type':
Mission label written to metrics
(default: 'time_constrained_mission')
'use_action_server':
For the BT manager, start managed behaviors through ROS 2 actions
available values: true/false
(default: false)
The arguments can be defined by adding the above arguments with the notation <name>:=<value> to the end of the command line.
An example of running a mission with metacontrol saving to a file called ‘measurement_1’:
ros2 launch suave_bringup mission.launch.py adaptation_manager:=metacontrol result_filename:=measurement_1
An example of running the BT manager in action-server mode:
ros2 launch suave_bringup mission.launch.py \
adaptation_manager:=bt use_action_server:=true