Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Parallel Vehicles

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 <jordan.poots@xxxxxxxxxxx>:
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
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top