Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TT 113-Create-SUMO-background-traffic (#233)
<!-- Thanks for the contribution, this is awesome. --> # PR Details ## Description Creating relevant scenario, routing, sumo files for background traffic for Town 05. Possible options: 1. https://sumo.dlr.de/docs/Tools/Trip.html to generate random route files given input parameters 2. https://sumo.dlr.de/docs/od2trips.html (origin destination) allows you to configure origin and destination as well as intermediate edges to use. 3. https://sumo.dlr.de/docs/Definition_of_Vehicles%2C_Vehicle_Types%2C_and_Routes.html#incomplete_routes_trips_and_flows similar to od2trips but allows for definition of traffic flows (multiple vehicles that follow an origin/destination route). In this PR: 1. Option 1 has been selected and background traffic route file for Town05 has been generated using sumo tools **randomTrips.py**. 2. A bash script genrate_random_traffic.sh has been written to generate background traffic for given sumo network of Town05 which can be utilized to generate background traffic for other maps and uses case's requirement 3. A new directory named tools has been created to store the script genrate_random_traffic.sh under Co-simulation Directory ## Related Jira Key TT-113 ## Motivation and Context <!--- Why is this change required? What problem does it solve? --> ## How Has This Been Tested? 1. The generated background route file has been tested by running a Sumo simulation with the route file ![Simulation in Sumo with the background route file ](https://github.com/user-attachments/assets/1c52e659-dd80-455d-8ad6-c14a24cc1d5f) ## Types of changes <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [ ] Defect fix (non-breaking change that fixes an issue) - [x] New feature (non-breaking change that adds functionality) - [ ] Breaking change (fix or feature that cause existing functionality to change) ## Checklist: <!--- Go over all the following points, and put an `x` in all the boxes that apply. --> <!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> - [ ] I have added any new packages to the sonar-scanner.properties file - [ ] My change requires a change to the documentation. - [ ] I have updated the documentation accordingly. - [ ] I have read the [**CONTRIBUTING**](https://github.com/usdot-fhwa-stol/carma-platform/blob/develop/Contributing.md) document. - [ ] I have added tests to cover my changes. - [ ] All new and existing tests passed.
- Loading branch information