Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] TraCI Lane changing mid-second step length

1. no
2. setting duration=1 in your changeLane command ensure that the vehicle moves-towards / stays-on the target lane for that duration. Calling changeLane with the current lane, likewise keeps the vehicle there for the duration.

Am Di., 15. Feb. 2022 um 11:58 Uhr schrieb Hriday Sanghvi via sumo-user <sumo-user@xxxxxxxxxxx>:
Hello all,

Using SL2015's lane-changing model with a lane change mode of 1621 (default) on SUMO, I am attempting to use TraCI to issue changeLane commands to vehicles every 1 second, while the simulation's step length is set to 0.1 seconds.

For example,
traci.vehicle.changeLane(vehID="veh1", laneIndex=0, duration=1)

1. Would it be better to use action step length to make sure that vehicles perform these actions every 10 steps?
2. How do I make sure that SUMO does not interfere with these TraCI commands during times 0.1, 0.2, 0.3, ... and so on since I am not explicitly telling the vehicles to do anything during those times (in between the TraCI action times - 0.0, 1.0, 2.0, ...) using TraCI? Is there a command to "stay" on the same lane? Or do I just change lane to the same index?

Thank you.

Sincerely,
Hriday
_______________________________________________
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