Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Get lane and startPos from id using python

Yes.

Am Do., 22. Aug. 2019 um 13:39 Uhr schrieb Paolo Bolzoni <paolo.bolzoni.brown@xxxxxxxxx>:
On Thu, Aug 22, 2019 at 11:43 AM Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
>
> You can retrieve the lane id using
> traci.simulation.getParameter(parkingAreaID, "parkingArea.lane")
> see https://sumo.dlr.de/wiki/TraCI/Simulation_Value_Retrieval#Generic_Parameter_Retrieval_0x7e
> However, that doesn't even work for containerStops (only busStops)

Assuming the variable myLane contains a lane id, it is correct in
general to use:
        myLane[:myLane.rfind('_')]
to get its edge id?
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top