Python packages can be installed using the supplied requirements.txt
by:
pip3 install --user -r /path/to/requirements.txt
Code > Download ZIP
).Install plugin from plugins menu (Plugins > Manage and Install Plugins > Install from ZIP
), choose the zip file that was previously downloaded.
Note: If CARLA AD Map plugin has not been installed before, same steps can be used to install the ZIP package.
Installed
tab and make sure OpenSCENARIO Editor Toolkit
is enabled._For the full support list, visit OpenSCENARIO Tags Support_
✅ - Supported
❌ - Not supported
Description | Support | Notes |
---|---|---|
Time of day | ✅ | Includes enabling animation of time |
Cloud state | ✅ | |
Fog visual range | ✅ | |
Sun | ✅ | Includes intensity, azimuth, elevation |
Precipitation | ✅ | Includes precipitation type and intensity |
Description | Support | Notes |
---|---|---|
Spawn with World Position | ✅ | |
Set initial speed | ✅ | |
Set orientation | ✅ | Can either use lane heading, or manually specified |
Set as ego vehicle | ✅ | Only for vehicles |
Agent selection | ✅ | Only for ego vehicles (manual_control will require manually changing Ego_1 tag to hero ) |
Agent parameter overrides | ❌ | Only for ego vehicles (overriding throttle, brake, clutch, parking brake, steering, gear) |
Description | Support | Notes |
---|---|---|
Spawn with World Position | ✅ | |
Set object type | ✅ | |
Set object mass | ✅ | |
Set orientation | ✅ | Can either use lane heading, or manually specified |
Enable/Disable physics | ✅ |
Description | Support | Notes |
---|---|---|
Running stop test | ✅ | |
Running red light test | ✅ | |
Wrong lane test | ✅ | |
On sidewalk test | ✅ | |
Keep lane test | ✅ | |
Collision test | ✅ | |
Driven distance test | ✅ |
Description | Support | Notes |
---|---|---|
Waypoints | ✅ | |
Longitudinal | ✅ | |
Lateral | ✅ | |
Synchronize Action | ❌ | |
Teleport Action | ❌ |
Description | Support | Notes |
---|---|---|
Environment | ❌ | |
Infrastructure Action | ✅ | Traffic light signal control |
Icon | Description |
---|---|
Edit environment | |
Add vehicles | |
Add pedestrians | |
Add static objects | |
Add maneuvers | |
Add parameters | |
Add end evaluation KPIs (Specific for Scenario Runner) | |
Export OpenSCENARIO file | |
Import OpenSCENARIO file | |
Connect to carla instance | |
Add bird eye view camera |
Click on 'Edit environment' button to load dock widget.
Edit parameters in dock widget to desired parameters.
Press on 'Apply'
Note: To change environment settings, simply adjust the parameters and press 'Apply' again. Previous environment settings will be cleared and replaced with the updated ones.
Click on 'Add vehicles' button to load dock widget.
Choose parameters (vehicle type, use lane heading / manually specify, initial speed)
Agent selection is only enabled for Ego vehicles. You can also specify your own agent.
Press on 'Insert', mouse pointer will change to cross-type pointer.
Click on desired map position to spawn vehicle.
If click point contains multiple lanes and 'Use lane heading' is checked, a dialog box will appear and ask to select lane ID to use for lane heading.
If click point contains lanes with multiple elevations, a dialog box will appear and ask to select the desired elevation.
Note: Sometimes there will be a "Click point too far from lane" error. Try choosing a different elevation.
Note: Currently you can insert vehicle one at a time.
Note: You can toggle labels on and off by clicking on the 'Label' button
Click on 'Add pedestrians' button to load dock widget.
Choose parameters (pedestrian type, use lane heading / manually specify, initial speed)
If 'Use random pedestrian' is checked, a random pedestrian type will be selected for every spawned pedestrian.
Press on 'Insert', mouse pointer will change to cross-type pointer.
Click on desired map position to spawn pedestrian.
If click point contains multiple lanes and 'Use lane heading' is enabled, a dialog box will appear and ask to select lane ID to use for lane heading.
If click point contains lanes with multiple elevations, a dialog box will appear and ask to select the desired elevation.
Note: Sometimes there will be a "Click point too far from lane" error. Try choosing a different elevation.
Note: You can insert as many pedestrians as you desire after pressing on 'Insert'
Note: You can toggle labels on and off by clicking on the 'Label' button
In Layers
right click on layer and select Open Attribute Table
.
Click on the pencil icon on top left to enable editing.
Highlight the row containing the entity for deletion.
Click on trash can to delete entity.
Click on pencil icon to disable editing.
When prompted to save changes, choose 'Yes'.
Click on 'Add Maneuvers' button to load dock widget.
Choose either to add entity maneuvers or global actions under Maneuver Type
.
Entity maneuvers
Refresh entity list
.Start Triggers
tab.Stop Triggers
tab by checking the box beside Stop Triggers
.Insert
, and click on the map to spawn as many waypoints as intended.Pan Map
tool (symbolized with a hand icon)Insert
.Global actions
Toggle traffic light labels
.Refresh traffic light IDs
.Triggers
tab.Insert
.Note: It is important to set up the start/stop triggers first before inserting the maneuver
ReachPositionCondition
, click on Choose position
.In Layers
right click on layer and select Open Attribute Table
.
Click on the pencil icon on top left to enable editing.
Highlight the row containing the maneuver / waypoint for deletion.
Click on trash can to delete entity.
Click on pencil icon to disable editing.
When prompted to save changes, choose 'Yes'.
After inserting entities or maneuvers, you can edit them using the Attributes table.
In Layers
, right click on layer and select Open Attribute Table
.
Click on the pencil icon on top left to enable editing.
Double click on cell to edit.
Change the cell value.
When desired changes are complete, click on pencil icon to disable editing.
When promted to save changes, choose 'Yes'.
Note: Changing the positions (X, Y, heading) in the attributes table does not update the positions seen in the map.
You can define you own parameters to be used inside the scenario.
Click on the Add Parameters
icon.
Setup parameters based on requirements (name, type, value).
Click on Insert
.
If a parameter name already exists, the plugin will prompt you if you want to replace it.
Note: To edit existing parameters, you can edit them directly using the Attributes table, or using the same parameter name and clicking on Insert
. The plugin will ask for confirmation to replace the existing parameter.
Parameters can be used when creating scenarios.
If the parameter does not exist, and error message will appear, as shown below.
For Scenario_Runner
export CARLA_ROOT=/path/to/your/carla/installation
export SCENARIO_RUNNER_ROOT=/path/to/your/scenario/runner/installation
export PYTHONPATH=$PYTHONPATH:${CARLA_ROOT}/PythonAPI/carla/dist/carla-<VERSION>.egg
export PYTHONPATH=$PYTHONPATH:${CARLA_ROOT}/PythonAPI/carla/agents
export PYTHONPATH=$PYTHONPATH:${CARLA_ROOT}/PythonAPI/carla
export PYTHONPATH=$PYTHONPATH:${CARLA_ROOT}/PythonAPI
To change the map, Choose a map from drop down menu.
Press on 'Change Map'
Note: To change environment settings, simply select the map and press 'Change Map' again. Previous map will be cleared and replaced with the updated ones.
click on 'Add Camera' button to load Add camera dock widget.
Select the height you want to place the bird eye camera from drop down menu.
Click on 'Insert camera manually' button, mouse pointer will change to cross-type pointer.
Click on desired map position to spawn camera.
Note: To use Automatic Camera placement, make sure you have added at least 2 actors/vehicles.