Giter Club home page Giter Club logo

sumo2vision's Introduction

Downloading Map

  1. Go to https://www.openstreetmap.org/
  2. Search for the desired area, e.g. escondido california
  3. Zoom-in to the desired area
  4. Export the area and save it to a specific folder

Tip

You can use https://josm.openstreetmap.de/ to edit the map and remove some unwanted blocks (e.g. roads or buildings)

Sumo to Vision

Simulate perception sensors and object detection based on traffic data generated by Sumo. The roads are from downtown Toronto.

Data generation

  1. Set the maps_path in initialize_folders.py to the path of the downloaded maps. You can also set the position of a Basestation as a text file corresponding to each map
  2. Set the output_dataset_path in initialize_folders.py for the output to generate the dataset.
  3. Run initialize_folders.py.
  4. To run all scenario (bulk run): Run sumo_visual_all_scenario.py.
  5. Otherwise, run sumo_visual_scenario.py for generating data for a single scenario.
  6. For step 4 or 5, adjust the parameters accordingly before running the script.

Data format

  1. Vehicle class (in vehicle_info.py) has the vehicle attached information.
  2. The output files have the following format:

(cv2x_vehicles, non_cv2x_vehicles, buildings, cv2x_perceived_non_cv2x_vehicles, scores_per_cv2x, los_statuses, vehicles, cv2x_perceived_non_cv2x_vehicles, cv2x_vehicles_perception_visible, tot_perceived_objects, tot_visible_objects)

  1. cv2x_perceived_non_cv2x_vehicles is a dictionary having the cv2x id as a key and the perceived vehicles as value.

sumo2vision's People

Contributors

kasparov92 avatar b-hakim avatar

Watchers

Kostas Georgiou avatar  avatar

sumo2vision's Issues

Output File Visualization

Thanks for your nice work!
I followed your steps mentioned in README and finally still did not get any visual results but only the following content in the terminal after running python sumo_visual_scenario.py:

...
99985
99986
99987
99988
99989
99990
99991
99992
99993
99994
99995
99996
99997
99998
99999
100000
Simulation #2_0 terminated!
(sumo2vision) alex@fst-computer:~/Documents/sumo2vision$ 

Are there any ways to visualize the result?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.