carla-simulator / scenario_runner

Traffic scenario definition and execution engine
https://carla-scenariorunner.readthedocs.io/en/latest/
MIT License
532 stars 363 forks source link

Sensor issue when running route-based scenarios with agents on carla 0.9.10.1 #1101

Open TahaCarla opened 4 months ago

TahaCarla commented 4 months ago

Describe our question or idea I am trying to run route-based scenarios on scenario_runner with smart agents that require access to some sensors, like specified inside the scenario_runner file

parser.add_argument( '--route', help='Run a route as a scenario (input: (route_file,scenario_file,[route id]))', nargs='+', type=str) parser.add_argument( '--agent', help="Agent used to execute the scenario. Currently only compatible with route-based scenarios.") parser.add_argument('--agentConfig', type=str, help="Path to Agent's configuration file", default="")

When I try autonomous agent and human agent it works fine, but when it try with agents that require sensors I have the error shown on the screenshot, If you've been through this problem before or have any idea, feel free to comment it down.

Screenshots image

Desktop (please complete the following information):

starrye commented 3 months ago

Maybe you could print out which agent you're using now? Then check to see if the sensors method in the corresponding agent file has sensors