Running a Scenario¶
This guide will walk through running and visualizing a scenario.
Scenario Executions¶
- Launch or attach to the
ADORe CLIfrom the root of theADORerepo: cdto scenario directory:- Launch a scenario:
Scenario Visualization¶
ℹ️ INFO: Visualization requires a chrome based browser (see: https://www.chromium.org/chromium-projects/) 1. Start
2. Run a scenario, launch or attach to thelichtblick suiteakafoxgloveakafoxbox. From theADOReproject root run:ADORe CLIfrom the root of theADORerepo: 3. Open lichtblick (in another shell):or with a link: http://localhost:8080//?ds=rosbridge-websocket&ds.url=ws://localhost:9090&ds\=rosbridge-websocket\&layout\=Default.json Goal
Goal position picking tool for a new scenario¶
- Start
lichtblick suiteakafoxgloveakafoxbox. From theADOReproject root run: - Open the
goal_picker.html(in another shell):or with a link: http://localhost:8080/assets/goal_picker.html
The goal picker tool now displays both UTM and Lat/Long coordinates, which can be directly used with the Position class.
Goal Picking Tool¶

Creating a Scenario: How to Create a Scenario File¶
This guide walks you through the steps to create a custom scenario file for simulation or testing purposes.¶
1. Copy an Existing Scenario¶
Start by copying any working scenario file. This ensures you have a valid structure and format to begin with.
2. Get Start and Goal Coordinates¶
You can obtain coordinates using one of these methods:
Method A: Google Maps
- Use Google Maps to select your desired start point and goal point.
- Right-click on the location and choose What's here?
- Copy the latitude and longitude for both start and goal points.
Method B: Goal Picker Tool - Use the goal_picker.html tool (see Goal Position Picking section above) which provides both coordinate formats.
3. Define Positions Using the New Position Class¶
You can now define positions using either Lat/Long or UTM coordinates with the new Position class:
Option A: Using Lat/Long coordinates
Option B: Using UTM coordinates
Option C: Legacy tuple format (still supported)
> 💡TIP: The Position class automatically converts between coordinate systems, so you can use whichever format is most convenient for your source data.¶
4. Update Your Scenario File¶
Open your scenario file and update the position definitions:
¶
5. Set the Start Heading¶
The start heading (orientation in radians) can be critical for correct vehicle behavior:
- Try an initial value like 0.0 or 1.57 (90°).
- Adjust the heading using a trial-and-error method until the vehicle starts in the correct direction.
- The heading is specified as the psi parameter in the Position class or as the third element in the legacy tuple format.
✅ Example Entries:
New Position class format:
Legacy tuple format:
For a complete example see the scenario: simulation_scenarios/simulation_test.py
🔁 Final Check¶
Before running the scenario: - ✅ Validate the file syntax. - ✅ Make sure start and goal positions make sense visually. - ✅ Run the simulation and fine-tune as needed. - ✅ Test both coordinate formats to ensure compatibility.