traffic-generation-editor icon indicating copy to clipboard operation
traffic-generation-editor copied to clipboard

Vehicles not showing up in the scenario

Open Mohamed-Fasil opened this issue 4 years ago • 18 comments

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!!

Mohamed-Fasil avatar Jul 30 '21 19:07 Mohamed-Fasil

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.

fabianoboril avatar Aug 02 '21 07:08 fabianoboril

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.

Mohamed-Fasil avatar Aug 03 '21 15:08 Mohamed-Fasil

@seowwj Can you add a tutorial video?

fabianoboril avatar Aug 04 '21 08:08 fabianoboril

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

Mohamed-Fasil avatar Aug 16 '21 13:08 Mohamed-Fasil

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!!

Mohamed-Fasil avatar Sep 15 '21 14:09 Mohamed-Fasil

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.

fabianoboril avatar Sep 15 '21 14:09 fabianoboril

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.

Mohamed-Fasil avatar Sep 15 '21 20:09 Mohamed-Fasil

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

fabianoboril avatar Sep 16 '21 10:09 fabianoboril

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>)?

fabianoboril avatar Sep 19 '21 14:09 fabianoboril

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

Mohamed-Fasil avatar Sep 21 '21 17:09 Mohamed-Fasil

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

fabianoboril avatar Sep 22 '21 05:09 fabianoboril

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 avatar Sep 22 '21 16:09 Mohamed-Fasil

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

Mohamed-Fasil avatar Oct 06 '21 18:10 Mohamed-Fasil

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

fabianoboril avatar Oct 18 '21 05:10 fabianoboril

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

FENGShuanglang avatar Oct 20 '21 14:10 FENGShuanglang

@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.

Mohamed-Fasil avatar Oct 27 '21 17:10 Mohamed-Fasil

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

ronyshaji avatar Jul 25 '23 12:07 ronyshaji

Could you find a solution to this issue?

Anhar2 avatar Feb 05 '24 18:02 Anhar2