Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] getLeader error

This is what the 'dist' argument of getLeader is needed for. By default, the function only returns leaders on any lane withing the braking distance of ego. If you set a larger dist it will look at more lanes and find more vehicles.

Am Mi., 22. Feb. 2023 um 19:04 Uhr schrieb Jordan Poots <jordan.poots@xxxxxxxxxxx>:
Hi,

I am trying to use the get leader function and it appears to only be show vehicles on the current edge. Is this expected behaviour?

The route of the white vehicle is set to go onto the following edge and the vehicles' best lanes look something like this:
(('merging_0', 246.07, 37.5, 0, True, ('merging_0', 'outgoing_0')), ('merging_1', 246.07, 37.5, 0, True, ('merging_1', 'outgoing_0')), ('merging_2', 246.07, 0.0, 0, True, ('merging_2', 'outgoing_1')))

Where the current edge is merging and the following one is outgoing.

A leading vehicle in position A (on merging) would be picked up but not in position B (on outgoing).

Kind regards,

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