Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Vehicle returns to original position after 'MoveTo' Command

The effect of a laneChange command automatically goes away after the given duration expires (you may also set duration 0).

Am Mo., 8. Feb. 2021 um 15:54 Uhr schrieb Bae, Jong In <jbae42@xxxxxxxxxx>:
No, my scenario does not use opposite-direction driving. It's a 3-lane highway section all in the same direction.
I temporarily worked around the issue by calling the laneChange traci command on the target lane so the vehicle has a new motivation to stay on the target lane.

However, I will have to turn on and off the laneChange command in the future scenario.
Is there any way to turn off a traci command instead of overriding with a new command?
For example, the setSpeed command has a way to give speed control back to SUMO by calling setSpeed(vehID, -1).
I'm looking for something similar for the laneChange command.

Thank you so much for your help!

From: sumo-user <sumo-user-bounces@xxxxxxxxxxx> on behalf of Jakob Erdmann <namdre.sumo@xxxxxxxxx>
Sent: Sunday, February 7, 2021 5:20 AM
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Subject: Re: [sumo-user] Vehicle returns to original position after 'MoveTo' Command
 
Is your scenario using opposite-direction driving?

Am Fr., 5. Feb. 2021 um 21:59 Uhr schrieb Bae, Jong In <jbae42@xxxxxxxxxx>:
Hello,

In my scenario, I am using 'moveTo' traci command to force a lane change.  To be more descriptive, I am using the following line;
'traci.vehicle.moveTo(veh_ID, targetlane, traci.vehicle.getLanePosition(veh_ID))'

However, I'm observing some cases where vehicles get returned to its original position as soon as they were moved by the traci command.

I turned off some of the lane changing model parameters as follows:
lcStrategic="0" lcAssertive="1" lcCooperative="0" lcSpeedGain="0" lcPushy="0" lcImpatience="0"

Would there by any other reason that is causing this problem?
Also, in some of the cases where the vehicle is returned to its original position, the following vehicles were passing through as it the vehicle is invisible.

Any help would be greatly appreciated!

Thank you,
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
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