- Go to https://www.openstreetmap.org/
- Search for the desired area, e.g. escondido california
- Zoom-in to the desired area
- 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)
Simulate perception sensors and object detection based on traffic data generated by Sumo. The roads are from downtown Toronto.
- Set the
maps_path
ininitialize_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 - Set the
output_dataset_path
ininitialize_folders.py
for the output to generate the dataset. - Run
initialize_folders.py
. - To run all scenario (bulk run): Run
sumo_visual_all_scenario.py
. - Otherwise, run
sumo_visual_scenario.py
for generating data for a single scenario. - For step 4 or 5, adjust the parameters accordingly before running the script.
- Vehicle class (in vehicle_info.py) has the vehicle attached information.
- 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)
cv2x_perceived_non_cv2x_vehicles
is a dictionary having the cv2x id as a key and the perceived vehicles as value.