Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] How to get the turning behavior of the vehicle?

Thank you for your reply
I read some documents of sumolib but still don't understand how to use it

ex: dir = fromEdge.getConnections(toEdge)[0].getDirection()  
The getConnections is a function of sumolib.net.edge.Edge, but I don’t know how to set attributes like fromedge and toedge and then get their direction
Could you please explain more?

Many thanks,
Yun



Jakob Erdmann <namdre.sumo@xxxxxxxxx> 於 2020年11月24日 週二 下午10:47寫道:
You can use sumolib to read the turning direction for each network connection. All you need to do is parse the route file and look up a connection for each pair of successive route edges: dir = fromEdge.getConnections(toEdge)[0].getDirection()

Am Di., 24. Nov. 2020 um 15:19 Uhr schrieb 謝昀宸 <sdfg014025xx@xxxxxxxxx>:
Hello,
I want to record the left and right turn behavior or the number of turns of the vehicle in a route
Do Traci or other function libraries provide similar functions?

Many thanks,
Yun
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top