An exception to the rule mentioned above are emergency vehicles (vClass="emergency"). These may overtake on the opposite side regardless of the number of lanes. You could set the class permanently in XmL or toggle it on demand with TraCI.
Am Mi., 3. Juni 2020 um 15:49 Uhr schrieb Zhang Jackie < [email protected]>: > Hi Jakob, > Thanks for your explanation. > I revised my road network to one directional lane, and it seems the > opposite direction driving works. > And here I have another question: > As in the real road network, 2 + 2 lanes exists, (for example, Down0,Down1 > are 2 lanes from node A to B, and Up0,Up1 are 2 lanes from B to A) > > is there any possible ways to allow opposite-overtaking from Down0 to Up0 > (closer to each other) > If both Down0 and Down1 are in jam status, is the vehicle on Down0 allowed > to use Up0 or not? > If it's not allowed, is there any user defined function to make it out? > the TraCI or something else. > > Thanks a lot. > [image: image.png] > > > Jakob Erdmann <[email protected]> 于2020年6月3日周三 下午4:56写道: > >> Hello, >> sumo currently allows opposite-overtaking only on roads that have one >> directional lane. This follows the assumption that vehicles avoid the >> opposite side if they already have a passing lane. >> regards, >> Jakob >> >> Am Mi., 3. Juni 2020 um 06:59 Uhr schrieb Zhang Jackie < >> [email protected]>: >> >>> Hi All, >>> I'd like to set the opposite direction driving available in a simple >>> road network like the image below: >>> 100m x 100m, 2 opposite edges and 2 lanes for each edge. (file name: >>> net.net.xml) >>> I use the NETCOVERT tool to generate the net.xml which allows the >>> opposite driving, the command is like this: >>> netconvert --sumo-net-file=net.net.xml --opposites.guess=true >>> --opposites.guess.fix-lengths=true --output-file=opnet.net.xml >>> >>> But after set the vehicle flow >>> <flow id="rush" color="1,1,0" begin="0" vehsPerHour="3800" from="A0A1" >>> to="B1B0" type="RushCar" /> >>> and run the simulation, there's no vehicle run to the opposite lane, any >>> thing wrong with my configuration? The vehicle' number is not large enough? >>> >>> I put my xml file in the attachments. >>> PS. SUMO verison win 1.6.0, OS: win10 2004 x64 >>> Thanks for your help in advance. >>> >>> [image: image.png] >>> _______________________________________________ >>> sumo-user mailing list >>> [email protected] >>> To unsubscribe from this list, visit >>> https://www.eclipse.org/mailman/listinfo/sumo-user >>> >> _______________________________________________ >> sumo-user mailing list >> [email protected] >> To unsubscribe from this list, visit >> https://www.eclipse.org/mailman/listinfo/sumo-user >> > _______________________________________________ > sumo-user mailing list > [email protected] > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user >
_______________________________________________ sumo-user mailing list [email protected] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
