-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scenario_runner error #105
Comments
First off, can you try using our fork (on branch Then make sure to run scenarios with the See here how to use the route-based scenario commands: https://carla-scenariorunner.readthedocs.io/en/latest/getting_started/#running-route-based-scenario-similar-to-the-carla-ad-challenge |
Looking into this more, and I believe the main reason for this issue is because the import sys, os
sys.path.insert(0, os.path.join(os.getenv("CARLA_ROOT"), "PythonAPI")) # add Carla files
sys.path.insert(0, os.path.join(os.getenv("CARLA_ROOT"), "PythonAPI", "examples")) # add Carla examples Since currently (as of writing) the |
I deleted my previous scenario_runner folder and cloned the one you suggested. So now I am working on the
This may have to do with my system not recognizing CARLA_ROOT and SCENARIO_RUNNER_ROOT, because when i enter I made sure to include the path file in the following directories: |
Okay, yeah it looks like you don't have the environment variable Can you check |
(It is also a good idea to keep a |
Do the predefined carla scenarios work with DReyeVR? I tried to run the FollowLeadingVehicle_1 scenario as explained here https://carla-scenariorunner.readthedocs.io/en/latest/getting_scenariorunner/ , but nothing seemed to happen. I thought it was because carla designed the scenarios for autonomous vehicles to follow, but in the link I referenced they talk about testing it out with manual_control.py. If the scenario is supposed work, is the leading vehicle supposed to appear in front of you on a given position? Or does it appear as soon as you start driving? |
Scenario runner should work as long as you are using our patches because we override the logic to spawn a DReyeVR EgoVehicle as the |
I went through the issue as you suggested. So is it not possible to run scenarios with an OpenSCENARIO format? I didn't quite get the answer from the discussion. |
Sorry, I specifically wanted to reference this comment to get ScenarioRunner running with DReyeVR. Namely that you need to run the python scenario_runner.py --route srunner/data/routes_training.xml srunner/data/all_towns_traffic_scenarios.json 10 --output --timeout 1000 --reloadWorld --sync |
So if we were to export the scenarios in OpenScenario as an xml file + a json file, we'll be able to run our scenarios in the way you described? |
If you can run it in |
I tried to run a scenario using the route method to get a better feel for what they are supposed to do in DReyeVR.
This is supposed to be a control_loss scenario. This loads a different town with multiple actors, but I didn't experience any control loss. The scenario seemed to have run succesfully, because it gives a report afterwards. Only I can't seem to understand what it's supposed to do. Do I only loss control when I follow a specific path? Also from the issue you as referenced. Therein you say that xml is the route the ego_vehicle has to follow. And the JSON file is the list of potential locations where trigger are placed. Where is then the behaviour of the other actors described? Is that in the python scripts with the behaviour trees? If so, then only having the xml file and the JSON file isn't enough. So even if we are able to get an xml file and JSON file from OpenScenario, the actual behaviour will still need to be made in a seperate python file? Which makes the use of OpenScenario in this situation pointless. |
The xml and json files (as you mentioned) describe essentially which route/scenario to load, but the corresponding logic for each of these scenarios is (in python) in the |
As an improvement, I've been working on a new system to automatically spawn the navigational signs according to the route waypoints. You can check this out in #112 |
We are getting the following error when trying to testing out the demo examples:
Also in the demo examples, the command specifies routes_custom.xml which doesn't seem to exist : https://github.com/carla-simulator/scenario_runner/tree/v0.9.13/srunner/data
I would also like to ask if it is possible to use scenarios made in roadrunner, and if so with the following behaviour: After passing a specific point, a car starts tailgating the driver.
The text was updated successfully, but these errors were encountered: