carla
carla copied to clipboard
Running scenarios from scenario runner automatically
Hello all,
I need to run the example scenarios in scenario runner module automatically, that is without running the manual_control.py file. So for that in my understanding I think these are the possible ways
- Using the automatic_control.py In this when I tried executing this parallely to python scenario_runner.py --scenario FollowLeadingVehicle_1 --reloadWorld, it spawns another vehicle and is executed.
So if I want to execute the scenario with automatic_control.py, I need to load the scenario to automatic_control.py and to have a PID controller? Is it the right way to do this? or how is the efficient approach to do that?
- By using the agents While using the agents, should I look into scenario runner autoagents folder and does it possible to run the scenario alone with the agent. How can we acheive that?
Also, Is it possible to use agents that are in pythonAPI folder?
Another concern is that, I tried executing the xosc files, and to automatically control that I changed the external_control to simple_vehicle_control but still the vehicle is not moving forward. what I am missing here?