[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] Opposite direction driving problem
|
I set LaneChangeMode to 0 because I want to control the avoidance time and return lane time by myself
I didn't see a warning message with index -1
sumo version is 1.7.0
I attached my sumocfg file settings. Does it affect the operation of overtaking?
Many thanks,
Yun
I ran your example with indexOffset 1 and observed overtaking through the opposite direction lane.
However, due to your prior call of setLaneChangeMode(vehID, 0) the vehicle does not change back on it's own. Are you even seeing a warning message with index -1? What is the version number shown in the sumo-gui title bar?
Thank your help again,
I tried indexOffset -1,0 or 1 of traci.vehicle.changeLaneRelativ, but the vehicle behind will still not overtake
For some reason your network was built with option --lefthand even though the area is in a RHT part of the world.
In lefthand networks, the lane numbering is reversed which means that overtaking on the reverse side (towards the right) must be triggered with
traci.vehicle.changeLaneRelative(vehID, 1, duration)
(The same relative direction index that would be used in RHT networks).
Sumo even provides the warning "Warning: Ignoring indexOffset -1 for vehicle 'v' which is already on laneIndex 0" to indicate that the index you sent is not usable.
regards,
Jakob
Thank you for your reply,
I still can't implement reverse overtaking
Attach my overtake.py, overtake.route, and use map.xml.
Please help to check my missing
Many Thanks,
Yun
The feature is working in our tests at least. Please provide input files for reproducing your issue.
Hello,
I want the vehicle to overtake on the reverse road for a short time and then return to the forward road
I have read the Opposite-Direction-Driving file and also modified the map to have the <neigh> attribute
But when I use traci.vehicle.changeLaneRelative to test in the simulation, the
vehicle
still does not switch to the opposite road
Many thanks,
Yun
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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
Attachment:
overtake.sumocfg
Description: application/sumo