-
Notifications
You must be signed in to change notification settings - Fork 44
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
Trying to run scenario_runner example script fails - ModuleNotFoundError: No module named 'DReyeVR_utils' #16
Comments
Hi @ethicallab. To help diagnose this issue, I'd like to know how you are running If you use a In either case, it looks like your Python cannot find the Hope this helps! |
Hi! We are running Python through the x64 Native Tools command prompt. Here is our PYTHONPATH (ignore the "carla9.12", it is actually 0.9.13 and I mis-named it)
Will add PythonAPI/examples |
Hi! Here is the traceback after adding examples to the PYTHONPATH
I attempted to run the test given on the scenario runner documentation and here is the error:
|
Hi again, after restarting my computer and adding PythonAPI/Utils to the PYTHONPATH, I was able to run the example scenario runner test from the documentation and produce these errors. In this case, the leading vehicle never appeared.
Attempting to run the DReyeVR scenario runner test resulted in the same error as above. (FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\kp\Documents\G\carla9.12\scenario_runner\srunner\data\routes_custom.xml') |
Right, ok so for PS: the |
To clarify, should I have |
No, if you cloned from CARLA then you only get the default. Yet unfortunately it appears we did not include this file in our scenario_runner fork which we should've. I'll upload the file here soon and include it in a push to our fork. For now you should be able to use the default routes files though. |
Thanks for the clarification! Based on your instructions I made the following command:
I successfully handed off control to the AI by pressing I want to ask a couple of things: after I run the above command, there is no need to run Secondly. is there any way to remove the big red target in the 2D mode? Ideally I'm looking to create identical recordings of 2D and VR scenarios for my experiment. Also, I'd need to record them from the passenger seat rather than the driver's seat. Finally, if the |
Yes, everything is working as expected. You don't need to run The camera not rotating is exactly issue #14 and we are working on a patch now. The big red target is what we use as the eye reticle to showcase the location where a user is looking, if you don't want this then you can simply change the params in |
In Yes, we support only the route paradigm for developing scenarios. |
Thank you @ajdroid and @GustavoSilvera ! I just wanted to clarify one final thing. I am using CARLA to:
With DReyeVR's capabilities, this should be possible, correct? Also, I've been looking online but I can't find a lot on route-based scenarios. If you've come across a guide to creating route-based scenarios, could you send it my way? Thanks again! |
Hi @aureliuszi sure this sounds like a good fit for DReyeVR. I believe @ajdroid is more familiar with the route-creation aspect of scenario-runner than I am, so I will hold on answering this. Hope this helps. |
@aureliuszi creating routes is an interactive process where you need to pick waypoints on a map to construct a route by using their locations. This is best done in the editor. |
Hi @ethicallab do you have any updates on this issue, we recently specified on the FAQ page some example questions that are related to these and should help. |
Due to lack of activity, will close this. Feel free to reopen if issue arises again. |
hi
I want to bring highway in CarlaDreyeVr because I want to use VR headset and G29 |
Hi. the Town04 you are looking for is actually in [/Script/EngineSettings.GameMapsSettings]
EditorStartupMap=/Game/Carla/Maps/Town04.Town04
GameDefaultMap=/Game/Carla/Maps/Town04.Town04
ServerDefaultMap=/Game/Carla/Maps/Town04.Town04
GlobalDefaultGameMode=/Game/Carla/Blueprints/Game/CarlaGameMode.CarlaGameMode_C
GameInstanceClass=/Script/Carla.CarlaGameInstance
TransitionMap=/Game/Carla/Maps/Town04.Town04
GlobalDefaultServerGameMode=/Game/Carla/Blueprints/Game/CarlaGameMode.CarlaGameMode_C Once you've run |
In the editor, you can simply press Ctrl+O and then navigate to |
thank you so much. I have another question if I made some changes in the editor is it apply when I execute "CarlaUE4.exe -vr"? |
No, you'll have to |
I am new Carla user could you explain a little more? |
I think Town07 issue might be related to this Carla issue. Can you try the solution suggestion there? |
I think I found the issue but not the solution! |
Hi! Btw I am talking about the "runtime error: time-out of 1000ms" |
You probably have a rogue (unkilled) python instance (PythonAPI client) still running on your machine, which is taking precedence over any new PythonAPI clients that you create. We had this a lot on Windows, try going into your task manager and killing any existing UE4Editor, CarlaUE4.exe, and python instances, then try again. |
Oh shoot, that worked! Thanks! |
Hello again Gustavo and HARPLab,
I am trying to run the following code/ here is my output:
python run_experiment.py --title "dreyevr_experiment" --route %SCENARIO_RUNNER_ROOT%\srunner\data\routes_custom.xml %SCENARIO_RUNNER_ROOT%\srunner\data\town05_scenarios.json 0
Traceback (most recent call last):
File "run_experiment.py", line 27, in
from scenario_runner import ScenarioRunner
File "C:\Users\kp\Documents\G\carla9.12\scenario_runner\scenario_runner.py", line 39, in
from srunner.scenarios.route_scenario import RouteScenario
File "C:\Users\kp\Documents\G\carla9.12\scenario_runner\srunner\scenarios\route_scenario.py", line 52, in
from DReyeVR_utils import find_ego_vehicle
ModuleNotFoundError: No module named 'DReyeVR_utils'
I have executed the commands to make both DReyeVR and the scenario runner part of DReyeVR.
Any thoughts are appreciated! Thanks again!
The text was updated successfully, but these errors were encountered: