Closed Sven-Schneider closed 2 months ago
Actually, I believe now that getInternalFoes may simply store lanes due to which collisions may occur when vehicles do not follow traffic rules.
getInternalFoes(self, laneID) getFoes(string) -> list(string) Returns the ids of internal lanes that are in conflict with the given internal lane id.
But then again, how can I obtain the traffic rules defined in the xml file using the java api?
Actually, I believe now that getInternalFoes may simply store lanes due to which collisions may occur when vehicles do not follow traffic rules.
correct
But then again, how can I obtain the traffic rules defined in the xml file using the java api?
You can use use lane.getFoes
My
topology.net.xml
file contains someconnection
elements such asUsing the java bindings I seem to be unable to obtain such connections.
These
connection
elements seem to connectedge
andjunction
elements in the xml file specifying 'priorities' among internal lanes of the junction by means of specifying directionsdir
and statesstate
.In the java bindings I can use
getInternalFoes
on such internal lanes.Does this mean that the descriptively specified 'priorities' from the
connection
elements in the xml file are resolved upon parsing into explicit foe lists of internal lanes by calculating the traffic rules for that junction?