Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Using TraCI setStopParameters()

There was a bug in setStopParameter with regard to 'triggered' and 'expected'. (https://github.com/eclipse/sumo/issues/12664)
You can obtain a fixed version tomorrow at https://sumo.dlr.de/docs/Downloads.php#nightly_snapshots or by building sumo yourself from the latest github sources.

regards,
Jakob

Am Di., 21. Feb. 2023 um 04:10 Uhr schrieb Jojo Get <jojoget998@xxxxxxxxx>:
Hi,

I was trying to add a new stop with certain parameters using traci.vehicle.setStopParameters(). However, I am unable to get the stop to behave as intended.
 traci.vehicle.setStopParameter(vehID=f"coach_{batchNo}_{i}", nextStopIndex=1,param="triggered",value="true")
 traci.vehicle.setStopParameter(vehID=f"coach_{batchNo}_{i}", nextStopIndex=1,param="extension", value="240")
 traci.vehicle.setStopParameter(vehID=f"coach_{batchNo}_{i}", nextStopIndex=1,param="expected",value="bp_coach_1_0")
 
However, for the "until" parameter, I was able to get it to work as intended
traci.vehicle.setStopParameter(vehID=f"coach_{batchNo}_{i}", nextStopIndex=1,param="until", value="1000")

I am not too sure why it is working for certain parameters but not others.
Thanks in advance for the help.

Best Regards,
Nick Tan
_______________________________________________
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