Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Give right of way to a stopped vehicle

What do you mean by "he stop state of the car changes to 1 as soon
as it stops behind the parked car" ?
The function getStopState should only ever return 1 for a car that has a scheduled stop, not for a car that is just obstructed by another vehicle.
Did you use 'setStop' on your ego vehicle? A car stopped by 'setStop' (or by a <stop> definition in the input files) will give up right-of-way.

You should be able to force the ego vehicle onto the opposite direction lane using vehicle.changeLane(). In this case it should maintain right of way if the edge incoming to the intersection has right-of-way to begin with. Otherwise you could configure it to ignore right-of-way and drive anyway.

regards,
Jakob



Am Fr., 7. Dez. 2018 um 12:45 Uhr schrieb vincentvw <v.vanwessel@xxxxxxxxx>:
Hello,

I am having trouble with the following situation:
I have a car, which is blocked by a parked car just in front of an
intersection. Another car is coming from the left of the car, however, I
want this car (coming from the left) to give right of way to the car which
is blocked by the parked car. The stop state of the car changes to 1 as soon
as it stops behind the parked car, leading to the fact that the other car
takes right of way, instead of waiting for the car behind the parked car.
How can this be solved?

kind regards,
Vincent




--
Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
_______________________________________________
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