Skip to main content

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

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

Back to the top