you can use vehicle.subscribeContext to retrieve surrounding vehicles in a small radius and you can furthermore use vehicle.addSubscriptionFilterLCManeuver to restrict the retrieved vehicles to the adjacent lanes. See https://sumo.dlr.de/docs/TraCI/Interfacing_TraCI_from_Python.html#context_subscriptions
Am Mo., 9. Jan. 2023 um 21:26 Uhr schrieb Jordan Poots < [email protected]>: > Hi, > > I am looking to see if there are any vehicles exactly parallel to me in an > adjacent lane. Currently I am using a for loop over ids in the edge and > comparing positions with the vehicle in question. > > Is there a better way of doing this? > > Thanks, > > Jordan > _______________________________________________ > 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
