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

Use sumoweb-3d for visualizations #78

Closed
eugenevinitsky opened this issue Sep 1, 2018 · 7 comments
Closed

Use sumoweb-3d for visualizations #78

eugenevinitsky opened this issue Sep 1, 2018 · 7 comments

Comments

@eugenevinitsky
Copy link
Member

https://github.com/sidewalklabs/sumo-web3d/
is an incredible visualization tool that we should figure out a pipeline for using,

@eugenevinitsky
Copy link
Member Author

Credit to @pcmoritz
sidewalklabs/sumo-web3d@master...ray-project:flow'

master...pcmoritz:web3d

[ ] create instructions for using this visualier

@eugenevinitsky
Copy link
Member Author

It can be started like so: First do python flow/visualize/visualizer_rllib.py ~/ray_results/figure_eight_0/ARS_AccelEnv-v0_0_2018-09-03_05-29-138ycb3t5k/ 30 --run ARS --num_rollouts 10000000 and then do python sumo_web3d/sumo_web3d.py --sumo-port 51544 -c /home/ubuntu/flow/flow/core/debug/cfg/figure_eight_0_20180903-062503.sumo.cfg
where 51544 can be read out from "ps aux | grep sumo" by picking the one with num-clients = 2

@eugenevinitsky
Copy link
Member Author

eugenevinitsky commented Nov 13, 2018

  • Merge phillip's PR
  • Upgrade to sumo 1.0.1
  • Get visualization to work for bottlenecks
  • Add instructions to the readthedocs
  • Add correct coloring scheme for vehicles

@eugenevinitsky
Copy link
Member Author

Done in #278

@nanxintin
Copy link

Hi @eugenevinitsky ,
I am using the sumo-web3d for visualization. Firstly, python flow/visualize/visualizer_rllib.py "path-to-pkl-file" "checkpoint num". Secondly, python sumo_web3d/sumo_web3d.py --sumo-port "port_num" -c "path to sumo.cfg". I set the '--render_mode' in visualize.py as 'sumo_web3d', and set the right "port_num" and "path to sumo.cfg". While the 127.0.0.1:5000 just shows "Loading...", and nothing else happens. Do you have any suggestions?
Thanks very much !

@roireshef
Copy link
Contributor

Hi @eugenevinitsky ,
I am using the sumo-web3d for visualization. Firstly, python flow/visualize/visualizer_rllib.py "path-to-pkl-file" "checkpoint num". Secondly, python sumo_web3d/sumo_web3d.py --sumo-port "port_num" -c "path to sumo.cfg". I set the '--render_mode' in visualize.py as 'sumo_web3d', and set the right "port_num" and "path to sumo.cfg". While the 127.0.0.1:5000 just shows "Loading...", and nothing else happens. Do you have any suggestions?
Thanks very much !

Hi @nanxintin did you ever get it to work? I'm experiencing issues as well.

@nanxintin
Copy link

Hi @roireshef , I did not get it to work. Maybe @eugenevinitsky can help you solve this problem.

AboudyKreidieh added a commit that referenced this issue Mar 7, 2021
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

3 participants