sumo
sumo copied to clipboard
permit setting all vType parameters
there are a number of vType parameters (i.e. jmIgnoreFoeProb) that cannot currently by manipulated
(see #10427)
define new traci constants and functions:
- collisionMinGapFactor
- imgFile
- carFollowModel
- personCapacity (cannot be set at the moment)
- containerCapacity
- boardingDuration
- loadingDuration
- scale
- impatience
- jmCrossingGap
- jmIgnoreKeepClearTime
- jmDriveAfterRedTime
- jmDriveAfterYellowTime
- jmDriveRedSpeed
- jmIgnoreFoeProb
- jmIgnoreFoeSpeed
- jmIgnoreJunctionFoeProb
- jmSigmaMinor
- jmStoplineGap
- jmTimegapMinor
- startupDelay (#7832)
- sigmaStep
- timeToTeleport
- timeToTeleportBidi
- desiredMaxSpeed
Maybe it would be useful to write a small script that generates this code? This could also be re-used once we add more attributes (to any domain)
- first check whether we have enough constants left because they also get passed to the vehicle
- differentiate between first class and second class parameters (let jm* be second class as well as future cf model params EIDM etc.)
I need to get the boardingDuration via traci. Maybe its possible to add the getBoardingDuration method provisionaly?
since you cannot change it via TraCI, why not parse it directly out of the simulation input files?
I need it for the drtOrtools.py and I don't want to parse the (unknown) simulation files.
@behrisch The constant 0x3f was used by @m-kro and then you changed it in 28c0b5f919a621ca846b9660ee7e0a81e6e846d3
It would probably make sense to add it as a placeholder (i.e. TRACI_CONST int RESERVED_FOR_XYZ_DO_NOT_USE = 0x3f)
There is nothing wrong with using 0x3f it is just wasteful because we may want to keep it for a parameter applicable to "every" domain
Sorry to ask you Namdre, can MinGap parameter be changed? if yes, Is it possible to set the new value in route definitions?
yes: traci.vehicletype.setMinGap and traci.vehicle.setMinGap.
If you want to load this from xml, you have to define it as <vType ... minGap="VALUE"/>
yes:
traci.vehicletype.setMinGapandtraci.vehicle.setMinGap. If you want to load this from xml, you have to define it as<vType ... minGap="VALUE"/>
Thank you for your kind response.
yes:
traci.vehicletype.setMinGapandtraci.vehicle.setMinGap. If you want to load this from xml, you have to define it as<vType ... minGap="VALUE"/>
I created additional file as seen below, in order to define two vehicle type; passenger, and bus, with minGap of 2m.
I loaded the type file in my configuration file with the code below. after running the simulation, there is no effect i.e only passenger car were shown.
Secondly, I created additional file as seen below, with the file extension add.xml
C:\Sumo\My Sumo Work\sample>python randomTrips.py -n sample.net.xml --additional-file additional.add.xml -r sample.rou.xml -e 1000 -p 1 --validate Please.. can you help me out? I really want to create a network using randomTrip with multiple vehicle type (passenger, bus, and trunk), with minGap of 1m.
I created additional file as seen below, in order to define two vehicle type; passenger, and bus, with minGap of 2m.
<additional> <vType id="car" minGap="2" length="5" vClass="passenger"/> <vType id="bus" minGap="2" length="12" vClass="bus"/> </additional>
I loaded the type file in my configuration file with the code below. after running the simulation, there is no effect i.e only passenger car were shown.
I loaded the type file in my configuration file with the code below. After running the simulation, there is no effect i.e only passenger car were shown.
Secondly, I created additional file as seen below, with the file extension add.xml
<routes> <vType id="car" minGap="2" length="5" vClass="passenger"/> <vType id="bus" minGap="2" length="12" vClass="bus"/> </routes>
I loaded the file while generating randomTrips, as seen in the code below, but only the defult setting was used (i.e pessenger car)
C:\Users\musty\Sumo\My Sumo Work\sample>python randomTrips.py -n sample.net.xml --additional-file additional.add.xml -r sample.rou.xml -e 1000 -p 1 --validate
Please.. can you help me out? I really want to create a network using randomTrip with multiple vehicle type (passenger, bus, and trunk), with minGap of 1m.
see https://sumo.dlr.de/docs/Tools/Trip.html#setting_a_vehicle_type_from_an_external_file (but please don't post questions that are unrelated to the original ticket, rather open a new ticket)
Noted, Thank you