Does SUMO have a functionality where I might get coordinates and timestamps of the future path it [message #1858634] |
Wed, 12 April 2023 16:32  |
Eclipse User |
|
|
|
Hello everyone,
I was trying to implement responsibility safety rules for a project under a professor.
The algorithm is as follows,
Firstly we would randomly initialize the start and end points of cars, then we would calculate the conflict zones of each of the cars using future paths.
The conflict zones would then be realized on a case-by-case basis.
But the main problem I am having is figuring out a way to get the future path of a car.
Can I do it in SUMO, if yes the how if not then is there any other simulator which might be helpful for this project?
|
|
|
Re: Does SUMO have a functionality where I might get coordinates and timestamps of the future path i [message #1859676 is a reply to message #1858634] |
Thu, 22 June 2023 08:18  |
Eclipse User |
|
|
|
SUMO does let you do that. You gotta use the TraCI API to get planned route info. You can call the getRoute function, which gives you a list of edge IDs the vehicle plans to travel.
For the timestamps, things are a bit trickier 'cause SUMO doesn't directly provide future timestamps. But you could estimate them using the vehicle's current speed and the length of each edge on the route.
If you wanna explore other options, NETSIM and MATSim are solid choices too. They're a bit more complex but offer more detailed outputs.
Hope this helps, mate.
|
|
|
Powered by
FUDForum. Page generated in 0.02363 seconds