Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Stopping a vehicle at the end of an edge

Hello,
looking at older code, I'm pretty sure that the current behavior did not change since at least version 0.29.0. Negative values are allowed in XML input, though.
You can get the length of the current lane with traci.lane.getLength.
regards,
Jakob

Am Di., 8. Okt. 2019 um 10:55 Uhr schrieb Schrab, Karl <karl.schrab@xxxxxxxxxxxxxxxxxxx>:

Hi all,

 

Calling the TraCI command „stop” with a negative edge offset results in the error message:

Error: Answered with error to command 0xc4: Position on lane must not be negative.

 

With earlier versions of SUMO (prior to 1.0.0) I’m pretty sure it was possible to pass small negative values, e.g. “-0.1”, to stop the vehicle at the very end of an edge. This was very helpful since otherwise one must know the exact length of the edge. Is this a regression or intended behavior? Or do I remember wrong? 😊

 

Kind regards,
Karl

 

 

_______________________________________________
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