[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] How to add overtaking in SUMO
|
Hi Ifezue,
try the following steps in netedit:
1. select your edge
2- go to the bottom of the left panel and view hierarchie
3.right click inspect on lane 1, the heading of the left panel
changes to net: lane
4. look in the internal attributes for opposite, here you have an
editable field
Regards, Harald
Am 05.02.22 um 17:40 schrieb Ifezue
Obiako:
My predicament is that I would like to use
netconvert, but I have a limited amount of time. I would rather
not have to build out a whole new road network. Also, I was just
wanting specific lanes in my network to allow overtaking,
specifically the road segments at certain bus stops. Aside from
these segments, those are the only places I would allow
overtaking to occur.
I was trying to type in the field named 'opposite', but it
wouldn't let me adjust the parameter to put in the lane id. I
also tried using the 'edit parameter' box on the left
hand side of netedit, but nothing happened. However, I noticed
that the opposite parameter seems to be locked because in the
'show parameter' pane in the dynamic column there is a red X
on it (please see below). Do you know where I could go
from here?
You can put the id of the opposite-direction lane into
the 'opposite' field. This only works for "innermost" pair
of lanes (those with the highest lane index of both
directional edges).
It's recommended to let netconvert option
--opposites.guess do this job, though.
Thanks Jakob, but where can I adjust the lane
attribute 'opposite' in netedit?
I see where you can view the lane
attribute 'opposite' as a parameter (i.e., show
parameters when I left click the lane), but I can't
edit or adjust it.
Never modify a .net.xml file directly.
To support opposite direction driving in a
network, run:
netconvert -s old.net.xml --opposites.guess
-o new.net.xml
You can also set lane attribute 'opposite'
in netedit.
Would the line of code for opposite
lane driving look something like what is
depicted below if it were implemented in a
.net file?
Hello Everyone
I currently have a .net file that I
am thinking about adding overtaking
behavior. The idea is when one bus
comes from behind another bus on a
different bus route but at the same
stop I would like the bus behind to
overtake the other if the other bus is
taking too long. Is there a way for
the bus behind to overtake the leading
bus (i.e., teleporting ahead of the
leading bus)?
I have looked at the documentation
on opposite-direction driving, but it
seems like you can only explicitly
call "neigh" in an .edge.xml file
rather than a .net file. The reason
why I asked if it is possible to do
this in a .net file is because I
already have a functioning .net file
established and I would like to edit
it from there.
For reference, my .net and
additional files are attached to this
email. The place I was trying to add
overtaking is at lane -467228692#3_1,
where the lane 467228692#3_1 is used
to overtake at the bus stop.
Thank you in advance for your help
Ifezue
_______________________________________________
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