[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] Weight file for SUMO
|
Have you tried
sumo-gui -c map.sumo.cfg --weight-files weight.add.xml
with -c Option
Greetings, Harald
Am 19.02.20 um 19:27 schrieb Marjerie
Suresh:
I have generated the weight file as per the format
and saved it as weight.add.xml. When I run the command "sumo-gui
map.sumo.cfg --weight-files weight.add.xml", the gui isn't
opening. I also tried adding weight.add.xml as an additional
file in the sumo.cfg file and the following error is generated -
"Loading of additional-files failed". It would be extremely
helpful to know how and when to add the weight file to the sumo
simulation.
Thanking you in advance
Marjerie Suresh
ᐧ
1) If you have your weights in a suitable csv file, you
can use sumo/tools/xml/csv2xml.py. Alternatively, write a
small script that generates the weight file (-:
2) You need to set weights for all sumo edges. If you
build your network with the option
--output.original-names, then every edge will have a
parameter that holds the original OSM id. This helps
automation via the python library sumo/tools/sumolib. See
https://sumo.dlr.de/docs/Tools/Sumolib.html
regards,
Jakob
Thank you for responding. Based on your
answer, I have a few follow up questions regarding the
weight file.
1) The network I use is very large and
hence it is tedious to manually set weights to every
edge. Is there a way to automate this?
2) There are edges IDs which are divided
based on the presence of junctions etc. That is, as
213736#2, 213736#3, 213736#4 etc. Should the weight be
given to all of them or is it enough to give to ID
213736 alone?
Thanking you
Marjerie Suresh
However, you only need to set 'id' and
'traveltime'. If you want to route by effort
(independent of traveltime) you currently have
to write your values into one of the emission
attributes.
2) Extension does not matter
3) The file must be loaded with option
--weight-files and this can be used by duarouter
as well as sumo (and sumo-gui)
regards,
Jakob
Hello!
I am new to the software. I want to
specify weights to every edge of a network
formed from an osm file. After some reading,
I understand that a weight file can be used
to do that. But, I have a few questions
regarding the weight file.
1) What is the syntax of the weight file?
2) Should it be saved as
<file_name>.add.xml or some other
extension?
3) How and when to add this file to the
network? That is, during netconvert or while
calling the GUI for simulation?
Thank you!
Marjerie Suresh
ᐧ
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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