Skip to content

Running route-based scenario (similar to the CARLA AD Challenge) #1138

Open
@AnaHReyna

Description

@AnaHReyna

Describe the bug
I'm studying the scenarios by scenario runner routes, but I can't find the json files that the documentation asks for to pass it as a parameter. So I put it like this:
python scenario_runner.py --route srunner/data/routes_town10.xml --agent srunner/autoagents/npc_agent.py

This error appears:
Preparing scenario: RouteScenario_0
ScenarioManager: Running scenario RouteScenario_0
======[Agent] Wallclock_time = 2025-02-27 22:01:29.496917 / Sim_time = 0.05000000074505806
Traceback (most recent call last):
File "scenario_runner.py", line 439, in _load_and_run_scenario
self.manager.run_scenario()
File "/home/ana/scenario_runner/srunner/scenariomanager/scenario_manager.py", line 136, in run_scenario
self._tick_scenario(timestamp)
File "/home/ana/scenario_runner/srunner/scenariomanager/scenario_manager.py", line 175, in _tick_scenario
self.scenario_tree.tick_once()
File "/home/ana/anaconda3/envs/scenario_runner/lib/python3.7/site-packages/py_trees/behaviour.py", line 158, in tick_once
for unused in self.tick():
File "/home/ana/anaconda3/envs/scenario_runner/lib/python3.7/site-packages/py_trees/composites.py", line 578, in tick
for node in child.tick():
File "/home/ana/anaconda3/envs/scenario_runner/lib/python3.7/site-packages/py_trees/composites.py", line 494, in tick
for node in child.tick():
File "/home/ana/anaconda3/envs/scenario_runner/lib/python3.7/site-packages/py_trees/composites.py", line 578, in tick
for node in child.tick():
File "/home/ana/anaconda3/envs/scenario_runner/lib/python3.7/site-packages/py_trees/behaviour.py", line 249, in tick
new_status = self.update()
File "/home/ana/scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py", line 4428, in update
for black_var_name, scen_location, scen_name in self._blackboard_list:
ValueError: not enough values to unpack (expected 3, got 2)
not enough values to unpack (expected 3, got 2)
No more scenarios .... Exiting
Watchdog exception - Timeout of 11.0 seconds occured
Aborted (core dumped)
I need some ideas on how I should pass the parameters.

Desktop (please complete the following information):

  • OS: [e.g. Ubuntu 22.04]
  • CARLA Version [e.g. CARLA 0.9.15]
  • Python version [e.g. 3.7.16]

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions