carla-simulator / traffic-generation-editor

Visual generation of traffic scenarios based on the OpenSCENARIO standard
MIT License
65 stars 14 forks source link

Vehicles not showing up in the scenario #10

Open Mohamed-Fasil opened 3 years ago

Mohamed-Fasil commented 3 years ago

Hello,

I followed the instructions specified in the documentation to create a scenario using the QGIS plugin. When I place a camera and hit play scenario, the pygame window opens up with the map but I can't see any vehicles in it. It just seems to be a static image.

I also tried using different vehicles as well just to make sure it is not an issue with just one vehicle.

Please let me know if I am missing something.

Thanks!!

fabianoboril commented 3 years ago

Hi, if do not define any maneuvers or such, the scenario itself will terminate immediately. Thus, you will not see any vehicles/actors. You can just add a "dummy" maneuver for on of the actors, for example to start driving after 10 seconds. This should help you to see the actors.

Mohamed-Fasil commented 3 years ago

Hello,

I did add a dummy maneuver for the actors to start driving after 5 secs, but unfortunately I am still facing the same error. May be I am doing something wrong with respect to adding the the maneuver. It would be really helpful if there is a video explaining the right way to create and run the scenario.

fabianoboril commented 3 years ago

@seowwj Can you add a tutorial video?

Mohamed-Fasil commented 3 years ago

@fabianoboril I tried creating different scenarios but still this issue persists.

Mohamed-Fasil commented 3 years ago

Hello @fabianoboril and @seowwj !! I tried the same on a Linux machine as well but unfortunately the issue persists. Request your help on this one as we have struck at this particular step. Thanks!!

fabianoboril commented 3 years ago

I can't recreate this problem. Could you do a screen recording that you can share? And please check that you use the latest versions.

Mohamed-Fasil commented 3 years ago

https://user-images.githubusercontent.com/31707333/133506090-7e7ca215-4f95-4754-8998-4631ae922517.mp4

Hello @fabianoboril !! Please find the attached screen share. Thanks for the immediate response.

fabianoboril commented 3 years ago

Did you try to run the scenario directly with ScenarioRunner? Maybe SR crashes immediately on your system.

fabianoboril commented 3 years ago

I did some more testing, and I am not able to reproduce your issue. Can you please check to run the exported scenario directly with ScenarioRunner (python3 $SCENARIO_RUNNER_ROOT/scenario_runner.py --openscenario <path/to/your/file>)?

Mohamed-Fasil commented 3 years ago

Hello @fabianoboril !! Sorry for the delay, I was installing the entire setup in a Ubuntu only laptop just to make sure I eliminate the VM issues. This is the error I get when I try to run the exported openscenario with scenario runner Screenshot from 2021-09-21 13-03-46

fabianoboril commented 3 years ago

This is a strange error. Did you create the trial.xosc with the scenario editor? Can you share the file here?

Mohamed-Fasil commented 3 years ago

Hello @fabianoboril !! I think I figured it out, I didn't give a waypoint for all the vehicles and because of that the vehicles didn't show up. As a suggestion, it would be really helpful if you can mention to give waypoints to all the vehicles in the documentation such that it will be helpful for new users like me. Thanks for helping me debug this issue.

Mohamed-Fasil commented 3 years ago

Screenshot from 2021-10-06 13-17-26

Whenever I try creating a scenario, I get the above error and the pygmae window appears dark

fabianoboril commented 3 years ago

Ok, that shouldn't happen. I will try to take a look.

FENGShuanglang commented 3 years ago

I have the same question.when I click Play Scenario ,it only appears a still picture. it work well run the /tmp/scenariogenerate1.XOSC file with ScenarioRunner(python $SCENARIO_RUNNER_ROOT/scenario_runner.py --openscenario <path/to/your/file> ), I think the main reason is 'Popen(["python …"])' , But I create a py file coding with 'Popen(["python …"])' , it works well . So what is the real reason? Please help me. By the way I find a bug, you miss the key 'RelDistType ' in code

Mohamed-Fasil commented 3 years ago

@fabianoboril We are trying to promote this solution to our customers as well, hence it would be really helpful if we can figure out this issue. Thanks in advance.

ronyshaji commented 1 year ago

@Mohamed-Fasil Did you ever tried to find a solution?

Anhar2 commented 9 months ago

Could you find a solution to this issue?