- to check directly neighboring lanes you can use vehicle.getRightLeaders, vehicle.getLeftLeaders - to get all vehicles in a given radius, you can use context subscriptions: https://sumo.dlr.de/docs/TraCI/Interfacing_TraCI_from_Python.html#context_subscriptions and https://sumo.dlr.de/docs/TraCI/Interfacing_TraCI_from_Python.html#context_subscription_filters
Am Di., 3. Dez. 2019 um 12:50 Uhr schrieb Mohsin Memon < [email protected]>: > Hi Jakob, > > thank you very much for your reply, now it worked perfectly fine. > > Regarding leader vehicle, now the vehicle is been detected but only when it > is in the same lane ID and when it is in different lane , it does not show > any value although distance argument is satisfying. > > When the leader vehicle leaves the lane of ego vehicle, it disappears and > sumo does not show any vehicle detected. > > How to solve this problem? > > I am hereby attaching screenshots of both the scenario (different lanes and > same lanes). > > < > http://sumo-user-mailing-list.90755.n8.nabble.com/file/t206/leader_different_lane.jpg> > > > < > http://sumo-user-mailing-list.90755.n8.nabble.com/file/t206/leader_same_lane.jpg> > > > I want to detect the leader vehicle and get the position and velocity of > that vehicle and then transfer it ti IPG traffic objects. > > Any information about this would be a great help for me. > > > Thank you in advance. > > > > -- > Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/ > _______________________________________________ > sumo-user mailing list > [email protected] > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user >
_______________________________________________ sumo-user mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
