see https://sumo.dlr.de/docs/Tools/Sumolib.html#parse_vehicles_and_their_route_edges_in_a_route_file https://sumo.dlr.de/docs/Tools/Sumolib.html#import_a_network_and_retrieve_nodes_and_edges
Am Di., 1. Dez. 2020 um 05:22 Uhr schrieb 謝昀宸 <[email protected]>: > 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 <[email protected]> 於 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 謝昀宸 <[email protected]>: >> >>> 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 >>> [email protected] >>> To unsubscribe from this list, visit >>> https://www.eclipse.org/mailman/listinfo/sumo-user >>> >> _______________________________________________ >> sumo-user mailing list >> [email protected] >> To unsubscribe from this list, visit >> https://www.eclipse.org/mailman/listinfo/sumo-user >> > _______________________________________________ > sumo-user mailing list > [email protected] > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user >
_______________________________________________ sumo-user mailing list [email protected] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
