Skip to content
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

Vehicles not showing up in the scenario #10

Open
Mohamed-Fasil opened this issue Jul 30, 2021 · 18 comments
Open

Vehicles not showing up in the scenario #10

Mohamed-Fasil opened this issue Jul 30, 2021 · 18 comments

Comments

@Mohamed-Fasil
Copy link

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
Copy link
Collaborator

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
Copy link
Author

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
Copy link
Collaborator

@seowwj Can you add a tutorial video?

@Mohamed-Fasil
Copy link
Author

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

@Mohamed-Fasil
Copy link
Author

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
Copy link
Collaborator

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
Copy link
Author

QGIS.plugin.mp4

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

@fabianoboril
Copy link
Collaborator

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

@fabianoboril
Copy link
Collaborator

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
Copy link
Author

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
Copy link
Collaborator

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

@Mohamed-Fasil
Copy link
Author

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
Copy link
Author

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 Mohamed-Fasil reopened this Oct 6, 2021
@fabianoboril
Copy link
Collaborator

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

@FENGShuanglang
Copy link

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
Copy link
Author

@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
Copy link

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

@Anhar2
Copy link

Anhar2 commented Feb 5, 2024

Could you find a solution to this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants