Re: [sumo-user] pois2inductionLoops error

2024-04-25 Thread Jakob Erdmann via sumo-user
As the directory "purgatory" tries to suggest, this tool is no longer
maintained.
You can convert your poi file to csv with tools/xml/xml2csv.py and then
obtain the detectors with
tools/detector/mapDetectors.py

Am Do., 25. Apr. 2024 um 10:41 Uhr schrieb Joan Carmona Mercadé via
sumo-user :

> Hi,
>
>
>
> I’m trying to convert a shapefile of points into detectors. First, I use
> polyconvert to convert the shapefile into an additional XML file of 
> structures.
>
> Then, I try to use the pois2inductionLoops.py utility to convert pois file
> into detectors, but I’m getting the following error:
>
>
>
> Reading net...
>
> Reading PoIs...
>
> Traceback (most recent call last):
>
>   File "C:\Program Files
> (x86)\Eclipse\Sumo\tools\purgatory\pois2inductionLoops.py", line 45, in
> 
>
> pois = sumolib.poi.readPois(sys.argv[2])
>
>^^^
>
> AttributeError: module 'sumolib' has no attribute 'poi'
>
>
>
> Any idea?
>
>
>
> Thanks!
>
>
>
> Joan
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] GTFS or dfrouter?

2024-04-25 Thread Jakob Erdmann via sumo-user
As a first approximation, you can just combine the traffic generated from
counts with that from GTFS.
If public transport is a major part of your cities traffic volume, you can
simulate with GTFS-only at first and collect the public transport counting
data from your simulation. You can then subtract these numbers from your
other counting data to avoid overestimating traffic.

Am Mi., 24. Apr. 2024 um 13:32 Uhr schrieb fereshte jafari via sumo-user <
sumo-user@eclipse.org>:

> Hello there!
>
> I want to simulate both passenger and bus mobilities. As far as I
> understood from sumo documentation, I have to proceed like below:
> 1- Network preparation
> 2- Locating the bus stops and defining their schedules (adding PT)
> 3- Generating and assigning traffic demand to the network
>
> What I have now are:
> 1- Transportation network.xml file which includes allowed modes on each
> edge (passenger/bus) in addition to other required information
> (except bus stops)
> 2- Bus stop shp.file
> 3- GTFS.zip file
> 4- Detectors.xml file like what is mentioned here
> https://sumo.dlr.de/docs/Demand/Routes_from_Observation_Points.html#computing_detector_types
> 5- A csv file including detector,time, qPKW, vPKW, qLKW, vLKW to compute
> flows, according to this documentation:
> https://sumo.dlr.de/docs/Demand/Routes_from_Observation_Points.html#computing_flows
>
> But I got confused on continuing with "gtfstopt.py" or "dfrouter" as the
> next step. "gtfstopt.py" will generate bus stops and routes. On the other
> hand, I have traffic counts from detectors, and if I am not
> misunderstanding, "dfrouter" will also generate vehicles and their routes
> for both passengers and buses.
> I would be very thankful if you let me know your idea and guide me on what
> to do next.
>
> --
> *Sincerely,*
> *Fereshteh Jafari Shahdani*
> *PhD candidate, Dep. of Civil Engineering*
> *ISISE - University of Minho*
>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Vehicles do not resume driving after a stop using "setStop" in TraCI

2024-04-23 Thread Jakob Erdmann via sumo-user
setting flags=2 in setStop defines a "triggered" stop. The vehicle will
only resume after stop_time has passed *and* a person has entered. Setting
the flag to 0 will fix this.

Am Di., 23. Apr. 2024 um 18:56 Uhr schrieb Belikhov, Danil via sumo-user <
sumo-user@eclipse.org>:

> Hello, SUMO community,
>
> I would appreciate any help on my issue.
>
> In my scenario, I want vehicles to stop for several seconds when they
> enter a specific edge and then resume driving. For that, I am using TraCI
> with the ‘setStop’ function and a dictionary to store the ‘hasStopped’
> value for vehicles that have already stopped. But after making a stop, the
> vehicle does not resume driving and the simulation runs indefinitely. What
> could be the problem here?
>
>
>
> Best Regards,
> Danil
>
>
> Here is my code:
>
> class EvaluationVehicle:
>
>
> *"""Data container class for the individual vehicles. Stores all relevant
> data for the Evaluation vehicle-related.""" *def __init__(self, id,
> type):
> self.id = id
> self.type = type
> self.hasStopped = False
>
>
> def run():
> start = datetime.now()
> print(str(datetime.now()))
>
> # create empty dictionaries to store data
> vehicleMap = {}
>
> # begin and end times of the simulation in seconds from 00:00
> begin = 0
> end = 4000
> seed = 1
>
> # set parking entrance edge ID and parking exit edge ID
> pEntrEdgeID = "988716348.13"
> nextToEntryID = "988716348.13.3"
>
> # start Traci
> traci.start(["sumo-gui", "-n", "osm_1.net.xml",
>  "-r", "osm.bicycle.trips.xml",
>  "-a", "parking.add.xml",
>  "--step-length", "0.25",
>  "--delay", "250",
>  "--parking.maneuver", "true",
>  "-b", f"{begin}", "-e", f"{end}", "--seed", f"{seed}"])
>
>
> while traci.simulation.getMinExpectedNumber() > 0:
> traci.simulationStep()
>
> # get the list of vehicles currently in the simulation
> vehIdList = traci.vehicle.getIDList()
>
> # loop over each vehicle in the simulation
> for vehicle_id in vehIdList:
> vehEdgeID = traci.vehicle.getRoadID(vehicle_id)
> vehType = traci.vehicle.getTypeID(vehicle_id)
>
> # check if the vehicle ID is not in vehicleMap
> if vehicle_id not in vehicleMap:
> # if not, create an EvaluationVehicle object for the
> vehicle and store it in vehicleMap
> vehicleMap[str(vehicle_id)] = 
> EvaluationVehicle(str(vehicle_id),
> str(vehType))
>
> # If the vehicle enters the edge and has not stopped before,
> stop it for a specific time
> if vehEdgeID == pEntrEdgeID and not vehicleMap[str
> (vehicle_id)].hasStopped:
> stop_time = 2
> traci.vehicle.setStop(vehID=vehicle_id, edgeID
> =nextToEntryID,
>   pos=1, laneIndex=0, duration=stop_time,
> flags=2)
> vehicleMap[str(vehicle_id)].hasStopped = True
>
> # close simulation
> traci.close()
>
>
> if __name__ == '__main__':
>
> run()
>
>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Implement all way stop intersection without traffic lights

2024-04-22 Thread Jakob Erdmann via sumo-user
It looks as if you manipulated the .net.xml file directly. Never do this (
https://sumo.dlr.de/docs/FAQ.html#i_made_changes_to_the_netxml-file_but_it_did_not_work_as_expected_why
).
Instead set the junction type to allway_stop in netedit and that should be
enough.

Am Mo., 22. Apr. 2024 um 09:11 Uhr schrieb Mirko Barthauer via sumo-user <
sumo-user@eclipse.org>:

> You can have a look at our tests for all way stops. Download
> here
> a set of example simulations.
>
>
>
> Best regards
>
> Mirko
>
>
>
>
>
>
>
>
>
> -Original-Nachricht-
>
> Betreff: [sumo-user] Implement all way stop intersection without traffic
> lights
>
> Datum: 2024-04-21T07:44:46+0200
>
> Von: "Dayuan Tan via sumo-user" 
>
> An: "Sumo project User discussions" 
>
>
>
>
>
>
> Hi SUMO community,
>
> Could anyone help me? Any replies would be appreciated deeply! Thank you
> so so much in advance!
>
>
> I'm implementing an all way stop (4 stop signs) intersection without
> traffic lights but unfortunately cannot.
>
> I've tried to change the tlLogic programID to "off" and set junction with
> type="allway_stop" rightOfWay="allwayStop"  but I think they don't work
> as they descripted in the documents.
>
> To change the tlLogic programID to "off" I used
> traci.trafficlight.setProgram("0", "off")
> at step 0 using python. I chose this way because I cannot directly define
> a tlLogic with programID="off" in net.xml which gave me an error and could
> not start SUMO.
>
> The veh2 always stops and allows veh3 pass firstly. This is not what I
> expect but veh2 arrives at the intersection earlier and should pass before
> veh3.
> All 4 vehs didn't "stop" before the intersection.
>
> The color shows like the below which means "
>
>- FOO Traffic light, off-blinking, vehicle has to yield
>- FOO Traffic light, off-no-signal, vehicle has right of way"
>
> [image: image.png]
>
> I expect it shows: "
>
>- FOO uncontrolled, allway-stop, all vehicles have to stop and then
>drive in the order of arrival"
>
>
>
> I've carefully checked the below full pages:
> https://sumo.dlr.de/docs/Simulation/Traffic_Lights.html#switching_tls_off
> https://sumo.dlr.de/docs/Networks/PlainXML.html#right-of-way
>
>
> I also searched previous archived emails but didn't find a solution, even
> though there were multiple people asking questions about all way stop
> intersections.
>
> Thank you so so much!
> Deeply appreciated!
>
> Sincerely,
> Dayuan
> University of Maryland, Baltimore County
>
>
> 
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] shortest path exercise

2024-04-18 Thread Jakob Erdmann via sumo-user
The router is known to underestimate waiting times at traffic lights if the
network doesn't have any other cars in it.
You can use duarouter with the same trips as input and it will tell you the
estimate traveltime, it should be lower for the route without a middle
point.
The next step would be to observe the trip in sumo-gui and check for any
delays en route.
The routeLength being higher without a middle point might be due to
different speed limits on the routes (the longer route with a higher speed
limit could be faster from the point of view of the router).
If you cannot figure it out, please provide the inputs for an investigation.




Am Do., 18. Apr. 2024 um 16:14 Uhr schrieb Joan Carmona Mercadé via
sumo-user :

> Hi,
>
>
>
> I'm trying to find the shortest path between points A and B. I got my
> network from OSM. Then I create a simulation with a unique trip between A
> and B with no middle edges.
>
>
>
> When I ask to Google, it gives me a route. But Sumo gives me a very
> different one. Then I modify the trip and add a middle edge from the route
> that Google gave to me. Then Sumo gives me the same route as Google.
>
>
>
> If I check the values of output variables routeLength and duration, both
> values are greater in the first case (with no middle point). So, I don't
> understand why Sumo is giving me that route if it is longer and takes more
> time that the one with the middle edge.
>
>
>
> What other parameters may I be forgetting?
>
>
>
> Thanks,
>
> Joan
>
>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Calibrators Not Spawning

2024-04-17 Thread Jakob Erdmann via sumo-user
Calibrators currently do not support pedestrians.
W.r.t the delayed spawning, this was done to accommodate "naturally"
occurring vehicles but does indeed lead to artifacts if calibrators are the
only source of traffic.

Am Mi., 17. Apr. 2024 um 16:59 Uhr schrieb Kaitlyn Liu via sumo-user <
sumo-user@eclipse.org>:

> Thanks for the help, I was able to fix the spawning by modifying the
> intervals to be smaller so the car spawning was not as inconsistent.
> I have a couple other questions. Is it possible to spawn pedestrians
> similarly to cars with calibrators? I tried to do it but it doesn't seem to
> work.
> Also, is there a way to set more than one route in a calibrator?
>
> Thanks again,
> Kaitlyn
>
> On Tue, Apr 16, 2024 at 3:27 AM Mirko Barthauer 
> wrote:
>
>> Hi Kaitlyn,
>>
>>
>>
>> you have used the Calibrator together with routeProbe elements. I didn't
>> notice that when first scrolling across your XML. Apparently the route
>> distribution created by routeProbe is preferred in comparison to the flow
>> route attribute. When the route distribution is not available (no vehicles
>> passed in the last interval), then it seems no vehicles are generated
>> neither.
>>
>>
>>
>> As you added a route attribute to the flow definition, it looks like you
>> don't want the routeProbe...? So just remove the routeProbe attribute from
>> the Calibrator.
>>
>>
>>
>> Best regards
>>
>> Mirko
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> -Original-Nachricht-
>>
>> Betreff: Re: [sumo-user] Calibrators Not Spawning
>>
>> Datum: 2024-04-13T05:28:52+0200
>>
>> Von: "Kaitlyn Liu" 
>>
>> An: "Mirko Barthauer" 
>>
>>
>>
>>
>>
>>
>> Attached are the files for my simulation as well as the basic TraCI
>> script stepping through the simulation. I also noticed other than the
>> problem with the delay over 3600, the cars don't start spawning until
>> around 200 steps into the simulation and each of the calibrators start
>> spawning at different times. I'm not sure how to fix this issue either
>> because I want the cars to start spawning immediately and the flow begins
>> at 0 for all of the calibrators.
>>
>> Thank you again!
>> Kaitlyn
>>
>> On Fri, Apr 12, 2024 at 5:30 AM Mirko Barthauer 
>> wrote:
>>
>>> Hi Kaitlyn,
>>>
>>>
>>>
>>> I can't reproduce this with our test examples. Could you please post at
>>> least your updated calibrator definitions (or better even attach a minimal
>>> failing scenario to run in sumo)?
>>>
>>>
>>>
>>> Best regards
>>>
>>> Mirko
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> -Original-Nachricht-
>>>
>>> Betreff: Re: [sumo-user] Calibrators Not Spawning
>>>
>>> Datum: 2024-04-11T17:48:22+0200
>>>
>>> Von: "Kaitlyn Liu" 
>>>
>>> An: "Mirko Barthauer" 
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> Just realized I didn’t reply to the mailing list, so resending my
>>> previous message.
>>>
>>> Thanks for the response! I added the flow end attribute and cars are
>>> spawning now, however I can't seem to extend the end past 3600 seconds.
>>> Whenever I try to do so, the calibrators won't spawn cars. What should I do
>>> if I want to make the simulation last for longer than an hour?
>>>
>>> Thanks,
>>> Kaitlyn
>>>
>>> On Apr 10, 2024, at 5:10 PM, Kaitlyn Liu  wrote:
>>>
>>> Hi Mirko,
>>>
>>> Thanks for the response. I added the flow end attribute and cars are
>>> spawning now, however I can't seem to extend the end past 3600 seconds.
>>> Whenever I try to do so, the calibrators won't spawn cars. What should I do
>>> if I want to make the simulation last for longer than an hour?
>>>
>>> Thanks,
>>> Kaitlyn
>>>
>>> On Wed, Apr 10, 2024 at 12:36 PM Mirko Barthauer <
>>> m.bartha...@t-online.de> wrote:
>>>
 Hi Kaitlyn,



 what happens if you add the flow end attribute? Judging from the source
 code, I think this can be a problem because the flow duration is undefined
 / set to 0.



 Best regards

 Mirko







 -Original-Nachricht-

 Betreff: [sumo-user] Calibrators Not Spawning

 Datum: 2024-04-10T17:50:37+0200

 Von: "Kaitlyn Liu via sumo-user" 

 An: "sumo-user@eclipse.org" 






 Hello,

 I am currently trying to insert calibrators into my simulation but the
 calibrators do not seem to be spawning in with both a manual route (ca_3)
 or a route probe (ca_0-2). I have the following additional file:


> http://www.w3.org/2001/XMLSchema-instance;
> xsi:noNamespaceSchemaLocation="
> http://sumo.dlr.de/xsd/additional_file.xsd;>
> 
> 
>  edge="28727103#0" file="rp_0.xml"/>
>  edge="625479007#6" file="rp_1.xml"/>
>  edge="-292851770#0" file="rp_2.xml"/>
>  edge="-966308107#4" file="rp_3.xml"/>
>
> 
>  color="green"/>
>  color="green"/>
> 
> 
> 
> 
> 
> 
>  color="blue"/>
>

Re: [sumo-user] Option to allow vehicles to counterflow

2024-04-15 Thread Jakob Erdmann via sumo-user
see https://sumo.dlr.de/docs/Simulation/Rerouter.html#reversible_lanes
for short term switching, sumo also provides a traffic light layout:
https://sumo.dlr.de/docs/Simulation/Traffic_Lights.html#phase_layout_alternateoneway

Am Mo., 15. Apr. 2024 um 11:01 Uhr schrieb Matt Bering via sumo-user <
sumo-user@eclipse.org>:

> Hello,
>
> I'd like to ask if there is a way to allow vehicles to counterflow in
> Sumo? I'm still new to this software and I was hoping to simulate a
> contraflow system wherein a particular lane would reverse its direction of
> traffic flow at set time intervals, then return to its original direction
> after another set time interval. So far, the closest option I've seen in
> Sumo is the "Opposite Driving" function, though unfortunately it is not
> enough for the purpose of my simulation. Is there a way to modify a lane in
> such a way?
>
> Thanks,
> Matt
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] stop_output not updating correctly with TraCI

2024-04-14 Thread Jakob Erdmann via sumo-user
The difference is caused by having two different simulations:
- The first simulation is run with traci control (traci.start, ...
traci.lane.setAllowed, ... traci.close() and reflects the use of the BPL
- The second simulation is run with subprocess.run and doesn't have the
BPL.

Your first simulation runs with the gui and your second simulation produces
the stop-output.
My advice is to add the --stop-output command to the sumoCmd for the first
simulation and dispense with the second simulation.

Am Sa., 13. Apr. 2024 um 07:09 Uhr schrieb Buddini Wanasooriya via
sumo-user :

> Hello,
> As a new user of SUMO, I am currently engaged in an experiment to study
> the bus bunching phenomena and assess the feasibility of implementing a Bus
> Priority Lane (BPL) within SUMO's simulation environment.
> I have developed a sample network for this, considering two scenarios as
> follows.
>
>1. Base scenario without a bus lane
>2. BPL scenario with a bus lane
>
> I have generated the stop_output as the output file to identify bus
> bunching. The "started" attribute has been considered in that file, to
> identify the time at which buses are arriving at a certain bus stop.
> For the second scenario, the BPL has been activated via TraCI. However,
> the time recorded in the "started" attribute in stop_output here, is the
> same as the base scenario. When I compare it with the SUMO GUI, the time
> recorded in the stop_output is different from the observation of the
> simulation.
> I have attached a screenshot illustrating the arrival of "BUS_40" at bus
> stop "bs_0". While the timestamp recorded in the "started" attribute of the
> stop_output file indicates 1031, the corresponding timestamp displayed in
> the SUMO GUI is 402.
> Additionally, I attempted the BPL scenario without using TraCI by manually
> enabling the bus lane through the network file. From this method, I have
> obtained two different stop_output files for the two scenarios. It
> displayed the accurate "started" attribute that matches the SUMO GUI.
> The working folder containing all the generated stop_output files is
> attached herewith for your reference.
> Kindly assist in resolving this matter to effectively employ TraCI to
> ensure the recording of accurate timestamps in the stop_output file, for
> the BPL scenario.
>
> Thank You in advance.
> Regards,
> Buddini
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] No Overtaking

2024-04-07 Thread Jakob Erdmann via sumo-user
Hello,
you can disable overtaking by setting vType attribute lcKeepRight="0"
see
https://sumo.dlr.de/docs/Definition_of_Vehicles%2C_Vehicle_Types%2C_and_Routes.html#lane-changing_models

Am Fr., 5. Apr. 2024 um 17:26 Uhr schrieb Joseph Grech via sumo-user <
sumo-user@eclipse.org>:

> Hi,
>
> I am modelling a public transport network where the roads include more
> than one lane. A requirement of this public transport service is that buses
> do not overtake each other and keep their initial order throughout.
> However, in the simulation buses sometimes end up overtaking. Is there
> anything I can do to solve this?
>
> Thanks,
> Joseph Grech
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Emission Outputs

2024-04-02 Thread Jakob Erdmann via sumo-user
the sumocfg option is
  
instead of
  

Am Di., 2. Apr. 2024 um 09:27 Uhr schrieb Deborah Akindoye via sumo-user <
sumo-user@eclipse.org>:

> Sorry about that, Please find the attached files
>
> On Tue, 2 Apr 2024 at 14:21, Jakob Erdmann via sumo-user <
> sumo-user@eclipse.org> wrote:
>
>> please attach the files rather than screenshots of the files (the first
>> 200 lines are enough).
>>
>> Am Di., 2. Apr. 2024 um 06:52 Uhr schrieb Deborah Akindoye via sumo-user <
>> sumo-user@eclipse.org>:
>>
>>> Hello Jakob,
>>> Thank you for your reply. I have tried but the emission output doesn't
>>> appear in the trip info file. I used the command prompt "sumo-gui -c
>>> bts_added.sumocfg --tripinfo-output tripinfo_emissions.xml"
>>>  I attached the configuration file and the trip info output below.
>>>
>>> On Mon, 1 Apr 2024 at 20:43, Jakob Erdmann via sumo-user <
>>> sumo-user@eclipse.org> wrote:
>>>
>>>> Yes. See
>>>> https://sumo.dlr.de/docs/Simulation/Output/TripInfo.html#devices
>>>>
>>>> Am Mo., 1. Apr. 2024 um 07:12 Uhr schrieb Deborah Akindoye via
>>>> sumo-user :
>>>>
>>>>> Hello Everyone,
>>>>> I am trying to collect emission outputs from a sumo simulation using
>>>>> "sumo -c run.sumocfg --emission-output emissions.xml"
>>>>> It gives the emission outputs of each vehicle for each
>>>>> simulation timestep which makes the output XML file very large and
>>>>> difficult to analyze. Is there a way to get the total emission for each
>>>>> vehicle at the end of the simulation instead (3 hrs)?
>>>>>
>>>>> ___
>>>>> sumo-user mailing list
>>>>> sumo-user@eclipse.org
>>>>> To unsubscribe from this list, visit
>>>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>>>
>>>> ___
>>>> sumo-user mailing list
>>>> sumo-user@eclipse.org
>>>> To unsubscribe from this list, visit
>>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>>
>>> ___
>>> sumo-user mailing list
>>> sumo-user@eclipse.org
>>> To unsubscribe from this list, visit
>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>
>> ___
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Emission Outputs

2024-04-02 Thread Jakob Erdmann via sumo-user
please attach the files rather than screenshots of the files (the first 200
lines are enough).

Am Di., 2. Apr. 2024 um 06:52 Uhr schrieb Deborah Akindoye via sumo-user <
sumo-user@eclipse.org>:

> Hello Jakob,
> Thank you for your reply. I have tried but the emission output doesn't
> appear in the trip info file. I used the command prompt "sumo-gui -c
> bts_added.sumocfg --tripinfo-output tripinfo_emissions.xml"
>  I attached the configuration file and the trip info output below.
>
> On Mon, 1 Apr 2024 at 20:43, Jakob Erdmann via sumo-user <
> sumo-user@eclipse.org> wrote:
>
>> Yes. See https://sumo.dlr.de/docs/Simulation/Output/TripInfo.html#devices
>>
>> Am Mo., 1. Apr. 2024 um 07:12 Uhr schrieb Deborah Akindoye via sumo-user <
>> sumo-user@eclipse.org>:
>>
>>> Hello Everyone,
>>> I am trying to collect emission outputs from a sumo simulation using
>>> "sumo -c run.sumocfg --emission-output emissions.xml"
>>> It gives the emission outputs of each vehicle for each
>>> simulation timestep which makes the output XML file very large and
>>> difficult to analyze. Is there a way to get the total emission for each
>>> vehicle at the end of the simulation instead (3 hrs)?
>>>
>>> ___
>>> sumo-user mailing list
>>> sumo-user@eclipse.org
>>> To unsubscribe from this list, visit
>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>
>> ___
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Emission Outputs

2024-04-01 Thread Jakob Erdmann via sumo-user
Yes. See https://sumo.dlr.de/docs/Simulation/Output/TripInfo.html#devices

Am Mo., 1. Apr. 2024 um 07:12 Uhr schrieb Deborah Akindoye via sumo-user <
sumo-user@eclipse.org>:

> Hello Everyone,
> I am trying to collect emission outputs from a sumo simulation using
> "sumo -c run.sumocfg --emission-output emissions.xml"
> It gives the emission outputs of each vehicle for each simulation timestep
> which makes the output XML file very large and difficult to analyze. Is
> there a way to get the total emission for each vehicle at the end of the
> simulation instead (3 hrs)?
>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] How can I force the vehicles to enter the net from different lanes

2024-03-31 Thread Jakob Erdmann via sumo-user
use departLane="free" or "random" in your vehicles/flows/trips
see
https://sumo.dlr.de/docs/Definition_of_Vehicles%2C_Vehicle_Types%2C_and_Routes.html#departlane

Am So., 31. März 2024 um 06:04 Uhr schrieb 薛田莉 via sumo-user <
sumo-user@eclipse.org>:

> Hello,
> I created the net files and sumo.rou.xml, but after starting the
> simulation, all vehicles will enter the net from the right lane and keep
> their right lane. I want to have traffic in all lanes. How can I force
> the vehicles to enter the net from different lanes or change their lane
> during the simulation?
>
> Best, Tianli
>
>
>
> --
> 发自我的企业微信
> 
>
>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Computing headways at intersections

2024-03-28 Thread Jakob Erdmann via sumo-user
This is a bug. See https://github.com/eclipse-sumo/sumo/issues/14617

Am Mi., 27. März 2024 um 15:58 Uhr schrieb Daniel Aguilar Marsillach via
sumo-user :

> Hi there,
>
> I'm having an issue with headway and lead vehicle identification using
> Traci when a lead vehicle enters a junction. The subscribed headway between
> two vehicles is 0m, but the physical distance is 79.00m. Is this expected?
> Are there any junction parameters or settings that I may be misusing? I'd
> appreciate suggestions on how to get the correct headway directly from
> SUMO/Traci before implementing a correction in the Python API.
>
> *Scenario:*
>
> The vehicle *follower_1* is moving from east to west and is approaching
> the junction. I have circled it in yellow.  The vehicle *leader_0* is
> moving from south to north, has just crossed the yield line and is turning
> left, I have circled it in red.  Both are IDM controlled vehicles and
> default sumo safety checks are enabled.
>
>  The subscribed Traci variables are:
>
>  [tc.VAR_LANE_INDEX, tc.VAR_LANEPOSITION, tc.VAR_ROAD_ID, tc.VAR_SPEED, 
> tc.VAR_SPEED_LAT,
>   tc.VAR_EDGES, tc.VAR_POSITION, tc.VAR_ANGLE, 
> tc.VAR_SPEED_WITHOUT_TRACI,
>   tc.VAR_FUELCONSUMPTION, tc.VAR_DISTANCE, 
> tc.VAR_LANEPOSITION_LAT, tc.VAR_ACCELERATION,
>   tc.VAR_WAITING_TIME, tc.VAR_LANE_ID, 
> tc.VAR_NEXT_LINKS]
>
> Traci Subscription Results for *follower_1*:
>
> {82: 0, 86: 39.89055103780684, 80: '2', 64: 12.819908744019667, 50: 0.0,
> 84: ('2', '5'), 66: (80.10944896219317, 1.6), 67: 270.0, 177:
> 12.819908744019667, 101: 1346.3627500766254, 132: 34.790551037806836, 184:
> 0.0, 114: 0.5894244551240924, 122: 0.0, 81: '2_0', 51: (('5_0', False,
> False, True, ':junc_4_0', 'm', 's', 14.4),), 104: ('*leader_0*', 0.0)}
>
> Traci Subscription Results for *leader_0*:
>
> {82: 0, 86: 0.026256706772315397, 80: ':junc_8', 64: 3.0363730309804664,
> 50: 0.0, 84: ('0', '5'), 66: (1.5962922005461444, -7.174045403823011), 67:
> 359.95750918840696, 177: 3.0363730309804664, 101: 1104.0259317847099, 132:
> 92.82625670677231, 184: 0.0, 114: 1.463278654968172, 122: 0.0, 81:
> ':junc_8_0', 51: (), 104: ('*leader_4*', 27.97479278915113)}
>
> Note that *104* in the dictionary above is VAR_LEADER and for *follower_1* 
> this
> value = 0m and that *51* is VAR_NEXT_LINKS.
>
> I understand that *leader_0* is the lead vehicle for *follower_1* as it
> is the first vehicle to enter the intersection is on a link that overlaps
> with *follower_1*'s route. I also replicated this in another map scenario
> using different .net.xml file and observed the same problem.
>
> Best,
> Daniel
>
>
>
> Nothing in this message is intended to constitute an electronic signature
> unless a specific statement to the contrary is included in this message.
>
> Confidentiality Note: This message is intended only for the person or
> entity to which it is addressed. It may contain confidential and/or
> privileged material. Any review, transmission, dissemination or other use,
> or taking of any action in reliance upon this message by persons or
> entities other than the intended recipient is prohibited and may be
> unlawful. If you received this message in error, please contact the sender
> and delete it from your computer.
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] read additional tll.xml with sumolib

2024-03-26 Thread Jakob Erdmann via sumo-user
Yes, you can call readNet on an additional file and pass the net als
argument. See
https://github.com/eclipse-sumo/sumo/blob/main/tests/tools/sumolib/net_and_additional/runner.py



Am Mo., 25. März 2024 um 23:54 Uhr schrieb Sasan Amini via sumo-user <
sumo-user@eclipse.org>:

> Dear all,
>
> I am trying to read a network with additional tls program using sumolib.
> Currently, sumolib imports only tllogic that is defined inside the bet.xml
> file. Is there a function to let it import additional files too?
>
> Best,
> Sasan
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] sumo-game

2024-03-22 Thread Jakob Erdmann via sumo-user
The gif is at
https://github.com/eclipse-sumo/sumo/blob/main/tools/game/dlr.gif and you
should be able to simply start in
https://github.com/eclipse-sumo/sumo/blob/main/tools/game/runner.py in a
cloned repo to test the game. We don't have any documentation though.
In most games, clicking on a traffic light will switch to the next phase so
you can manually try to optimize traffic flow.
There are also games where you can dispatch demand responsive transport (to
bring pedestrians to destinations in the same color): click on a vehicle
(box), and then keep clicking on places to stop for pick-up and drop-off.

regards,
Jakob

Am Fr., 22. März 2024 um 09:16 Uhr schrieb Florian Schnepf via sumo-user <
sumo-user@eclipse.org>:

> Dear all,
>
> I downloaded the sumo-game and tried to start it. Unfortunately, I get the
> attached error message.
> Where should the dlr.gif be? If I copy the image into the right folder, it
> may start.
>
> Do you have any documentation about the game? I haven't found anything in
> the docs.
>
>
> Thank you in advance.
>
> Best regards
> Florian
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] background map resolution

2024-03-21 Thread Jakob Erdmann via sumo-user
Please try the nightly version after tomorrows update. It contains a patch
which allows for seamless rendering of tiles.
Note, that the .net.xml must have be built with the correct mercator
projection instead of the default UTM projection for this to work.
If you obtained your initial map with osmWebWizard and checkbox "satellite
background" it should be fine.

regards,
Jakob

Am Do., 21. März 2024 um 15:44 Uhr schrieb Hector A Martinez via sumo-user <
sumo-user@eclipse.org>:

> Dear sumo community,
>
>
>
> I am using the tileGet.py script to pull a map from an ARCGIS service but
> I would like to avoid the bad stitching of tiles that looks less than
> professional when I give presentations in large screens.  I tried pulling
> only one tile but the resolution is very blurry eventhough I don’t get the
> bad stitching.
>
>
>
> Would you recommend changing the code in the tileGet.py to give me a
> better resolution of the background map when I zoom in to look a vehicles
> in the network?
>
> If so, where would you recommend I do it to avoid braking the script?
>
>
>
> Thanks,
>
>
>
> *Hector A. Martinez, P.E.*
>
> Group Leader, N253 – CENTCOM, SOUTHCOM and Joint Staff Ops
>
> *MITRE* | National Security Engineering Center
> 
>
> 813.207.5365
>
>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Importing network from OSM data

2024-03-21 Thread Jakob Erdmann via sumo-user
There are tons of options to configure turn-around generation (i.e.
--no-turnarounds).
see https://sumo.dlr.de/docs/netconvert.html#junctions

Am Do., 21. März 2024 um 09:46 Uhr schrieb Joan Carmona Mercadé via
sumo-user :

> Hi Community,
>
>
>
> I’m importing a network from OSM data.
>
>
>
> The resulting network seems good, but I notice that generates many
> undesirable connections between lanes of the same edge but opposite
> direction. Here is an example (marked in yellow):
>
>
>
>
>
> The question is: is there any option in netconvert that avoid such
> connections? Or I must remove them manually?
>
>
>
> Thanks,
>
>
>
> Joan
>
>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Netconvert --osm.elevation

2024-03-19 Thread Jakob Erdmann via sumo-user
The OSM wiki describes how to add elevation data to an OSM dataset:
https://wiki.openstreetmap.org/wiki/Srtm_to_Nodes

If you manage to obtain importable geoTiffs from any of the pages mentioned
in https://gisgeography.com/free-global-dem-data-sources/, let us know.
(for use with netconvert  option
*--heightmap.geotiff*)

Am Mo., 18. März 2024 um 18:19 Uhr schrieb Augusto Ruviaro via sumo-user <
sumo-user@eclipse.org>:

> Dear Mirko,
>
> You are correct, my OSM lacks elevation data, but I'm unsure how to
> resolve this. I've attempted to download maps from various regions. I
> reside in Rio de Janeiro, RJ - Brazil, and it would be beneficial if I
> could acquire a map with elevation data for this area. However, presently,
> my research has come to a halt as I require this elevation data for my
> simulation. Therefore, obtaining a map with elevation data from any region
> would greatly assist me.
>
> Best regards
> Augusto
> --
> *De:* sumo-user  em nome de Louis REYNAUD
> via sumo-user 
> *Enviado:* quinta-feira, 14 de março de 2024 02:41
> *Para:* sumo-user 
> *Cc:* Louis REYNAUD 
> *Assunto:* [sumo-user] Netconvert --osm.elevation
>
>
>
>
> Hello everybody,
>
>
> I want to generate a net via netconvert of sumo from an osm file, I want
> this net to contain the elevation. In order to do that, I put in my input
> file the key 'ele' but when I execute the netconvert command with the
> --osm.elevation argument, it does nothing more than a simple netconvert
> command. Do you have any idea to proceed differently in order to make this
> work ?
>
> Thank you very much
>
>
> Louis
>
>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Regarding behavior of vehicles

2024-03-14 Thread Jakob Erdmann via sumo-user
Yes. See
https://sumo.dlr.de/docs/Definition_of_Vehicles%2C_Vehicle_Types%2C_and_Routes.html#incomplete_routes_trips_and_flows

Am Do., 14. März 2024 um 14:38 Uhr schrieb Rohan Verma via sumo-user <
sumo-user@eclipse.org>:

> Dear community,
> Until now, I have been defining routes in the routes file and then
> assigning these routes to the vehicles. Is there a way (without using
> TracI) for the vehicles to be given origin and destinations so they can
> compute their routes based on the traffic congestion in the network and
> reroute if necessary?
> Thanks and regards,
> Rohan
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Netconvert --osm.elevation

2024-03-14 Thread Jakob Erdmann via sumo-user
Can you provide an osm input example with "ele" keys?

Am Do., 14. März 2024 um 10:41 Uhr schrieb Louis REYNAUD via sumo-user <
sumo-user@eclipse.org>:

>
>
>
> Hello everybody,
>
>
> I want to generate a net via netconvert of sumo from an osm file, I want
> this net to contain the elevation. In order to do that, I put in my input
> file the key 'ele' but when I execute the netconvert command with the
> --osm.elevation argument, it does nothing more than a simple netconvert
> command. Do you have any idea to proceed differently in order to make this
> work ?
>
> Thank you very much
>
>
> Louis
>
>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Cars shrink

2024-03-14 Thread Jakob Erdmann via sumo-user
see
https://sumo.dlr.de/docs/Simulation/Distances.html#vehicle_lengths_in_sumo-gui

Am Do., 14. März 2024 um 06:07 Uhr schrieb Petr Chytil via sumo-user <
sumo-user@eclipse.org>:

> Hello,
> check the elevation of junctions, this seems like a big slope on road.
>
> Petr
> -- Původní e-mail --
> Od: Andreas Lenhardt via sumo-user 
> Komu: Sumo project User discussions 
> Kopie: Andreas Lenhardt 
> Datum: 13. 3. 2024 17:42:39
> Předmět: [sumo-user] Cars shrink
>
> Hello,
>
> I have a strange problem in my network. The cars shrink when they pass a
> road.
> They have their normal size before they enter the road, and then they grow
> back to the right size after the road end (here when entering the junction
> on the right).
> The network was created with the Osm Webwizard.
>
> [image: image.png]
>
>
> Thanks and kind regards
>
> --
> Mit besten Grüßen
> Andreas Lenhardt
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] NEMA controller issues in netconvert

2024-03-12 Thread Jakob Erdmann via sumo-user
It's a bug that has been fixed in the latest dev version:
https://github.com/eclipse-sumo/sumo/issues/14440

Am Do., 29. Feb. 2024 um 13:10 Uhr schrieb Sasan Amini via sumo-user <
sumo-user@eclipse.org>:

> I think I know why it happens: I am also passing the attribute
> --tls.group-signals. If I remove that, then the ring and barierPhases
> are also defined. Not sure if this is a bug or limited feature  that
> has not been implemented yet.
>
> Thanks,
> Sasan
>
> On Thu, Feb 29, 2024 at 11:06 AM Jakob Erdmann via sumo-user
>  wrote:
> >
> > 1 We do have tests where ring and barrier params are created
> automatically (see
> https://sumo.dlr.de/extractTest.php?path=netconvert/import/XML/tl_types/NEMA).
> Please provide example input where an invalid  NEMA controller is written
> to the network.
> > 2. This is the fallback if the existing guess-a-NEMA-controller code
> fails. If you can provide an example input along with a definition of the
> expected NEMA controller I can try to improve the code.
> >
> > regards,
> > Jakob
> >
> > Am Mi., 28. Feb. 2024 um 14:11 Uhr schrieb Sasan Amini via sumo-user <
> sumo-user@eclipse.org>:
> >>
> >> Dear all,
> >>
> >> I am trying to define all my traffic signals as a NEMA type but I am
> >> facing two issues:
> >> 1- Rings and barrierPhases are not automatically defined so I get an
> >> error in SUMO complainging bout it.
> >> 2- Some junctions seem to be "actuated" type even when I set
> >> tls.default-type NEMA in netconvert (see attached screenshot)
> >> Any suggestions how I could fix this?
> >>
> >> Thanks,
> >> Sasan
> >> ___
> >> sumo-user mailing list
> >> sumo-user@eclipse.org
> >> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
> >
> > ___
> > sumo-user mailing list
> > sumo-user@eclipse.org
> > To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Resolve network warnings

2024-03-07 Thread Jakob Erdmann via sumo-user
If you recreate the roundabout you can change the radius at will and if the
radius is large enough the warnings will disappear. However this would not
reflect the real-world geometry. The root cause is the wrong number of
lanes which is even easier to fix in netedit.

Am Mi., 6. März 2024 um 16:23 Uhr schrieb fereshte jafari via sumo-user <
sumo-user@eclipse.org>:

> Thanks for your response. What about the warnings of the roundabouts?  Do
> you confirm removing this roundabout and recreating it as explained here
> (Converting an intersection into a roundabout)?
> https://sumo.dlr.de/docs/Netedit/neteditUsageExamples.html
>
> warnings:
> Warning: Found sharp turn with radius 7.94 at the start of edge
> '-23537059'.
> Warning: Found sharp turn with radius 8.65 at the end of edge '-23537059'.
> Warning: Found sharp turn with radius 8.26 at the start of edge
> '1149894368'.
> Warning: Found sharp turn with radius 7.71 at the end of edge '1149894370'.
> Warning: Found sharp turn with radius 8.65 at the start of edge '23537059'.
> Warning: Found sharp turn with radius 7.94 at the end of edge '23537059'.
> Warning: Found sharp turn with radius 6.36 at the end of edge '859481424'.
> Warning: Found sharp turn with radius 4.04 at the start of edge
> '893710466'.
>
> Regards,
> Fereshteh
>
> On Wed, Mar 6, 2024 at 2:31 PM Mirko Barthauer 
> wrote:
>
>> I cannot see the connections but those messages may be normal, as by
>> default netconvert 
>> will reduce the allowed speed inside intersections depending on the
>> curvature. Please look at the options *--junctions.limit-turn-speed *and
>> *--junctions.limit-turn-speed.min-angle*.
>>
>>
>>
>> Best regards
>>
>> Mirko
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> -Original-Nachricht-
>>
>> Betreff: [sumo-user] Resolve network warnings
>>
>> Datum: 2024-03-06T14:49:47+0100
>>
>> Von: "fereshte jafari via sumo-user" 
>>
>> An: "Sumo project User discussions" 
>>
>>
>>
>>
>>
>>
>> Hello!
>>
>> I am facing many warnings in my network. Several of them related to a
>> roundabout as shown in the picture below:
>> [image: Screenshot 2024-03-06 at 13.36.47.png]
>> I am thinking about removing this roundabout and recreating it as
>> explained here (Converting an intersection into a roundabout):
>> https://sumo.dlr.de/docs/Netedit/neteditUsageExamples.html But I am not
>> sure if it is the best solution.
>>
>> Beside that, I also have the below warnings:
>> Warning: Speed of straight connection '-604070588_1->-33040725_1' reduced
>> by 7.28 due to turning radius of 20.06 (length=7.15, angle=36.28).
>> Warning: Speed of straight connection '33040725_0->604070588_0' reduced
>> by 5.53 due to turning radius of 27.30 (length=9.84, angle=36.28).
>> Warning: Speed of straight connection '33040725_1->604070588_1' reduced
>> by 6.14 due to turning radius of 24.65 (length=8.86, angle=36.28).
>> Warning: Speed of straight connection '713933105_1->604070587_1' reduced
>> by 6.08 due to turning radius of 24.89 (length=11.41, angle=42.13).
>> Warning: Speed of straight connection '-604070587_0->-713933105_0'
>> reduced by 7.63 due to turning radius of 18.73 (length=8.49, angle=42.13).
>>
>> By clicking on them it does not go to the warning place on the network
>> and I have no idea on how to get rid of them.
>>
>> Any ideas and suggestions would be appreciated.
>>
>>
>> --
>> *Sincerely,*
>> *Fereshteh Jafari Shahdani*
>> *PhD candidate, Dep. of Civil Engineering*
>> *ISISE - University of Minho*
>>
>>
>> 
>>
>
>
> --
> *Sincerely,*
> *Fereshteh Jafari Shahdani*
> *PhD candidate, Dep. of Civil Engineering*
> *ISISE - University of Minho*
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] randomTrips generation in netedit

2024-03-06 Thread Jakob Erdmann via sumo-user
- the extension is somewhat arbitrary. saving trips in a .rou.xml file is
fine
- sumo can load both kinds of files (using option --route-files). See
https://sumo.dlr.de/docs/Definition_of_Vehicles%2C_Vehicle_Types%2C_and_Routes.html#incomplete_routes_trips_and_flows
- it likely makes more sense to use the output-trip-file in your
simulation. Details can be found at
https://sumo.dlr.de/docs/Demand/Dynamic_User_Assignment.html#introduction
and
https://sumo.dlr.de/docs/Demand/Dynamic_User_Assignment.html#oneshot-assignment
- see also
https://sumo.dlr.de/docs/Tools/Trip.html#validated_routes_and_trips

regards,
Jakob

Am Mi., 6. März 2024 um 15:13 Uhr schrieb Andreas Lenhardt via sumo-user <
sumo-user@eclipse.org>:

> Hello,
>
> I have some questions about routes and trips which can be generated in
> netedit.
> As far as I understood, routes are needed to actually have traffic flow in
> the simulator and duarouter creates those routes from other files, f.e.
> from trip-files.
>
> I want to create random trips with randomTrips.py in netedit.
> The gui gives me two input fields for settings: output-trip-file and
> route-file.
>
> - Both of them offer the option to use the current route-file. When both
> are set to the same value (...\routes.rou.xml in my case) the script exists
> with an error message.
> - output-trip-file offers the filename to be "trips.trips.xml". When I
> click the select-file button, the file picker dialog however offers to save
> as *.rou.xml instead of *.trips.xml.
>
> This really confuses me where I need to put which file exactly.
> Could someone give me a hint which files I need to select there?
>
> [image: image.png]
>
> Thanks and kind regards
> --
> Mit besten Grüßen
> Andreas Lenhardt
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Trucks not stopping at the ContainerStop using traci

2024-03-05 Thread Jakob Erdmann via sumo-user
There is a bug ( https://github.com/eclipse-sumo/sumo/issues/14459) that
causes function setSpeed to override stopping behavior to some extent.
This is fixed in v1_19_0-1154

Am Mo., 4. März 2024 um 17:23 Uhr schrieb Hector A Martinez via sumo-user <
sumo-user@eclipse.org>:

> Dear sumo community,
>
>
>
> I am having trouble with getting my Trucks to stop at the ContainerStop
> when I use traci.vehicle.insertStop.
>
>
>
> Here is my route creation:
>
> 
>
>
>
> Here is how I create the truck to use the route:
>
> def create_sumo_truck(self, truck):
>
> """
>
> Inject a new truck vehicle with a valid route ID into SUMO model.
>
> """
>
> self.log(f"creating traci truck {truck.name}")
>
> traci.vehicle.add(truck.name,
>
>   truck.journey[0],  # routeID must exist in
> rou.xml file
>
>   'truck',   # vtype truck_spec['vtype']
>
>   personCapacity=1)  # single-unit truck
>
> traci.vehicle.setSpeed(truck.name, 60)  # m/s Fast for testing
>
> traci.vehicle.insertStop(truck.name,0,'D-Truck-Stop-NW',duration=
> 500,flags=traci.constants.STOP_CONTAINER_STOP)
>
>
>
> My truck slows down when it gets to the stop but keeps going and it does
> the 500 second stop at the end of the edge rather than at the containerStop
> as I would like it to.
>
>
>
> Any advice would be greatly appreciated.  Thanks,
>
>
>
> *Hector A. Martinez, P.E.*
>
> Transportation Researcher, Resilient Transportation and Logistics LTM
>
> *MITRE* | National Security Engineering Center
> 
>
> 813.207.5365
>
>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Regarding minGap

2024-03-01 Thread Jakob Erdmann via sumo-user
See https://github.com/eclipse-sumo/sumo/issues/14449

Am Fr., 1. März 2024 um 10:57 Uhr schrieb Rohan Verma via sumo-user <
sumo-user@eclipse.org>:

> Dear community,
> In my scenario (screenshot attached), when the traffic jam builds up. The
> vehicles that have completed their stops and want to reinsert themselves
> into the traffic are unable to do so, as there is no gap for them to enter.
> They keep on waiting until all other vehicles have passed and then they
> enter the lane. Is there a way that the upcoming vehicles prioritise these
> vehicles and give them way? If yes, can we do it specifically for some
> lanes and not for others? And, can we restrict this to particular vehicles
> i.e. one type or flow of vehicles give way and not the others?
> Any help is appreciated.
> Thanks and regards,
> Rohan
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] NEMA controller issues in netconvert

2024-02-29 Thread Jakob Erdmann via sumo-user
1 We do have tests where ring and barrier params are created automatically
(see
https://sumo.dlr.de/extractTest.php?path=netconvert/import/XML/tl_types/NEMA).
Please provide example input where an invalid  NEMA controller is written
to the network.
2. This is the fallback if the existing guess-a-NEMA-controller code fails.
If you can provide an example input along with a definition of the expected
NEMA controller I can try to improve the code.

regards,
Jakob

Am Mi., 28. Feb. 2024 um 14:11 Uhr schrieb Sasan Amini via sumo-user <
sumo-user@eclipse.org>:

> Dear all,
>
> I am trying to define all my traffic signals as a NEMA type but I am
> facing two issues:
> 1- Rings and barrierPhases are not automatically defined so I get an
> error in SUMO complainging bout it.
> 2- Some junctions seem to be "actuated" type even when I set
> tls.default-type NEMA in netconvert (see attached screenshot)
> Any suggestions how I could fix this?
>
> Thanks,
> Sasan
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Lane specific weights for routing

2024-02-29 Thread Jakob Erdmann via sumo-user
You can get an example for using lane weight files from our test suite:
https://sumo.dlr.de/extractTest.php?path=duarouter/function/routing/lane_weight_files
Note, that all this does is take the average of lane values and use this
for the edge. The routing itself is always edge based.
If you want to take into account different speeds for different modes (i.e.
because they use dedicated lanes), you might find sumo option
--device.rerouting.bike-speeds useful.
regards,
Jakob

Am Do., 29. Feb. 2024 um 10:12 Uhr schrieb Henri Grossmann via sumo-user <
sumo-user@eclipse.org>:

> Dear everyone,
>
> I'm interested in configuring lane-specific weights for routing. I've been
> able to successfully set up routing with edge weights using the following
> format.
>
>"edgeID1" traveltime="23"/>   interval> 
>
> However, when I attempt to incorporate lane-specific weights by adding
> *lane* IDs, the setup doesn't work anymore. Could you please advise on
> the proper way to set this up? According to the documentation which
> describes the input “--weight-files ”, loading edge/lane weights for
> online rerouting from FILE should be possible.
>
>"edgeID1">   traveltime=“800"/>   
>
> Your help is highly appreciated.
>
> Best,
>
> Henri
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] vType attributes vs. vClass defaults

2024-02-27 Thread Jakob Erdmann via sumo-user
Yes.

Am Di., 27. Feb. 2024 um 16:29 Uhr schrieb Sasan Amini via sumo-user <
sumo-user@eclipse.org>:

> thanks. Another related question: if I don't specify vClass when
> defining a vType, "passenger" class will be automatically assigned to
> it. Am I understand this correctly?
>
> On Tue, Feb 27, 2024 at 2:50 PM Jakob Erdmann via sumo-user
>  wrote:
> >
> > No. user-defined attributes always take precedence.
> >
> > Am Di., 27. Feb. 2024 um 14:02 Uhr schrieb Sasan Amini via sumo-user <
> sumo-user@eclipse.org>:
> >>
> >> Dear all,
> >>
> >> I have a question about vehicle type/class definition. If I define a
> vType as:
> >>  >> speedFactor="0.90" emissionClass="PHEMlight/PC_G_EU4"
> >> vClass="passenger"/>
> >> would the attributes such as minGap and length etc. be overwritten by
> >> the default ones from vClass=passenger?
> >>
> >> Best,
> >> Sasan
> >> ___
> >> sumo-user mailing list
> >> sumo-user@eclipse.org
> >> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
> >
> > ___
> > sumo-user mailing list
> > sumo-user@eclipse.org
> > To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] vType attributes vs. vClass defaults

2024-02-27 Thread Jakob Erdmann via sumo-user
No. user-defined attributes always take precedence.

Am Di., 27. Feb. 2024 um 14:02 Uhr schrieb Sasan Amini via sumo-user <
sumo-user@eclipse.org>:

> Dear all,
>
> I have a question about vehicle type/class definition. If I define a vType
> as:
>  speedFactor="0.90" emissionClass="PHEMlight/PC_G_EU4"
> vClass="passenger"/>
> would the attributes such as minGap and length etc. be overwritten by
> the default ones from vClass=passenger?
>
> Best,
> Sasan
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Regarding rerouting time using traci

2024-02-26 Thread Jakob Erdmann via sumo-user
Are you setting any options for automatic routing already (
https://sumo.dlr.de/docs/Demand/Automatic_Routing.html) ?
The only reason for why this would happen with default options is a massive
jam lasting a whole day. By default, trips that cannot enter the network
are rerouted once per minute.
You can change this via option --device.rerouting.pre-period (either given
to traci.start or in the .sumocfg file)


Am Sa., 24. Feb. 2024 um 11:23 Uhr schrieb Rohan Verma via sumo-user <
sumo-user@eclipse.org>:

> Dear community,
> In my simulation, the vehicles are rerouting up to 1000-2000 times. I wish
> to limit this number of reroutes. I planned on doing it using TraCI.
> However, I am unable to find the correct command. Kindly suggest if this
> can be done or if there is another way to do this or any workaround,
> Any help would be appreciated.
> Thanks and regards,
> Rohan
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Simulating Pedestrians

2024-02-23 Thread Jakob Erdmann via sumo-user
Your network is lacking pedestrian crossings and thus any "correct"
behavior is incidental. Please refer to
https://sumo.dlr.de/docs/Simulation/Pedestrians.html

Am Fr., 23. Feb. 2024 um 11:08 Uhr schrieb Schlamp, Anna-Lena via sumo-user
:

> Hi,
>
>
>
> I would like to simulate pedestrians at a roundabout. Pedestrians should
> have priority, especially when vehicles are exiting. This means that
> vehicles should slow down to a standstill when a pedestrian crosses its
> exit lane.
>
> I have attached the Sumo network and a route file as an example. The
> desired behavior is achieved for the north, south and east exit lanes. Only
> at the western exit there is no stopping by the vehicles, although all
> intersections and lanes are configured exactly the same.
>
>
>
> Do you have any idea what the problem might be?
>
>
>
>
>
> Thanks and best regards,
>
>
>
> Anna-Lena
>
>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Implementing Bus prioritisation

2024-02-21 Thread Jakob Erdmann via sumo-user
We don't have any tools for this yet.
It shouldn't be too hard to hack a python script that generates traffic
light xml with custom switch rules for prioritization.
However, we also plan to add this as a direct feature (
https://github.com/eclipse-sumo/sumo/issues/9163), There was even some work
started in a branch that one might pick up on.


Am Mi., 21. Feb. 2024 um 10:29 Uhr schrieb Sasan Amini via sumo-user <
sumo-user@eclipse.org>:

> Dear all,
>
> has anyone experience with implementing bus prioritisation on a
> network level? The logic for one intersection is explained here:
> https://sumo.dlr.de/docs/Simulation/Traffic_Lights.html#bus_prioritization
> But my question is how can we scale this to a large network? Are there
> already some tools available?
>
> Best,
> Sasan
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Regarding parkingSearchTraffic.py

2024-02-15 Thread Jakob Erdmann via sumo-user
1. No. The assumption here is roadside parking where everybody would like
to park at their final destination (i.e. home address). Thus everybody has
a different stop location.
2. distance is the extra driving distance to the alternative parking spot
(this may include a lot of cruising in circles until a spot is found).
walking distance is only the distance from the final parking spot to the
home address (the original destination)
3. Yes, they are included if they eventually stopped somewhere
4. yes

regards,
Jakob

Am Do., 15. Feb. 2024 um 10:23 Uhr schrieb Rohan Verma via sumo-user <
sumo-user@eclipse.org>:

> Dear community,
> I found parkingSearchTraffic.py to obtain search time for vehicles. The
> output obtained from this script provides distance, time and walking
> distance. I had a few doubts regarding these outputs, and it would be a
> great help if any information could be provided.
> 1. The script obtains values for all the vehicles that have stopped. Is
> there a way to get these statistics for different stops?
> 2. What is the difference between distance and walking distance?
> 3. Multiple vehicles in my scenario were teleported due to being stuck in
> traffic jams and not making any stops. Does this script include these
> vehicles, too?
> 4. Is the walking distance obtained using the distance between the defined
> stop and the actual stop?
> Thank you for your help.
> Thanks and Regards,
> Rohan
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Question about junctions

2024-02-14 Thread Jakob Erdmann via sumo-user
netconvert option -R does this (--geometry.remove). You can post-process an
existing network but then you have to repair all the routes and
infrastructure that were previously defined.
example:
netconvert -s old.net.xml -o new.net.xml -R

Am Mi., 3. Jan. 2024 um 11:32 Uhr schrieb Mirko Barthauer via sumo-user <
sumo-user@eclipse.org>:

> Dear Yanglan,
>
>
>
> AFAIk this is not possible. The selection form
>  in netedit
> works with the object attributes you can access as well in the inspect
> mode, but no derived values like the number of ingoing and outgoing edges.
>
>
>
> Best regards
>
> Mirko
>
>
>
>
>
>
>
>
>
> -Original-Nachricht-
>
> Betreff: [sumo-user] Question about junctions
>
> Datum: 2023-12-25T09:00:56+0100
>
> Von: "Yanglan Wang via sumo-user" 
>
> An: "Sumo project User discussions" 
>
>
>
>
>
>
> Dear Sumo Team,
>
> I know how to replace a single junction into a geometry point by using the
> method shown in the figure. Is there any method that can select all
> junctions that are not intersected with other lanes and then change them
> into geometry points?
>
> Thanks a lot!
>
> Best,
> Yanglan
>
> [image: image.png]
>
>
> 
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] TraCI API xercesc dependency

2024-02-14 Thread Jakob Erdmann via sumo-user
It shouldn't be too hard to avoid this dependency path on our end. Is this
still relevant to you?

regards,
Jakob

Am Do., 4. Jan. 2024 um 16:38 Uhr schrieb Matthew Jones via sumo-user <
sumo-user@eclipse.org>:

> Hello Mirko,
>
> Thanks.
>
> I think it is failing because of this code in
> sumo\utils\common\StringUtils.h
>
> #include  // line 29
>
> // line 143:
>
> /**@brief converts a 0-terminated XMLCh* array (usually UTF-16,
> stemming from Xerces) into std::string in UTF-8
>  * @throw an EmptyData - exception if the given pointer is 0
>  */
> static inline std::string transcode(const XMLCh* const data) {
> return transcode(data,
> (int)XERCES_CPP_NAMESPACE::XMLString::stringLen(data));
> }
>
> Our code has
> #include "microsim/MSVehicle.h"
> -->
> #include "MSGlobals.h"
> -->
> #include 
> -->
> #include "UtilExceptions.h"
> -->
> #include "Translation.h"
> -->
> #include "StringUtils.h"
>
> So a very complex path for xerces to leak into the TraCI API 
>
> --
> *From:* Mirko Barthauer 
> *Sent:* 04 January 2024 15:22
> *To:* Sumo project User discussions 
> *Cc:* Matthew Jones 
> *Subject:* AW: [sumo-user] TraCI API xercesc dependency
>
>
>  THIS EMAIL HAS COME FROM AN EXTERNAL SOURCE 
>
>
>
> Hi Matthew,
>
>
>
> currently we have xerces-c-3.2.4 in our SUMO library repo at
> https://github.com/DLR-TS/SUMOLibraries/tree/main/xerces-c-3.2.4 and use
> that for compiling the current SUMO version. In general, xerces is used in
> SUMO since very long ago, way before release 1.8.0. Not sure why this
> becomes a problem for you at this point though...
>
>
>
> Best regards
>
> Mirko
>
>
>
>
>
>
>
> -Original-Nachricht-
>
> Betreff: [sumo-user] TraCI API xercesc dependency
>
> Datum: 2024-01-04T16:01:17+0100
>
> Von: "Matthew Jones via sumo-user" 
>
> An: "sumo-user@eclipse.org" 
>
>
>
>
>
>
> Hello,
>
> Our simulation talks to Sumo using TraCI.
> At the moment we are simply cloning
> https://github.com/eclipse/sumo.git/tags/v1_8_0/src to get the TraC API.
> We are not using libsumo, but have these source files in our Windows
> project:
> 
> 
> 
>
> I have just tried updating to 1.19.0 but this has brought in a dependency
> on xercesc.
> Which specific version of xercesc should I be using with SUMO v1.19.0 ?
> I have tried the latest but it doesn't compile straight away - it seems to
> need autoconf to run. I don't want to install xercesc - I am not going to
> be using it - I just want the SUMO headers. Is there a simple way to make
> things work the same way v1.8.0 used to? This needs to build on Jenkins
> machines so we don't want to have to install dependencies by hand.
>
> At what version did the xerces dependency get added? We might have to use
> the one before.
>
> Thank you,
>
>
>
> *Matthew Jones *
> Senior Software Engineer
> rFpro Limited
>
> E: matthew.jo...@rfpro.com
> W:  www.rFpro.com
>
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you have received this email in error please notify the system sender.
> This message may contain confidential information and is intended only for
> the individual named. If you are not the named addressee you should not
> disseminate, distribute or copy this e-mail.
> 
>
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you have received this email in error please notify the system sender.
> This message may contain confidential information and is intended only for
> the individual named. If you are not the named addressee you should not
> disseminate, distribute or copy this e-mail.
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] How to modell sharp turns of long vehicles that need a hole in the opposing trafic

2024-02-14 Thread Jakob Erdmann via sumo-user
There are several possible workarounds:
- create two short edges on top of each other (one for trucks and one for
normal cars) ahead of the sharp turn. This way you can still use
prohibitions with separate rules for either vehicle class
- use traci to define some additional checks and stop the truck when it's
not supposed to pass the turn
- define a traffic light with custom switching rules that blocks the truck
from driving as long as there are cars in the relevant area (
https://sumo.dlr.de/docs/Simulation/Traffic_Lights.html#type_actuated_with_custom_switching_rules
)

regards,
Jakob

Am Mi., 10. Jan. 2024 um 15:55 Uhr schrieb Bernhard Seckinger via sumo-user
:

> Hi Mirko,
>
> Thanks for your response. I tried your ideas, but none worked...
>
> >- you can give the connection a custom shape which cuts into the opposing
> >traffic (see context menu of connections in netedit or PlainXML
> ><
> https://sumo.dlr.de/docs/Networks/PlainXML.html#explicitly_setting_which_edge_lane_is_connected_to_which>
>
> >format)
>
> Even with option --collision.check-junctions the cars go just through each
> other. They do not wait nor is any collision detected.
>
> >- if you want passenger cars to take a different path than trucks, you
> need
> >separate incoming lanes (one can be very short and thin such that it can
> be
> >noticed from very close only) and connect both to the outgoing lane
>
> I was able to separate the lanes, one only for trucks, the other for all
> other,
> but unfortunately the prohibiton-tag only applies to edges, not lanes.
> Thus I
> was not able to assign different rules to the lanes.
>
> Best, Bernhard
>
> --
> Bernhard Seckinger 
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Calculation of travel times

2024-02-14 Thread Jakob Erdmann via sumo-user
You can use E3 detectors to obtain time-mean speed over specific parts.

Am Mo., 15. Jan. 2024 um 12:37 Uhr schrieb Mirko Barthauer via sumo-user <
sumo-user@eclipse.org>:

> Dear Rohan,
>
>
>
> your request is quite specific, such that there is no exact match with the
> existing output options of sumo. What if you divide the route into separate
> components, then measure the travel times of these shorter routes and then
> aggregate the data as you like?
>
>
>
>- create routes of the one to few edges you want to evaluate separately
>- add a rerouter 
>item at every end of such a route
>- write travel times with vehicle routes output
>
>- use "replacedOnEdge" and "replacedAtTime" data to reconstruct the
>single route travel times
>
> Best regards
>
> Mirko
>
>
>
>
>
>
>
>
>
>
>
> -Original-Nachricht-
>
> Betreff: [sumo-user] Calculation of travel times
>
> Datum: 2024-01-13T11:52:27+0100
>
> Von: "Rohan Verma via sumo-user" 
>
> An: "Sumo project User discussions" 
>
>
>
>
>
>
> Dear community,
> I am trying to achieve the following; any suggestions or recommendations
> are welcome. I have a flow of around 200 vehicles per hour over a fixed
> route for 14400 timestamps. The route consists of some straight edges. I
> can obtain the average travel time to travel the route of all the vehicles
> over the whole simulation duration. However, I am trying to get the travel
> time for specific edges, i.e., dividing the route into parts (each part may
> include one or more adjacent edges). We are trying to obtain the travel
> time for each part and then get the average travel times for these parts
> individually.
> Something similar can be obtained using speed from edgedata, but there are
> two limitations with edgedata. One is that it gives speed for individual
> edges, and some parts of our problem may include groups of edges. Secondly,
> the speed from edgedata is space mean speed, and time-mean speed should be
> used for calculating travel times.
> Any help is appreciated.
> Thanks and regards,
> Rohan
>
>
> 
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Validation of BPR Method in SUMO: Seeking Help on Replicating Asymptotic Results in Straight Road Sections

2024-02-14 Thread Jakob Erdmann via sumo-user
See this list of resources for replicating the fundamental diagram (on
loops and straight roads):
https://sumo.dlr.de/docs/Tutorials/FundamentalDiagram.html

Am Mi., 17. Jan. 2024 um 08:28 Uhr schrieb Mirko Barthauer via sumo-user <
sumo-user@eclipse.org>:

> Dear François,
>
>
>
> tkinter is not part of SUMO but is a Python module for GUI purpose.
>
>
>
> Best regards
>
> Mirko
>
>
>
>
>
>
>
> -Original-Nachricht-
>
> Betreff: Re: [sumo-user] Validation of BPR Method in SUMO: Seeking Help on
> Replicating Asymptotic Results in Straight Road Sections
>
> Datum: 2024-01-17T01:34:17+0100
>
> Von: "François Vaudrin via sumo-user" 
>
> An: "Sumo project User discussions" 
>
>
>
>
>
>
>
> Hallo Harald,
>
>
>
> Thank you very much for your suggestions; it seems like a very good idea
> to study the phenomenon.
>
> I will try to see if I can deduce the BPR curve from it.
>
> Is the tkinter interface an option in SUMO?
>
> I appreciate your assistance and welcome any further insights.
>
> Kind regards,
>
> *François*
> Québec Cityl, CANADA
>
> --
> *De :* sumo-user  de la part de Harald
> Schaefer via sumo-user 
> *Envoyé :* mardi 16 janvier 2024 04:45
> *À :* sumo-user@eclipse.org 
> *Cc :* Harald Schaefer 
> *Objet :* Re: [sumo-user] Validation of BPR Method in SUMO: Seeking Help
> on Replicating Asymptotic Results in Straight Road Sections
>
>
> Bonjour François,
>
>
>
> to simulate congestions on a highway i have created a straight road of 10
> km length.
>
> In the beginning I'm filling in cars on 5 lanes, then merging to 3 lanes
> and oberserving the traffic after 8 or 9 km.
>
> The UI shows views from different part of the road. An tkinter  interface
> allows to control the model and shows some metrics.
>
>
>
> Best regards, Harald
>
>
> Am 15.01.24 um 18:06 schrieb François Vaudrin via sumo-user:
>
> Dear Mirko,
>
>
>
> Thank you for your prompt and insightful response.
>
>  In the past, like many others, I assumed that congestion naturally occurs
> when vehicles are added on a road section, but the reality is more
> complicated. However, I was hoping to find an alternative approach to
> replicate the phenomenon without introducing a bottleneck.
>
> In the past, Jakob suggested using a closed loop to replicate the
> phenomenon. Is this the sole method to achieve it? But I understand that it
> may not be possible otherwise.
>
> The preference for a straight road is to enhance conference presentation
> clarity, as a bottleneck or loop could be challenging for the audience.
>
> I appreciate your assistance and welcome any further insights.
>
> Kind regards,
>
> François
>
> Québec city , CANADA
> --
> *De :* Mirko Barthauer  
> *Envoyé :* lundi 15 janvier 2024 06:26
> *À :* Sumo project User discussions 
> 
> *Cc :* François Vaudrin 
> 
> *Objet :* AW: [sumo-user] Validation of BPR Method in SUMO: Seeking Help
> on Replicating Asymptotic Results in Straight Road Sections
>
>
> Dear François,
>
>
>
> as you already noted, travel times on inflow edges depend a lot on the
> insertion rules and the used car-following settings. The next vehicle to be
> inserted needs some space (vehicle length and distance to leader) and only
> one vehicle per time step and lane can enter the network. To some extent,
> your question is similar to "how to replicate the fundamental diagram in
> sumo" (especially the saturated part). You need some way to increase the
> vehicle density which will lead to longer travel times.
>
>
>
> Either create an artificial bottleneck or let vehicles circulate in the
> network for longer and keep some distance from inflow places when measuring
> the travel time.
>
>
>
> Best regards
>
> Mirko
>
>
>
>
>
>
>
> -Original-Nachricht-
>
> Betreff: [sumo-user] Validation of BPR Method in SUMO: Seeking Help on
> Replicating Asymptotic Results in Straight Road Sections
>
> Datum: 2024-01-15T08:29:15+0100
>
> Von: "François Vaudrin via sumo-user" 
> 
>
> An: "Sumo project User discussions" 
> 
>
>
>
>
>
>
>
> Hello,
>
> I'm seeking assistance in validating the BPR method using SUMO to express
> travel time based on road capacity. The Bureau of Public Roads (BPR)
> formula is commonly used to model travel time on a road as a function of
> its capacity: After reaching a certain flow threshold, travel time
> increases exponentially until reaching the ultimate capacity of the road.
>
>
>
> where:
>
>- T is the travel time on the road,
>- Tff ​ is the initial travel time,
>- q is the flow of traffic (number of vehicles per unit time),
>- qpc is the capacity of the road (maximum number of vehicles the road
>can accommodate per unit time),
>- α and β are adjustable parameters.
>
> Despite increasing the flow of vehicles in a network with SUMO, Vehicles
> are being pushed backward before entering the network, possibly due to a
> required distance (likely related to the car-following model), but the
> results are not the 

Re: [sumo-user] Adding Elevation Data to existing net-files

2024-02-14 Thread Jakob Erdmann via sumo-user
or you could convert your elevation data into one of the supported formats:
https://sumo.dlr.de/docs/Networks/Elevation.html

Am Do., 25. Jan. 2024 um 16:47 Uhr schrieb Mirko Barthauer via sumo-user <
sumo-user@eclipse.org>:

> Dear Emanuel,
>
>
>
> the Z coordinate can be updated the same way as other parts of a SUMO
> network. This means:
>
>- manual editing in netedit (there is a toggle in move mode as well to
>edit the Z coordinate visually, but you can enter the coordinates in
>inspect mode as well)
>- PlainXML  format
>suited for automated editing
>   - run netconvert to get the PlainXML from net.xml
>   - you'd have to write a logic which computes the Z coordinates and
>   writes them to the PlainXML format
>   - then run netconvert to get net.xml again
>
> Best regards
>
> Mirko
>
>
>
>
>
>
>
>
>
> -Original-Nachricht-
>
> Betreff: [sumo-user] Adding Elevation Data to existing net-files
>
> Datum: 2024-01-25T16:21:32+0100
>
> Von: "Reichsöllner, Emanuel via sumo-user" 
>
> An: "Mirko Barthauer via sumo-user" 
>
>
>
>
>
>
>
> Dear SUMO- Team,
>
>
>
> is there a possibility to add elevation Data (z-Coordinate) from my own
> Source to
>
> an existing net-file?
>
>
>
> Best regards,
>
>
>
> Emanuel
>
>
>
>
> 
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Modeling intersections

2024-02-14 Thread Jakob Erdmann via sumo-user
Pedestrians have dedicated infrastructure as explained here:
https://sumo.dlr.de/docs/Simulation/Pedestrians.html

Am Do., 1. Feb. 2024 um 15:30 Uhr schrieb Schlamp, Anna-Lena via sumo-user <
sumo-user@eclipse.org>:

> Hi,
>
>
>
> I want to model a small priority intersection in Sumo with pedestrians.
> Vehicles should move from the bottom edges coming up to a roundabout,
> pedestrians should move from the right and left side having priority (see
> screenshot 1 and 2).
>
> I have the following requirements regarding the vehicles' and pedestrian’s
> behavior:
>
>- Pedestrians should have priority, e.g. always cross the intersection
>first.
>- If a vehicle coming from below (screenshot 2, green) meets a
>pedestrian coming from the right or left (blue), it should stop before the
>intersection.
>- If a vehicle coming from below does not meet crossing vehicles, it
>should cross the intersection without stopping.
>
>
>
> How can I model this?
>
>
>
> I have tried to model the intersection as follows:
>
>- Type: Priority
>- Edges coming from below and above: Priority 1
>- Edges coming from left and right: Priority 10
>
>
>
> I have also tried to adjust some parameters, e.g. impatience="1",
> jmIgnoreJunctionFoeProb="1", jmIgnoreFoeProb="1", but this has never led to
> the desired result. Instead of a pedestrian, I also tried to simulate a
> small vehicle as an alternative. Points 1 and 2 above worked, but the third
> did not. The vehicle often stops at the intersection even though there is
> no traffic (see screenshot 2).
>
>
>
>
>
> It would be great if you could help me with this and tell me exactly how
> to model it. As an alternative, it would also be okay to model small
> vehicles instead of pedestrians.
>
>
>
>
>
> Thanks and best regards,
>
>
>
> Anna-Lena
>
>
>
>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Missing record in sumo FCD file

2024-02-13 Thread Jakob Erdmann via sumo-user
FCD output is not recorded for vehicles that are teleporting. See
https://sumo.dlr.de/docs/Simulation/Why_Vehicles_are_teleporting.html

Am Fr., 2. Feb. 2024 um 11:40 Uhr schrieb PANDEESWARI INDUMATHI S via
sumo-user :

> TCS Confidential
>
> Hi,
>
> I am running SUMO on Luxembourg scenario. When i processed FCD file, i
> found that there are some missing timestep record. For example, i ran
> DUERoutes for luxembourg, the FCD file of that has missing record between
> timestep 93175 and 93351 for the vehicle id "h86c1:6". I also ran the SUMO
> for ToST scenario, there also i found missing record for few timesteps. If
> anyone knows the reason for missing record or anyone knows how to get
> record for all timestep, please share it with me.
>
> Thanks & Regards,
> Pandeeswari S
> Researcher,
> IITM Research Park,
> Chennai 600113.
> Phone: 9786246137
>
> =-=-=
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Output for parking areas

2024-02-13 Thread Jakob Erdmann via sumo-user
see also
https://sumo.dlr.de/docs/Tools/Output.html#computestoppingplaceusagepy

Am Do., 8. Feb. 2024 um 16:15 Uhr schrieb Mirko Barthauer via sumo-user <
sumo-user@eclipse.org>:

> Hi Florian,
>
>
>
> there is no output which gives you these measures directly. You can use
> the stop output
>  to compute
> the number of parking vehicles and then subtract those from the parking
> area capacity to get the number of free parking spaces.
>
>
>
> Best regards
>
> Mirko
>
>
>
>
>
>
>
>
>
> -Original-Nachricht-
>
> Betreff: [sumo-user] Output for parking areas
>
> Datum: 2024-02-08T15:41:22+0100
>
> Von: "Florian Schnepf via sumo-user" 
>
> An: "sumo-user@eclipse.org" 
>
>
>
>
>
>
> Dear all,
>
> I created a scenario with a parking area and with rerouters, if the
> parking areas are full.
> Now I search for outputs. I thought about but coulndn't find outputs for:
>
>- number of free parking spaces
>- number of vehicles parking
>- total number of reroute
>
> I found the number of reroute of individual vehicles. Is there also an
> aggregated number, or do I have to aggregate them by myself?
>
> Thanks in advance
>
> Kind regards
> Florian
>
>
> 
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] OpenDrive conversions to .net.xml

2024-02-02 Thread Jakob Erdmann via sumo-user
The following ticket discusses mitigation and those might be applied
manually already:  https://github.com/eclipse-sumo/sumo/issues/9045

Am Do., 1. Feb. 2024 um 17:27 Uhr schrieb Ruud van Gaal via sumo-user <
sumo-user@eclipse.org>:

> Hi Mirko,
>
> SUMO only supporting a constant lane width is indeed a difference with
> respect to OpenDrive and would explain what I've been seeing. Good to know,
> thanks!
> I did not use *--opendrive.min-width, *no, so the resulting edges were
> mostly coming straight out of netconvert. I used something like:
>
>
> *netconvert  --opendrive-files myfile.xodr -o
> myfile.net.xml --sidewalks.guess true --crossings.guess true*
>
> Kind regards,
> Ruud
>
>
> On Tue, Jan 30, 2024 at 3:56 PM Mirko Barthauer 
> wrote:
>
>> Hi Ruud,
>>
>>
>>
>> in general importing an OpenDrive network will result in some
>> simplifications. On top of that, only a subset of all OpenDrive
>> elements/attributes is supported. There has been done some work on the
>> OpenDrive import recently but I doubt it will help in your case.
>>
>> The main issue here is that the importer will try to make the edges
>> follow the reference line but has to keep the lane width constant (SUMO
>> does not support lane width changes within a lane). Do you make use of any
>> OpenDrive specific netconvert options like *--opendrive.min-width*?
>>
>>
>>
>> Best regards
>>
>> Mirko
>>
>>
>>
>>
>>
>>
>>
>> -Original-Nachricht-
>>
>> Betreff: [sumo-user] OpenDrive conversions to .net.xml
>>
>> Datum: 2024-01-30T12:50:26+0100
>>
>> Von: "Ruud van Gaal via sumo-user" 
>>
>> An: "Sumo project User discussions" 
>>
>>
>>
>>
>>
>>
>> Hi,
>>
>> The basis for soof our environments is in OpenDrive format. When
>> exporting that to SUMO, it seems some of the base architectural constructs
>> are different, making conversion difficult (OpenDrive uses roads with
>> lanes, where SUMO uses an edge per direction it seems with lanes that are
>> not really a direct conversion from OpenDrive). For example, in an
>> OpenDrive (odrviewer.io) viewer I see these lanes merging in OpenDrive:
>>
>> [image: image.png]
>> With the export I used in SUMO 1.16.0 this ended up like this in SumoGui:
>>
>> [image: image.png]
>>
>> I'm wondering whether this is something structural or whether SUMO is
>> capable of handling these types of conversions better. I'm not sure if any
>> work has been done to the OpenDrive importer since SUMO 1.16, or that I
>> might have missed some netconvert options which might improve the
>> conversion on this point.
>>
>> Thanks,
>> Ruud van Gaal
>>
>>
>> 
>>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


[sumo-user] Sabbatical notice

2023-07-12 Thread Jakob Erdmann via sumo-user
Dear friends and users,
in case you missed the announcement during the SUMO user conference, here
is a gentle reminder that as of today, I will be on a sabbatical until
February 2024. Of course, SUMO development and support will continue in the
meantime. However, please be aware that the temporary reduction in manpower
may lead to increased response times. If you ever feel inclined to help out
your fellow SUMO users by answering their questions, please do not hesitate
to do so.

best regards,
Jakob
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Warnings of Emergency Braking in Sub Lane Model:

2023-07-07 Thread Jakob Erdmann via sumo-user
Changing the lateral resolution impacts the spacial accuracy for vehicle
interactions (in a tradeoff for computational time). However, it also is a
source of "noise" or random changes to the simulation state.
At my best guess is, that most of the changes you observe w.r.t to
emergency braking from chaging resolution would also occur when changing
the random seed (you can easily test this hypothesis with runSeeds.py (
https://sumo.dlr.de/docs/FAQ.html#how_to_perform_repeated_simulations_with_different_results
).

There was also a problem with regard to lateral acceleration in dangerous
situations that has been fixed (https://github.com/eclipse/sumo/issues/13582).
This bug was responsible for 80% of the emergency braking and collision
issues. The remaining 20% are still under investigation.

Thanks to Mayank for providing the example scenario.

Am Mi., 5. Juli 2023 um 05:29 Uhr schrieb Manish Chaturvedi <
msc@gmail.com>:

> Dear Jacob, we had also observed similar warnings for specific values of
> lateral resolution.
>
> In the above example, the lateral resolution of  0.64 does not create
> warnings/teleporting of vehicles (with default lane width).
>
> Similarly, when the lane width is 3.6 meters, the lateral resolution of
> 0.30 creates warnings and teleporting of vehicles, but the lateral
> resolution of 0.31 does not.
>
> We do not understand the reason for this.
>
> We just used trial and error method to select the lateral resolution value
> that does not create warning / teleporting, .
>
> Can you share some insight about this behaviour of simulation?
>
> Regards,
>
> Manish
>
>
>
>
>
> On Thu, Jun 29, 2023 at 6:03 PM Mayank Singh 
> wrote:
>
>> Respected Sir,
>> In our SUMO simulation, we simulate Heterogeneous traffic using a sub
>> lane model with a lateral resolution of 1.07
>> *The warnings are as below:*
>> Warning: Teleporting vehicle 'mixed.1215'; collision with vehicle
>> 'mixed.1216', lane='beg_1', gap=-4.60', latGap=-0.00, time=736.00
>> stage=laneChange.
>> Warning: Vehicle 'mixed.1215' ends teleporting on edge 'end', time=739.00.
>> Warning: Vehicle 'mixed.1412' performs emergency braking on lane 'beg_2'
>> with decel=9.00, wished=4.34, severity=1.00, time=853.50.
>> Warning: Vehicle 'mixed.1755' performs emergency braking on lane 'beg_1'
>> with decel=10.00, wished=4.66, severity=1.00, time=1057.00.
>>
>> I have enclosed my simulation files for your reference.
>>
>> Please guide me in resolving this issue and advise me accordingly.
>>
>> Regards,
>> Mayank
>> ___
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Vehicle Class for 3-Wheeler Passenger Vehicle:

2023-07-07 Thread Jakob Erdmann via sumo-user
Vehicle classes in sumo serve the main purposes of defining access
restrictions. You need to decide whether rickshaws may use the same lanes
as some other class (i.e. bicycle) or may use a custom class (i.e.
custom1). In the latter case you have to manually adapt the access
restrictions in the network according to your best judgement of where
rickshaws may drive.

There is a secondary purpose of vClass which sets default vehicle type
parameters. (https://sumo.dlr.de/docs/Vehicle_Type_Parameter_Defaults.html).

Since none of the existing defaults accommodate a rickshaw you have to
override the respective type parameters according to your own judgement. If
you have or obtain expertise on typical rickshaw parameters we're happy to
include it in the documentation (since nobody on our team is a rickshaw
expert).

regards,
Jakob


Am Do., 6. Juli 2023 um 17:45 Uhr schrieb Mayank Singh <
mayanksingh.dai...@gmail.com>:

> Respected Sir,
>
> In my current project on Heterogeneous traffic, I am utilizing a specific
> type of vehicle known as a "Rickshaw," which is a 3-wheeler passenger
> vehicle. I would like to know the appropriate vehicle class for defining
> this type of vehicle and also want to understand the key characteristics
> associated with it.
>
>
> Regards,
> Mayank
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Close the part of the lane for construction

2023-07-05 Thread Jakob Erdmann
The easiest way is to close a complete lane using
traci.lane.setAllowed(laneID, "authority") and re-open it later with
traci.lane.setAllowed(laneID, "all") (or whatever the prior permissions
used to be).
For closing only a part, the recommended way is to place a stopped vehicle
(traci.vehicle.add, traci.vehicle.setStop, later remove it with
traci.vehicle.remove).

Am Do., 6. Juli 2023 um 01:06 Uhr schrieb Desai, Rohit (VWoA-ECC) <
rohit.de...@vw.com>:

> Hi SumoUsers,
>
>
>
> I am new to the sumo, still learning most of the things.
>
> I would like to know what’s is the way to close a part of the lane for
> construction or accident scenario ?
>
> When I read across couple of old posts people had created a ghost vehicle
> in in the simulation, is this is how it is achieved ?
>
> How can I do the lane closer(part of the lane) through TraCI and open back
> after some time ?
>
> Any thoughts will be greatly appreciated.
>
>
>
> Thanks,
>
> Rohit
>
> Internal
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] VariableSpeedSigns in TraCI

2023-07-02 Thread Jakob Erdmann
setParameter/getParameter won't do anything here.
Also, for a VSS you still have to list all affected lanes. There is no
automatic detection of downstream lanes. It really just calls
lane.setMaxSpeed internally.
Totally agree on the fun of having visual feedback though (-:

Am So., 2. Juli 2023 um 22:57 Uhr schrieb Sasan Amini :

> To be sure, using the generic functions getParameter() or
> setParameter() won't work in this particular case? or am I using them
> wrong?
>
> On Sun, Jul 2, 2023 at 10:49 PM Sasan Amini  wrote:
> >
> > That seems to be a bit more complicated than I thought.
> > Regarding the workaround, I guess using VSS is more practical because
> > it affects all the downstream lanes (overwrites the vehicle maxSpeed)
> > while using traci.lane.setMaxSpeed would only change the speed limit
> > in the lane where the vss is defined. Moreover, it takes the fun away
> > from the SUMO-GUI by not changing the VSS icons.
> >
> > On Sun, Jul 2, 2023 at 10:38 PM Jakob Erdmann 
> wrote:
> > >
> > > Adding a new traci function requires touching multiple parts of the
> code. As an example, see https://github.com/eclipse/sumo/issues/12568
> > > However, you can achieve the effect of a VSS by calling
> traci.lane.setMaxSpeed
> > >
> > > Am Fr., 30. Juni 2023 um 22:20 Uhr schrieb Sasan Amini <
> amini...@gmail.com>:
> > >>
> > >> Dear all,
> > >> I am trying to implement dynamic traffic control on a freeway using
> > >> variable speed signs. I noticed that the TraCI functions are missing
> > >> for vss so I tried to use the get or set parameter function, which
> > >> didn't work out. I also tried to create the traci functions myself as
> > >> follows, but they also have no effect. What is the right way to add
> > >> such functions to traci?
> > >>
> > >> Thanks,
> > >> Sasan
> > >>
> > >> def getSpeed(self,vssID):
> > >> return
> self._getUniversal(tc.CMD_GET_VARIABLESPEEDSIGN_VARIABLE,'speed',vssID)
> > >> """getSpeed(string)
> > >>
> > >> gets the speed in m/s for the named variable speed sign within the
> last step.
> > >> """
> > >> def setSpeed(self, vssID, speed):
> > >> """setSpeed(string, double)
> > >>
> > >> sets the speed in m/s for the named variable speed sign.
> > >> """
> > >>
> self._setCmd(tc.CMD_SET_VARIABLESPEEDSIGN_VARIABLE,'speed',vssID,speed)
> > >> ___
> > >> sumo-user mailing list
> > >> sumo-user@eclipse.org
> > >> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
> > >
> > > ___
> > > sumo-user mailing list
> > > sumo-user@eclipse.org
> > > To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] netgenerate right turn only lane

2023-07-02 Thread Jakob Erdmann
if you set --turn-lanes 2 you will get an exclusive left turn lane and one
exclusive right-turn lane.
Is your use case getting only a single right-turn lane without a left-turn
lane?


Am So., 2. Juli 2023 um 17:53 Uhr schrieb Dayuan Tan :

> Dear Community,
>
> Hope you everything goes well~
>
> Could you please help inform me how to create right-turn only lane as the
> right most lane in an edge?
> I know --turn-lanes creates the left-turn only lane at the left most. I
> searched a lot. But didn't find a way to do so.
> Thank you very much!
>
> Sincerely,
> Dayuan
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] VariableSpeedSigns in TraCI

2023-07-02 Thread Jakob Erdmann
Adding a new traci function requires touching multiple parts of the code.
As an example, see https://github.com/eclipse/sumo/issues/12568
However, you can achieve the effect of a VSS by calling
traci.lane.setMaxSpeed

Am Fr., 30. Juni 2023 um 22:20 Uhr schrieb Sasan Amini :

> Dear all,
> I am trying to implement dynamic traffic control on a freeway using
> variable speed signs. I noticed that the TraCI functions are missing
> for vss so I tried to use the get or set parameter function, which
> didn't work out. I also tried to create the traci functions myself as
> follows, but they also have no effect. What is the right way to add
> such functions to traci?
>
> Thanks,
> Sasan
>
> def getSpeed(self,vssID):
> return
> self._getUniversal(tc.CMD_GET_VARIABLESPEEDSIGN_VARIABLE,'speed',vssID)
> """getSpeed(string)
>
> gets the speed in m/s for the named variable speed sign within the last
> step.
> """
> def setSpeed(self, vssID, speed):
> """setSpeed(string, double)
>
> sets the speed in m/s for the named variable speed sign.
> """
> self._setCmd(tc.CMD_SET_VARIABLESPEEDSIGN_VARIABLE,'speed',vssID,speed)
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] vsl implementation

2023-06-30 Thread Jakob Erdmann
You can find general variable speed sign tests at
https://sumo.dlr.de/extractTest.php?path=sumo/extended/variable_speed_signs
An experiment that tests road (insertion) capacity for different parameters
such as speed can be found at
https://sumo.dlr.de/extractTest.php?path=complex/sumo/insertionCapacity
The experiment is also described at
https://sumo.dlr.de/docs/Simulation/RoadCapacity.html

Am Fr., 30. Juni 2023 um 08:23 Uhr schrieb dvir n :

>
> Hello,
>
> I am trying to examine the effect of variable speed limit signs on a
> road's flow and capacity. Is there such a test case in sumo?
>
>  Does someone know where I can find detailed and practical instructions
> for VSL implementation? (The rules of how speed limits are determined, the
> detector’s location and type, parameters calibration etc.)
>
> Thanks in advance!
>
>
> Dvir
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Import Sumo net and route file in CARLA Simulator

2023-06-29 Thread Jakob Erdmann
You can use netconvert option --opendrive-output to convert a sumo network
to .xodr format suitable for CARLA.

Am Mi., 21. Juni 2023 um 15:16 Uhr schrieb Sona S :

> Hi everyone,
>
>  I want to import Sumo files (net and route or sumocfg ) in the CARLA
> Simulator. It is not easy in a CARLA simulator to generate a net and route
> like a Sumo simulator. So I want to export the sumo file to CARLA
> Simulator. Does anyone have any suggestions?
>
> Best regards,
> Sona
>
>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


[sumo-user] Version 1.18.0 released

2023-06-29 Thread Jakob Erdmann
Dear friends and users,
we are happy to announce the release of SUMO version 1.18.0.
The download links are at https://sumo.dlr.de/docs/Downloads.html

This release brings many bug fixes including a critical fix to the HBEFA4
model
and refinements to the netedit python-tool features introduced in the
previous release.
There are many more features and fixes in this release and the most
important
ones are listed below. For a full list of changes, as always see
http://sumo.dlr.de/wiki/ChangeLog

### Enhancements

- Simulation
  - Added device.taxi.idle-algorithm value 'taxistand' which makes idle
taxis return to a pre-configured set of locations.
  - Can now configure vehicle behavior after colliding with a pedestrian.
  - The SSM-device now supports the new surrogate safety measure "MDRAC".
  - Vehicles can now be configured to ignore specific vehicles/types during
car-following

- netedit
  - Implemented new dialog for setting netedit and sumo options. This
dialog supports option help, file selection dialogs and permits dynamic
filtering of listed options.
  - Now supports trips and flows between TAZs.

- netconvert
  - OpenDRIVE import: now supports road objects from connecting roads.
  - OSM import: typemap osmNetconvertRailUsage.typ.xml now imports service
designation.
  - Added option --railway.signal.guess.by-stops to add rail_signal nodes
to a network that is lacking them.
  - When using option --tls.rebuild, the tltype can be changed by setting
option --tls.default-type.

- TraCI
  - Added functions 'lane.getAngle' and 'edge.getAngle'.
  - Added function 'vehicle.getJunctionFoes'.
  - Function traci.vehicle.setStopParameter and getStopParameter now
supports optional argument customParam=True to work with user defined stop
parameters.
  - 'vehicle.setImpatience' and 'vehicle.getImpatience' now set/get the
dynamic impatience value which is affected by waitingTime
  - vehicletype domain now support the functions set/getBoardingDuration
and set/getImpatience.

- tools
  - randomTrips.py: added options --from-stops and --to-stops to define
pedestrians, personTrips and person rides from and to stops (i.e. busStop).
  - plotXMLAttributes.py and plot_trajectories.py now show the plot by
default.
  - plotXMLAttributes.py: Now supports attribute value @DENSITY to create
density plots.
  - routeSampler: Added option --taz-files and support for loading origin
destination matrices in tazRelation format.
  - scheduleStats.py: Now permits analysis of planned and actual travel
time between pairs of stops.
  - tileGet.py now supports option --parallel-jobs to speed up data
retrieval.
  - checkStopOrder.py: more options and features for table generation
  - generateRailSignalConstraints.py: now supports portion working
(vehicles with depart="split").


### Bugfixes

- Simulation
  - Setting param vTypes for actuated and delay_based tls detectors is
working again. (regression in 1.15.0)
  - Fixed invalid emission and consumption outputs for the HBEFA4 emission
classes (model was calibrated on km/h instead of m/s).
  - The simulation now aborts when encountering an invalid stop definition
(unless option --ignore-errors is set).
  - Fixed crash when loading state with vehicles that have triggered
departure.
  - Fixed crash after rerouting and losing a stop.
  - A parkingReroute now works even if the parkingArea on the current edge
is not included in the alternatives list.
  - IDM no longer violates right of way due to imprecise stopping at minor
link.
  - Fixed multiple problems causing emergency braking and collisions
  - Fixed multiple problems with bidirectional lane use

- netedit
  - Fixed crash when importing OSM data direclty. (regression in 1.16.0)
  - Saving plain xml now works when selecting an existing plain-xml file to
define the output prefix. (regression in 1.16.0)
  - Fixed invalid undo operation after moving a set of network elements.
(regression in 1.16.0)
  - Fixed segfault when closing netedit and no net is loaded (regression in
1.17.0)
  - Fixed spacing for person mode path info subframe. (regression in 1.17.0)
  - Loading Data Elements via menu item is working again. (regression in
1.17.0)
  - netdiff-dialog now permits to change the output prefix.
  - Fixed invalid default values in netgenerate dialog and tool dialogs.
  - Boolean options can now be reset in tool dialogs.
  - A person with a single stop stage is now visible after loading.
  - Z value is no longer applied twice in move mode.
  - Using netedit to define custom detectors for actuated traffic lights is
now working.

- netconvert
  - Fixed invalid connection permissions after joining junction.
  - Fixed broken network after setting option --tls.rebuild.
  - Fixed classification of turnaround connection on some divided highways.
  - OSM: fixed incomplete public transport route.
  - OSM: fixed problems with one-way bus and bicycle infrastructure.
  - OSM: fixed crash when using option --osm.turn-lanes.
  - Fixed unsafe signal plan at 

Re: [sumo-user] Taxistands

2023-06-26 Thread Jakob Erdmann
There is currently no provision for this behavior. You could emulate it by
defining additional taxistands and then configure the choice of taxistand
by randomness rather than proximity: ( ). See
https://sumo.dlr.de/docs/Simulation/Rerouter.html#rerouting_to_an_alternative_parking_area

Am So., 25. Juni 2023 um 15:31 Uhr schrieb Sharifullah Asady <
sharif.as...@tum.de>:

> Hi,
>
>
> I am modelling the idle behavior of taxis. I want the taxis to return to a
> random edge within a defined zone and stop there for a customer request. I
> know that the 'stop' idle behavior forces the taxis to stop immedietly
> after the drop off of the passenger so is there any possibility to extend
> it or any suggestion?
>
>
> Additionally, for the 'randomCircling' idle behavior, is there any
> possibility to implement a method that taxi travels to a given edge and
> after arriving the edge if it is still idle, it picks another edge and this
> happens until there is a request.
>
>
> Many thanks for your time and response.
>
>
> Best,
>
> Sharif
>
>
> --
> *From:* sumo-user  on behalf of Jakob
> Erdmann 
> *Sent:* Tuesday, June 6, 2023 7:30:18 AM
> *To:* Sumo project User discussions
> *Subject:* Re: [sumo-user] Taxistands
>
> You can define routes that consist of a single edge (either with xml input
> or via traci.route.add. This allows you to insert vehicles on that edge.
> If you predefine the routes in xml you can also add a stop to the route
> and then use traci.vehicle.add( departPos="stop") to optimize the
> initial vehicle position.
>
>
> Am Mo., 5. Juni 2023 um 23:24 Uhr schrieb Sharifullah Asady <
> sharif.as...@tum.de>:
>
>> Hi Jakob,
>>
>>
>> Is there any method to pre load taxis in the parkingareas? I am using the
>> traci.vehicle.add(...), and this either requires a route or randomly insert
>> on an edge. Is it possible to insert the taxi directly in the parkingarea
>> or on a specific edge?
>>
>>
>> Many thanks for your response.
>>
>>
>> Best,
>>
>> Sharif
>> --
>> *From:* sumo-user  on behalf of Jakob
>> Erdmann 
>> *Sent:* Saturday, June 3, 2023 1:34:29 PM
>> *To:* Sumo project User discussions
>> *Subject:* Re: [sumo-user] Taxistands
>>
>> - solution 1: traci.vehicle.getStopParameter(vehID, 0, 'started')  (you
>> can check whether the vehicle is currenlty stopped with vehicle.getStops
>> - solution 2: track the time at which vehicles entered the taxistand with
>> traci.simulation.getParkingStartingVehiclesIDList (then record the time and
>> vehicleID yourself for later reference).
>>
>> Am Sa., 3. Juni 2023 um 00:04 Uhr schrieb Sharifullah Asady <
>> sharif.as...@tum.de>:
>>
>>> Hi Jakob,
>>>
>>> Many thanks, this works perfectly as I wanted. Is there any possibility
>>> to get taxi parking time?
>>>
>>> I am modelling taxis, that are dispatched from taxistands (in my case,
>>> parking areas are defined as taxistands). Now, I need to dispatch the taxi
>>> that has arrived earlier to taxistand or has spent more time parking. I
>>> tried to check if the traci.parkingarea.getVehicleIDs(stopID) could give me
>>> parked taxis according to their parking time but unfortuntely that is not
>>> the case.
>>>
>>> Many thanks and have a great weekend.
>>>
>>> Best,
>>> Sharif
>>> --
>>> *From:* sumo-user  on behalf of Jakob
>>> Erdmann 
>>> *Sent:* Tuesday, May 30, 2023 4:57:30 PM
>>> *To:* Sumo project User discussions
>>> *Subject:* Re: [sumo-user] Taxistands
>>>
>>> The latest development version (starting with v1_17_0-575) contains
>>> experimental support for taxi stands.
>>> See https://sumo.dlr.de/docs/Simulation/Taxi.html#idle_behavior
>>> You can obtain a test case at
>>> https://sumo.dlr.de/extractTest.php?path=sumo/devices/taxi/idling/taxistand/10persons
>>>
>>> regards,
>>> Jakob
>>>
>>> Am Fr., 26. Mai 2023 um 12:09 Uhr schrieb Sharifullah Asady <
>>> sharif.as...@tum.de>:
>>>
>>>> Hello Dear,
>>>>
>>>>
>>>> I want to simulate taxis using SUMO. As we know that taxis have
>>>> specific taxistands to park and wait for customer requests and also after
>>>> dropping the customer they must return back to their taxistand. So, there
>>>> is any possibility to have taxistands.
>>>>
>

Re: [sumo-user] vehicle postion in sumo

2023-06-25 Thread Jakob Erdmann
Depending on the carFollowModel and parameters you can achieve collisions.
if you ignore these (via collision.action none), cars can end up in the
same spot.
The best course of action in to use use sumo-gui to understand the
evolution of these vehicle positions to figure out why they end up in the
same spot.


Am So., 25. Juni 2023 um 16:41 Uhr schrieb Mahima :

> HI,
>
> I have a query regarding vehicles' position in sumo. Can we have multiple
> vehicles at the same position and lane in sumo? We are seeing pos as 7.80
> and speed 0.00 for 3 vehicles at some timestep and wondering why they would
> get the same position.
>
> We are using the following flags
>
>  
> 
>
>
> Thanks,
> Mahima
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Vehicle Count Mismatch Issue:

2023-06-22 Thread Jakob Erdmann
The mismatch is most likely due to an uncalibrated distribution of desired
speeds. See
https://sumo.dlr.de/docs/Definition_of_Vehicles%2C_Vehicle_Types%2C_and_Routes.html#individual_speed_factor
If the section has multiple lanes, than a mismatch in lane changing
behavior calibration could also play a role.
Having  a higher density despite matching insertion flow suggests, implies
that vehicles are driving slower in the simulation.
This implication conflicts with your reported measurement of the simulation
having a higher speed.
This conflict could point to a problem with your methodology of
interpreting data from the simulation (or a problem with the simulation
output itself).

Am Do., 22. Juni 2023 um 12:31 Uhr schrieb Mayank Singh <
mayanksingh.dai...@gmail.com>:

> Respected Sir,
>
> In my simulation scenario, I am inserting the vehicles as per the
> available dataset, along with their respective "depart speed" mentioned in
> the dataset.
> The length of the road segment is 420m in my simulation, as per the
> dataset.
> Now, I am counting the vehicles on my road stretch of 420m every minute
> during the simulation and observing the space-mean speed.
> But this vehicle count does not match the dataset, and the
> space-mean speed is also higher than the dataset. I am not able to figure
> out the reason for this vehicle count and space-mean speed mismatch.
> I have also enclosed the graphs for your reference.
> Kindly help me rectify this issue.
>
>
> Regards,
> Mayank
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Problem with emission model

2023-06-22 Thread Jakob Erdmann
As stated at https://sumo.dlr.de/docs/Models/Emissions/PHEMlight5.html:
"Only two emission classes are included in the public version. Any further
vehicle classes must be licensed from the TU Graz."

Am Do., 22. Juni 2023 um 10:24 Uhr schrieb Florian Schnepf <
florian.schnep...@web.de>:

> Hello everyone,
>
>
> I'm trying to use the heavy trucks in the PHEMlight5 model.
>
> I get the error: emissionClass with name 'PHEMlight5/TT_EUVI_D' doesn't
> exist.
>
> The emission class is defined in the vehicle definition as described in
> the documentation
>
> emissionClass="PHEMlight5/TT_EUVI_D"
>
> I tried also other vehicle categories and some work and some don't
>
>
> Thanks for your help
>
> Regards Florian
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Programs won't run from NetEdit due to spaces in SUMO_HOME

2023-06-20 Thread Jakob Erdmann
In the upcoming release, spaces in SUMO_HOME will be handled automatically (
https://github.com/eclipse/sumo/issues/13458)
As a workaround you can define the whole of SUMO_HOME with quotes:

set SUMO_HOME="path with space"


Am Mo., 19. Juni 2023 um 19:17 Uhr schrieb Doug Frasher :

> In Windows, trying to execute a tool application from NetEdit results in
> an error complaining about the spaces in c:\Program Files (x86)\Eclipse ..
>
> python C:\Program Files (x86)\Eclipse\Sumo/tools/randomTrips.py --net-file
> "C:\Users\dhfra\Sumo\experiment1.net.xml" --route-file
> "C:\Users\dhfra\Sumo\experiment1.rou.xml" starting process...
> python: can't open file 'C:\\Program': [Errno 2] No such file or directory
> process finished
>
> I tried using "" around the space containing text in my definition of
> SUMO_HOME, which changes the error to:
>
> python C:\"Program Files (x86)"\Eclipse\Sumo/tools/randomTrips.py
> --net-file "C:\Users\dhfra\Sumo\experiment1.net.xml" --route-file
> "C:\Users\dhfra\Sumo\experiment1.rou.xml" starting process...
> python: can't open file 'C:\\Program Files
> (x86)\\Eclipse\\Sumo\\"Program': [Errno 22] Invalid argument
> process finished
>
>
> I understand I can manually run this in command prompt by first going to
> the directory where the app is located. I am wondering how to fix this
> problem with spaces in general however.
>
> Searches show that this is an issue that appears to have many possible
> fixes but I can't find a general solution to what I assume is an inherent
> problem.
>
> Thanks!
> Doug
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Save state does not work properly

2023-06-19 Thread Jakob Erdmann
The problem is fixed in the latest development version. You can obtain it
tomorrow at https://sumo.dlr.de/docs/Downloads.php#nightly_snapshots or
next week in the official release of 1.18.

Am Mo., 19. Juni 2023 um 08:33 Uhr schrieb Jakob Erdmann <
namdre.s...@gmail.com>:

> Thank you for the inputs. The bug is now being tracked at
> https://github.com/eclipse/sumo/issues/13449
>
> Am Fr., 9. Juni 2023 um 14:36 Uhr schrieb manos kampitakis <
> mankampita...@gmail.com>:
>
>> Jacob I have attached a mini example of how I save the state. Also, I
>> noticed that there are saved vehicles that have depart time after the saved
>> state duration. For example, in the provided script I run the
>> simulation until 900 sec and I save the state and inside there are
>> vehicles that depart after 900 sec.
>>
>> Best regards,
>> Manos
>>
>> Στις Παρ 9 Ιουν 2023 στις 3:00 μ.μ., ο/η manos kampitakis <
>> mankampita...@gmail.com> έγραψε:
>>
>>> Jacob I have attached a mini example of how I save the state. Also, I
>>> noticed that there are saved vehicles that have depart time after the saved
>>> state duration. For example, in the provided script I run the
>>> simulation until 900 sec and I save the state and inside there are
>>> vehicles that depart after 900 sec.
>>>
>>> Best regards,
>>> Manos
>>>
>>> Στις Πέμ 8 Ιουν 2023 στις 8:17 μ.μ., ο/η Jakob Erdmann <
>>> namdre.s...@gmail.com> έγραψε:
>>>
>>>> In my own test, saving and loading state with routeDistributions is
>>>> working and I have no idea how arrived vehicles and up in your state file.
>>>> If you could provide an example (i.e. sumocfg, traci script, xml input
>>>> files) for reproducing the unusal state file, this would greatly aid in
>>>> fixing the problem.
>>>>
>>>> Am Do., 8. Juni 2023 um 17:33 Uhr schrieb manos kampitakis <
>>>> mankampita...@gmail.com>:
>>>>
>>>>> Hi Jakob,
>>>>>
>>>>> sorry for replying here but I know what is happening. Until the point
>>>>> I run my simulation I have 319 arrived vehicles. As far as I can 
>>>>> understand
>>>>> those vehicles should not be stored in the state file (they also don't 
>>>>> have
>>>>> a trip info device).
>>>>> Moreover there are exactly 319 "broken" routeDistribution tags (the
>>>>> ones that correspond to the arrived vehicles). Because I used SUE (max
>>>>> alternatives = 5) in one distribution I may have 1 or more (until 5)
>>>>> possible
>>>>> routes. I give an example of a broken routeDistribution:
>>>>>
>>>>> 
>>>>>
>>>>> The vehicle with id "7107" is an already arrived vehicle. The vehicle
>>>>> in the route file is depicted as follows:
>>>>>   >>>> fromTaz="in_18" id="7107" toTaz="left8" type="warm_up_car">
>>>>> 
>>>>>   >>>> probability="1.33352733"/>(!7107#0)
>>>>>   >>>> probability="1.32770984"/>(!7107#1)
>>>>>   >>>> probability="1.33876284"/> (!7107#2)
>>>>> 
>>>>>
>>>>> The vehicle during the simulation used the route  edges="D6D7 D7C7
>>>>> C7B7 B7A7 A7A8 A8left8" which corresponds to !7107#2 which is the missing
>>>>> route id from the state xml file. The only ones written are:
>>>>>
>>>>> 
>>>>> 
>>>>>
>>>>> Best regards,
>>>>> Manos
>>>>>
>>>>> Στις Πέμ 8 Ιουν 2023 στις 4:53 μ.μ., ο/η Jakob Erdmann <
>>>>> namdre.s...@gmail.com> έγραψε:
>>>>>
>>>>>> Please open up a ticket at https://github.com/eclipse/sumo/issues/new
>>>>>> and attach minimal input files for replicating your problem (please try 
>>>>>> to
>>>>>> pare down your scenario to the bare minimum).
>>>>>>
>>>>>> Am Do., 8. Juni 2023 um 15:43 Uhr schrieb manos kampitakis <
>>>>>> mankampita...@gmail.com>:
>>>>>>
>>>>>>> Hi all,
>>>>>>>
>>>>>>> I want to run my simulation up to a point (e

Re: [sumo-user] Save state does not work properly

2023-06-19 Thread Jakob Erdmann
Thank you for the inputs. The bug is now being tracked at
https://github.com/eclipse/sumo/issues/13449

Am Fr., 9. Juni 2023 um 14:36 Uhr schrieb manos kampitakis <
mankampita...@gmail.com>:

> Jacob I have attached a mini example of how I save the state. Also, I
> noticed that there are saved vehicles that have depart time after the saved
> state duration. For example, in the provided script I run the
> simulation until 900 sec and I save the state and inside there are
> vehicles that depart after 900 sec.
>
> Best regards,
> Manos
>
> Στις Παρ 9 Ιουν 2023 στις 3:00 μ.μ., ο/η manos kampitakis <
> mankampita...@gmail.com> έγραψε:
>
>> Jacob I have attached a mini example of how I save the state. Also, I
>> noticed that there are saved vehicles that have depart time after the saved
>> state duration. For example, in the provided script I run the
>> simulation until 900 sec and I save the state and inside there are
>> vehicles that depart after 900 sec.
>>
>> Best regards,
>> Manos
>>
>> Στις Πέμ 8 Ιουν 2023 στις 8:17 μ.μ., ο/η Jakob Erdmann <
>> namdre.s...@gmail.com> έγραψε:
>>
>>> In my own test, saving and loading state with routeDistributions is
>>> working and I have no idea how arrived vehicles and up in your state file.
>>> If you could provide an example (i.e. sumocfg, traci script, xml input
>>> files) for reproducing the unusal state file, this would greatly aid in
>>> fixing the problem.
>>>
>>> Am Do., 8. Juni 2023 um 17:33 Uhr schrieb manos kampitakis <
>>> mankampita...@gmail.com>:
>>>
>>>> Hi Jakob,
>>>>
>>>> sorry for replying here but I know what is happening. Until the point I
>>>> run my simulation I have 319 arrived vehicles. As far as I can understand
>>>> those vehicles should not be stored in the state file (they also don't have
>>>> a trip info device).
>>>> Moreover there are exactly 319 "broken" routeDistribution tags (the
>>>> ones that correspond to the arrived vehicles). Because I used SUE (max
>>>> alternatives = 5) in one distribution I may have 1 or more (until 5)
>>>> possible
>>>> routes. I give an example of a broken routeDistribution:
>>>>
>>>> 
>>>>
>>>> The vehicle with id "7107" is an already arrived vehicle. The vehicle
>>>> in the route file is depicted as follows:
>>>>   >>> fromTaz="in_18" id="7107" toTaz="left8" type="warm_up_car">
>>>> 
>>>>   >>> probability="1.33352733"/>(!7107#0)
>>>>   >>> probability="1.32770984"/>(!7107#1)
>>>>   >>> probability="1.33876284"/> (!7107#2)
>>>> 
>>>>
>>>> The vehicle during the simulation used the route  edges="D6D7 D7C7 C7B7
>>>> B7A7 A7A8 A8left8" which corresponds to !7107#2 which is the missing route
>>>> id from the state xml file. The only ones written are:
>>>>
>>>> 
>>>> 
>>>>
>>>> Best regards,
>>>> Manos
>>>>
>>>> Στις Πέμ 8 Ιουν 2023 στις 4:53 μ.μ., ο/η Jakob Erdmann <
>>>> namdre.s...@gmail.com> έγραψε:
>>>>
>>>>> Please open up a ticket at https://github.com/eclipse/sumo/issues/new
>>>>> and attach minimal input files for replicating your problem (please try to
>>>>> pare down your scenario to the bare minimum).
>>>>>
>>>>> Am Do., 8. Juni 2023 um 15:43 Uhr schrieb manos kampitakis <
>>>>> mankampita...@gmail.com>:
>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> I want to run my simulation up to a point (e.g. 2700s) and then save
>>>>>> this state (using traci.simulation.saveState()). It seems that the 
>>>>>> function
>>>>>> does not work properly. For example, when I am trying to load the saved
>>>>>> state I get the following error message:
>>>>>> Error: Unknown route '!#_1532#0' in distribution '!#_1532'. (this
>>>>>> happens many times inside the saved state xml)
>>>>>> The paths are generated using SUE (max alternatives = 5), teleport is
>>>>>> deactivated and during the run, until the point I run my simulation in
>>>>>> order to save it, 

Re: [sumo-user] Mismatch in Traffic Density in SUMO:

2023-06-19 Thread Jakob Erdmann
I'm afraid I don't even understand your requirement.
The statement "so that it won't affect ... density" is a contradiction to
your earlier problem of "traffic density does not match"
Also, "density" is intrinsically linked to the number of vehicles in the
scenario.
Doing any change to vehicle insertion (the way a scenario is "populated")
will affect density.
Thus there is no feasible advice to give on insertion that won't affect
density.


Am So., 18. Juni 2023 um 10:14 Uhr schrieb Mayank Singh <
mayanksingh.dai...@gmail.com>:

> Respected Sir,
> In my simulation scenario, there is no presence of leading vehicles and
> due to that speed remains high throughout the simulation, which is also
> visible in attached results.
>
> Therefore, kindly suggest me that how can I populate the traffic in real
> scenario, so that it won't affect my traffic parameters like speed and
> density while doing the simulation.
>
> Regards,
> Mayank
>
> On Fri, 2 Jun, 2023, 6:05 pm Jakob Erdmann,  wrote:
>
>> You can lower the simulation density by increasing the values of 'tau'
>> and 'minGap'. Note that it might be useful to draw these values from a
>> distribution rather than having the same value for the whole fleet (
>> https://sumo.dlr.de/docs/Tools/Misc.html#createvehtypedistributionpy)
>>
>> However, you also need to make sure that you are picking the correct data
>> from the simulation as this might also be responsible for a mismatch
>> between the curves. Here are a few comments:
>> - What exactly are these plots showing?
>> - Your y axis only mentions "vehicle count" which is neither a unit for
>> density (due to lack of spatial component) nor for flow (due to lack of
>> time component).
>>  - Likewise, the speed values requires some explanation. Is this averaged
>> at a cross section (time mean speed) or over an area (space mean speed) -
>> the question applies both to the real world data as well as the simulation
>> data
>> - How was the real world dataset derived and what values (output files)
>> are you taking from the simulation?
>> - The fit of the speeds already suggests some systematic error (possibly
>> in the distribution of desired speeds) but also, the shapes of the speed
>> curves are so similar as to suggest some form of calibration. Whatever you
>> have been doing with the speeds is probably relevant to understanding the
>> density mismatch.
>>
>>
>>
>>
>> Am Fr., 2. Juni 2023 um 14:03 Uhr schrieb Mayank Singh <
>> mayanksingh.dai...@gmail.com>:
>>
>>> Respected Sir,
>>> In my scenario, traffic flow matches a given dataset.
>>> But the traffic density does not match correctly.
>>> So, what are the parameters that we should consider or tune while doing
>>> the simulation? So that traffic density also gets aligned.
>>> I have attached my graphs of traffic flow, traffic density, and traffic
>>> speed for your reference.
>>>
>>>
>>> Regards,
>>> Mayank
>>> ___
>>> sumo-user mailing list
>>> sumo-user@eclipse.org
>>> To unsubscribe from this list, visit
>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>
>> ___
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] help understanding how to repeat car insertion on a route

2023-06-18 Thread Jakob Erdmann
the 'repeat' value of a route is for circular routes (the edges repeat).
For repated vehicles, you need to define a flow (in vehicle mode). You can
read about the concept here:
https://sumo.dlr.de/docs/Definition_of_Vehicles%2C_Vehicle_Types%2C_and_Routes.html#repeated_vehicles_flows
There are also tutorials/videos on flows:
https://sumo.dlr.de/docs/Tutorials/index.html#sumo_user_conference_tutorials

Am Mo., 19. Juni 2023 um 06:47 Uhr schrieb Doug Frasher :

> Hello,
> I simply want multiple cars to enter the simulation one after the other at
> some interval.
> In the route dialog, in inpsector mode, If I try to set the value of
> repeat to a positive integer, and use a cycle of say a few seconds, I get
> this error:
> Error: Disconnected route 'r_0' when repeating.
> What am I misunderstanding here?
>
> Thanks in advance for any help or suggestions.
> Doug
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Generating the same scenario simulation from the vehicles' initial states

2023-06-17 Thread Jakob Erdmann
1. yes ()  or passed as option to traci.start
2. traci.load is impacted by a regression in versions 1.16 and 1.17. Please
updated to the dev version:
https://sumo.dlr.de/docs/Downloads.php#nightly_snapshots


Am Fr., 16. Juni 2023 um 17:01 Uhr schrieb Kherroubi Zineelabidine <
znbd.kherro...@gmail.com>:

> I tried the option of using the built-in facilities for restoring
> simulation state including RNG:
> https://sumo.dlr.de/docs/Simulation/SaveAndLoad.html
>
> https://sumo.dlr.de/docs/Simulation/SaveAndLoad.html#random_number_generators_rng
>
> I successfully saved the state of the original simulation using traci.
> simulation.saveState("Test_state.xml")
> However, when I tried to reproduce this state in a new simulation by
> starting SUMO traci.start(["sumo-gui","-c","Senario.sumocfg"])  then
> loading the saved state traci.simulation.loadState("Test_state.xml"),  I
> got error* traci.exceptions.FatalTraCIError: connection closed by SUMO.*
>
> I have two questions:
> *1-* First, how to set option --save-state.rng to save the state of the
> random number generator *?? * should it be set in the *.sumocfg* file of
> the original simulation *?* What is the syntax that should be used for
> this option *?*
> *2- *how to run the new SUMO simulation and load the saved state without
> having the error *traci.exceptions.FatalTraCIError: connection closed by
> SUMO ?*
>
>
> Best regards,
> **
> *Zine el abidine KHERROUBI*
>
>
> Le ven. 16 juin 2023 à 11:26, Jakob Erdmann  a
> écrit :
>
>> Many aspects of the simulation are subject to stochasticity, controlled
>> by RNGs and the initial random seed (
>> https://sumo.dlr.de/docs/Simulation/Randomness.html).
>> After running the simulation for some time, the RNG is in a particular
>> configuration and you can only reproduce that situation by also restoring
>> this RNG configuration.
>> Here are two possible solutions:
>> 1) Use the the initial setup as you are doing now but sample a larger
>> configuration space by running with different values for the --seed option
>> until you find a situation of interest (which may not be the exact
>> situation you had originally but nevertheless suitable to your purpose).
>> 2) Use the built-in facilities for restoring simulation state including
>> RNG:
>> https://sumo.dlr.de/docs/Simulation/SaveAndLoad.html
>>
>> https://sumo.dlr.de/docs/Simulation/SaveAndLoad.html#random_number_generators_rng
>>
>> regards,
>> Jakob
>>
>> Am Fr., 16. Juni 2023 um 08:58 Uhr schrieb Kherroubi Zineelabidine <
>> znbd.kherro...@gmail.com>:
>>
>>> Hi all,
>>>
>>> I have a simulation of an accident scenario that occurs at the 16000th
>>> simulation time-step. I would like to generate this same accident scenario
>>> (same geometry, same vehicles, same vehicles speed behaviors and
>>> trajectories) in a new simulation (at the beginning time step instead of
>>> waiting until 16000 as in the original simulation).
>>> For that, I saved all the vehicles' states in the original simulation of
>>> accident:* Position, speed, acceleration, type, angle, speed_factor,
>>> speed_deviation, lane_id, lane_position*.
>>>
>>> In the new simulation, I added the vehicles from the accident scenario:
>>> *1- traci.vehicle.add(vehID ,routeID ,departSpeed,typeID, departPos=0)*
>>>
>>> then, for each vehicle , and before executing a simulation step, I
>>> adjusted the state of vehicles as in the original scenario accident:
>>>
>>>
>>>
>>> *2- traci.vehicle.setAccel(vehID ,accel)3-
>>> traci.vehicle.setSpeed(vehID,speed)4-
>>> traci.vehicle.setSpeedFactor(vehID,factor)5-
>>> traci.vehicle.moveTo(vehID,laneID,pos) *
>>>
>>> There is only one vehicle that I control through traci using the same
>>> rule-based control function as in the accident scenario.
>>>
>>> However when I run this new simulation, no accident happen and the
>>> trajectories of vehicles are different from the original accident scenario. 
>>> I
>>> thought that I included all the information to reproduce the original
>>> accident scenario, especially the *vehicle type* and *speedFactor *(where
>>> I forced *speedFactor Deviation *to 0).
>>>
>>> *Why is the new scenario different from the original ?*
>>> *How to reproduce the same scenario using initial vehicle states ?*
>>>
>>> Best regards,
>>> *

Re: [sumo-user] Generating the same scenario simulation from the vehicles' initial states

2023-06-16 Thread Jakob Erdmann
Many aspects of the simulation are subject to stochasticity, controlled by
RNGs and the initial random seed (
https://sumo.dlr.de/docs/Simulation/Randomness.html).
After running the simulation for some time, the RNG is in a particular
configuration and you can only reproduce that situation by also restoring
this RNG configuration.
Here are two possible solutions:
1) Use the the initial setup as you are doing now but sample a larger
configuration space by running with different values for the --seed option
until you find a situation of interest (which may not be the exact
situation you had originally but nevertheless suitable to your purpose).
2) Use the built-in facilities for restoring simulation state including
RNG:
https://sumo.dlr.de/docs/Simulation/SaveAndLoad.html
https://sumo.dlr.de/docs/Simulation/SaveAndLoad.html#random_number_generators_rng

regards,
Jakob

Am Fr., 16. Juni 2023 um 08:58 Uhr schrieb Kherroubi Zineelabidine <
znbd.kherro...@gmail.com>:

> Hi all,
>
> I have a simulation of an accident scenario that occurs at the 16000th
> simulation time-step. I would like to generate this same accident scenario
> (same geometry, same vehicles, same vehicles speed behaviors and
> trajectories) in a new simulation (at the beginning time step instead of
> waiting until 16000 as in the original simulation).
> For that, I saved all the vehicles' states in the original simulation of
> accident:* Position, speed, acceleration, type, angle, speed_factor,
> speed_deviation, lane_id, lane_position*.
>
> In the new simulation, I added the vehicles from the accident scenario:
> *1- traci.vehicle.add(vehID ,routeID ,departSpeed,typeID, departPos=0)*
>
> then, for each vehicle , and before executing a simulation step, I
> adjusted the state of vehicles as in the original scenario accident:
>
>
>
> *2- traci.vehicle.setAccel(vehID ,accel)3-
> traci.vehicle.setSpeed(vehID,speed)4-
> traci.vehicle.setSpeedFactor(vehID,factor)5-
> traci.vehicle.moveTo(vehID,laneID,pos) *
>
> There is only one vehicle that I control through traci using the same
> rule-based control function as in the accident scenario.
>
> However when I run this new simulation, no accident happen and the
> trajectories of vehicles are different from the original accident scenario. I
> thought that I included all the information to reproduce the original
> accident scenario, especially the *vehicle type* and *speedFactor *(where
> I forced *speedFactor Deviation *to 0).
>
> *Why is the new scenario different from the original ?*
> *How to reproduce the same scenario using initial vehicle states ?*
>
> Best regards,
> **
>
> *Zine el abidine KHERROUBI*
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Simulation Random

2023-06-10 Thread Jakob Erdmann
Increasing the number of runs is the best way to get meaningful averages
out of a stochastic model. Fortunately, distinct runs can easiliy be run in
parallel. The tool runSeeds.py makes this easy for you:
https://sumo.dlr.de/docs/Tools/Misc.html#runseedspy


Am Sa., 10. Juni 2023 um 12:56 Uhr schrieb dvir n :

>
> Dear users,
>
>
>
> I am trying to examine the effect of different VSL parameter values on
> vehicles' average travel time.
>
>
>
> For each set of values, I do a check that includes 200 simulation runs
> while using “--random” command. For each run, I calculate the average
> travel time for all the vehicles in the simulation and then calculate the
> total average of the 200 runs.
>
>
>
> Unfortunately, I recognized that even without changing the set of values,
> the total average changes till 2.5% between different checks. That fact
> makes it impossible to compare the effect of different set of values as I
> don’t know if a decrease in travel time was achieved due to better
> parameter values choice or just due to the random. What can be the solution
> for that? Increasing the amount of runs to 1000 for example would require a
> much longer time for each check (as each run takes around 1 min)
>
>
>
> Thanks
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] random trips with subintervals

2023-06-09 Thread Jakob Erdmann
The tool is working as expected but the input parameters are not useful.
Now you can get a warning: https://github.com/eclipse/sumo/issues/13404
(the insertion probability of 1 / p / binomial should be lower than 1)

Am Fr., 9. Juni 2023 um 14:40 Uhr schrieb Florian Schnepf <
florian.schnep...@web.de>:

> Dear all,
>
> I try to generate random trips with
>
>- subinterval 1 and 0.75
>- subinterval 0.5 and 0.25
>- binomial distribution 1
>- binomial distribution 10
>
> What I don't understand is, why the combination of *p 0.5 0.25 with
> binomial 1* and *p 1 0.75 with binomial 1 *generates the exact same
> files.
>
> As it seems, both files have a period of 1 over the whole time.
>
> I attached both files
>
> Thanks in advance
>
> Regards
> Florian
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] (no subject)

2023-06-09 Thread Jakob Erdmann
run with:
--statistic-output stats.xml --tripinfo-output tripinfos.xml
--device.emissions.probability 1

- almost all the average values you want are in statistic-output (see
https://sumo.dlr.de/docs/Simulation/Output/StatisticOutput.html)
- you can get the average fuel/electricity consumption with
sumo/tools/output/attributeStats.py tripinfos.xml -e emissions -a
fuel_abs,electricity_abs



Am Fr., 9. Juni 2023 um 15:17 Uhr schrieb :

> Hi all,
>
>
>
> I’m looking for the most efficient way to get the following statistics:
>
>- the average time taken for a vehicle to complete its route,
>- the average distance travelled for a vehicle to complete its route,
>- the average amount of time a vehicle spent queuing while traversing
>its route,
>- and the average energy consumed for each vehicle to complete their
>route,
>
> of all vehicles that completed their routes during the simulation.
>
>
>
> I could get this information from the xml output files, but they take up a
> lot of space and that adds a lot of processing time.
>
>
>
> Any ideas?
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Save state does not work properly

2023-06-08 Thread Jakob Erdmann
In my own test, saving and loading state with routeDistributions is working
and I have no idea how arrived vehicles and up in your state file.
If you could provide an example (i.e. sumocfg, traci script, xml input
files) for reproducing the unusal state file, this would greatly aid in
fixing the problem.

Am Do., 8. Juni 2023 um 17:33 Uhr schrieb manos kampitakis <
mankampita...@gmail.com>:

> Hi Jakob,
>
> sorry for replying here but I know what is happening. Until the point I
> run my simulation I have 319 arrived vehicles. As far as I can understand
> those vehicles should not be stored in the state file (they also don't have
> a trip info device).
> Moreover there are exactly 319 "broken" routeDistribution tags (the ones
> that correspond to the arrived vehicles). Because I used SUE (max
> alternatives = 5) in one distribution I may have 1 or more (until 5)
> possible
> routes. I give an example of a broken routeDistribution:
>
>  probabilities="1.33 1.33 1.34"/>
>
> The vehicle with id "7107" is an already arrived vehicle. The vehicle in
> the route file is depicted as follows:
>fromTaz="in_18" id="7107" toTaz="left8" type="warm_up_car">
> 
>probability="1.33352733"/>(!7107#0)
>probability="1.32770984"/>(!7107#1)
>probability="1.33876284"/> (!7107#2)
> 
>
> The vehicle during the simulation used the route  edges="D6D7 D7C7 C7B7
> B7A7 A7A8 A8left8" which corresponds to !7107#2 which is the missing route
> id from the state xml file. The only ones written are:
>
> 
> 
>
> Best regards,
> Manos
>
> Στις Πέμ 8 Ιουν 2023 στις 4:53 μ.μ., ο/η Jakob Erdmann <
> namdre.s...@gmail.com> έγραψε:
>
>> Please open up a ticket at https://github.com/eclipse/sumo/issues/new
>> and attach minimal input files for replicating your problem (please try to
>> pare down your scenario to the bare minimum).
>>
>> Am Do., 8. Juni 2023 um 15:43 Uhr schrieb manos kampitakis <
>> mankampita...@gmail.com>:
>>
>>> Hi all,
>>>
>>> I want to run my simulation up to a point (e.g. 2700s) and then save
>>> this state (using traci.simulation.saveState()). It seems that the function
>>> does not work properly. For example, when I am trying to load the saved
>>> state I get the following error message:
>>> Error: Unknown route '!#_1532#0' in distribution '!#_1532'. (this
>>> happens many times inside the saved state xml)
>>> The paths are generated using SUE (max alternatives = 5), teleport is
>>> deactivated and during the run, until the point I run my simulation in
>>> order to save it, I get no error whatsoever from traci.
>>>
>>> Best regards,
>>> Manos
>>> ___
>>> sumo-user mailing list
>>> sumo-user@eclipse.org
>>> To unsubscribe from this list, visit
>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>
>> ___
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Save state does not work properly

2023-06-08 Thread Jakob Erdmann
Please open up a ticket at https://github.com/eclipse/sumo/issues/new and
attach minimal input files for replicating your problem (please try to pare
down your scenario to the bare minimum).

Am Do., 8. Juni 2023 um 15:43 Uhr schrieb manos kampitakis <
mankampita...@gmail.com>:

> Hi all,
>
> I want to run my simulation up to a point (e.g. 2700s) and then save this
> state (using traci.simulation.saveState()). It seems that the function does
> not work properly. For example, when I am trying to load the saved state I
> get the following error message:
> Error: Unknown route '!#_1532#0' in distribution '!#_1532'. (this happens
> many times inside the saved state xml)
> The paths are generated using SUE (max alternatives = 5), teleport is
> deactivated and during the run, until the point I run my simulation in
> order to save it, I get no error whatsoever from traci.
>
> Best regards,
> Manos
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Units of lcStrategic, lcLookaheadLeft, lcAssertive, lcSpeedGain

2023-06-08 Thread Jakob Erdmann
1. there are different levels of lookahead distance:
  - the maximum considered distance es defined in
https://github.com/eclipse/sumo/blob/de92290f118f38780aaf9b809a415ef981779b50/src/microsim/MSVehicle.cpp#L5787-L5848
  - a dynamic distance that is being considered in the laneChangeModel
which is computed based on the past and present speed of the vehicle as
well as congestion. lcStrategic is applied to this second value. This
distance (laDist) estimates how much space is needed for a lane change.

There are a number of special cases (if the ego vehicle needs to stop in
the near future or if another vehice is stopped on the current lane),
so to calculate either value you need to replicate the sumo code. There is
no shortcut.

2. see above. The values  lcAssertive and lcSpeedGain have no impact on the
lookahead
3. No. You can active the debug macro DEBUG_WANTS_CHANGE to get this as
command line output for selected vehicles.  You could also adapt the code
in MSLCM_LC2013::getParameter to make additional values of the internal
state accessible via TraCI:
https://github.com/eclipse/sumo/blob/a39499a3569d6239b3beec1a945c7d6042a29c9f/src/microsim/lcmodels/MSLCM_LC2013.cpp#L2099-L2115

Am Mo., 5. Juni 2023 um 21:04 Uhr schrieb Soumya Sharma via sumo-user <
sumo-user@eclipse.org>:

> Sorry for the multiple emails.
>
> If all these parameters are factors:
> 1. How can I calculate the look-ahead distance of a vehicle type?
> 2. how can I calculate the updated lookahead distance, when I change
> parameters like lcStrategic, lcLookaheadLeft, lcAssertive, and lcSpeedGain?
> 3. Is there a parameter that I can output to get the look-ahead distance
> of vehicles in simulation, so I can track what changes occur as a result of
> changing values of parameters mentioned in 2?
>
> Thank you.
>
> On Mon, Jun 5, 2023 at 2:36 PM Soumya Sharma  wrote:
>
>> Thank you.
>> Could you provide a little context of what this code, specifically those
>> lines are doing?
>>
>> If I change lcStrategic from 1000 to 500, or 1500- what are some effects
>> that I can expect?
>> I have attached a set of files that I am using for your reference, I only
>> change lcStrategic values in it and compare the results.
>>
>>
>> On Mon, Jun 5, 2023 at 10:54 AM Jakob Erdmann 
>> wrote:
>>
>>> see
>>> https://github.com/eclipse/sumo/blob/de92290f118f38780aaf9b809a415ef981779b50/src/microsim/MSVehicle.cpp#L5787-L5848
>>>
>>> Am Mo., 5. Juni 2023 um 16:24 Uhr schrieb Soumya Sharma via sumo-user <
>>> sumo-user@eclipse.org>:
>>>
>>>> Hi Jakob,
>>>> Thanks for the information, that is very helpful.
>>>>
>>>> Also, in one of your previous emails, you mentioned:
>>>> "The default look-ahead distance for strategic decision has a maximum
>>>> range of about 3000m. You can reduce this distance by setting vType
>>>> attribute 'lcStrategic' to a value in [0, 1[. "
>>>>
>>>> Where does this 3000m distance come from? is it the same as laDist? and
>>>> where can I find these default values and the code corresponding to
>>>> defaults?
>>>> My goal is to understand how the look-ahead distance of a vehicle
>>>> changes with changing parameters like "lcStrategic" and "lcLookaheadLeft",
>>>> "lcAssertive" and "lcSpeedGain".
>>>>
>>>> Thanks!
>>>>
>>>> On Mon, Jun 5, 2023 at 7:57 AM Jakob Erdmann 
>>>> wrote:
>>>>
>>>>> - All these attributes are factors and thus unitless
>>>>> - in the laDist computation, the value of LOOK_FORWARD is the time
>>>>> (10s) which is then scaled
>>>>>
>>>>>
>>>>> Am So., 4. Juni 2023 um 04:24 Uhr schrieb Soumya Sharma via sumo-user <
>>>>> sumo-user@eclipse.org>:
>>>>>
>>>>>> Hello,
>>>>>> I am trying to conduct a sensitivity analysis of car-following and
>>>>>> lane-changing parameters in SUMO for hypothetical freeway segments (basic
>>>>>> and weaving). I tried changing headway values (car-following) and
>>>>>> lcStrategic values (lane-changing) for a basic segment. I used 
>>>>>> lcStrategic
>>>>>> values of 500, 1000, and 1500 for trucks in simulations (length = 
>>>>>> 15.25m).
>>>>>> My trucks are using the CACC model.
>>>>>> The two metrics I am interested in are the travel rates (secs/ mi) by
>>>>>> vehicle type and the number of lane changes per v

Re: [sumo-user] Different headways

2023-06-07 Thread Jakob Erdmann
Thank you for the careful investigation!
The problem is now fixed in the dev version:
https://github.com/eclipse/sumo/issues/13384


Am Di., 6. Juni 2023 um 17:15 Uhr schrieb Stefano Bonasera <
stefano.bonas...@gmail.com>:

> Thank you for the answer.
>
> After leaving this problem for a few months I had to recently get back at
> it and it is still unsolved. However, I found out that:
> 1) The headway problem at the moment of loading a saved state only happens
> for vehicles of type "rl"
> 2) The 'rl' vehicle is added to the simulation via the self.k.vehicle.add
> command, calling the kernel_api.vehicle.addFull inside
> 3) The other vehicles (of type "other") are added with an inflow - from
> the saved state
>  departSpeed="25.64" probability="0.410184827871"
> end="2." route="routehwy_rear_0" done="11" index="11"/>
> 4) Looking at the saved state, all vehicles of type "other" have indeed
> the type listed, while the same does not happen for the rl vehicle -
> example:
>  departSpeed="25.64" color="100,100,100" route="routehwy_rear_0" distance="0
> 0" speedFactor="1.0357" state="2615 16300 0 5.10 0 0.85 20100 0 0"
> pos="83.334363758822 78.334363758822 1.944504118608" speed="19.445041186084
> 19.456978560735" angle="90." posLat="0."
> waitingTime="10 0"/>
>  departSpeed="20.00" color="red" route="routeramp_0" distance="379.59 0"
> speedFactor="1.0267" state="29 100 1 0.00 0 4.81 20100 0 0"
> pos="20.4100 15.4100 2." speed="20.
> 20." angle="90." posLat="0."
> waitingTime="10 0"/>
>  departSpeed="25.64" probability="0.410184827871"
> end="2." route="routehwy_rear_0" done="11" index="11"/>
>
> I tried to manually modify the saved state file (after saving it, but
> before loading it), adding the correct type to the "rl_0", as
>  and after loading, the correct headway appears within the simulation -> it
> seems this is the problem.
>
> From the add.xml file, everything seems ok:
> 
> http://www.w3.org/2001/XMLSchema-instance;
> xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/additional_file.xsd
> ">
>minGap="2.0" maxSpeed="35.0" speedFactor="1.0" speedDev="0.1"
> impatience="0.5" carFollowModel="IDM" laneChangeModel="SL2015"
> lcStrategic="1.0" lcCooperative="1.0" lcSpeedGain="1.0" lcKeepRight="1.0"
> lcLookaheadLeft="2.0" lcSpeedGainRight="1.0" lcSublane="1.0" lcPushy="1"
> lcPushyGap="0" lcAssertive="1" lcAccelLat="10"/>
>minGap="2.0" maxSpeed="35.0" speedFactor="1.0" speedDev="0.1"
> impatience="0.5" carFollowModel="IDM" laneChangeModel="SL2015"
> lcStrategic="1.0" lcCooperative="1.0" lcSpeedGain="1.0" lcKeepRight="1.0"
> lcLookaheadLeft="2.0" lcSpeedGainRight="1.0" lcSublane="1.0" lcPushy="1"
> lcPushyGap="0" lcAssertive="1" lcAccelLat="10"/>
> 
>
> It seems to me the solution is to have the type specified also for the
> 'rl' vehicle in the saved state, but I could not find a nice way to have it
> besides writing it in the saved state after the saveState command.
> Do you have a nicer solution to have the state specified naturally right
> after the saveState command?
>
> Thank you in advance for your time and answer.
> Stefano
>
>
> On Sun, Apr 2, 2023 at 7:37 AM Jakob Erdmann 
> wrote:
>
>> > Please let me know if I am missing anything.
>> Reproducing the example requires the sumocfg (sumo.cfg in your log) and
>> all files that are referenced within the sumocfg.
>>
>> > although I do .subscribe() and .subscribeLeader() for the rl vehicle,
>> these are not showing in the log file.
>> The following occurs in your log file:
>>
>> traci.vehicle.subscribe('rl_0', [82, 86, 80, 64, 50, 84, 66, 67, 177,
>> 101, 132])
>> traci.vehicle.subscribeLeader('rl_0', 2000)
>> traci.vehicle.subscribe('rl_0', (104,), 0, 2147483647, {104: ('d', 2000)})
>> traci.vehicle.unsubscribe('rl_0')
>> 

Re: [sumo-user] Add vehicles to simulation

2023-06-07 Thread Jakob Erdmann
It may be more appropriate to query the Flow devs on this. However, if you
are missing vehicles in the simulation, you could check for
https://sumo.dlr.de/docs/Simulation/VehicleInsertion.html#delayed_departure

Am Di., 6. Juni 2023 um 20:49 Uhr schrieb Stefano Bonasera <
stefano.bonas...@gmail.com>:

> Hi there,
>
> I am trying to randomly place a finite (and specific) set of vehicles in
> certain parts of a map network in SUMO using Flow along with the Traci
> simulator but... without using Flow's inflows() objects.
> When running the flow.envs.base.reset()  to reset the sim with a new
> randomized configuration, one of the vehicles added is missing.
>
> Let network_object = flow.networks.Network() derived from Flow. I can
> confirm it has the correct ID list and initial state configuration (ID,
> lane_ID, position, velocity) in its fields. When calling Flow reset(),
> running self.k.kernel_api.vehicle.getIDList() confirms there are missing
> vehicles relative to network_object.vehicles.ids. After detecting this
> discrepancy, Flow errors out.
>
> The error message form is:
>
>   File "~/flow_env_with_status.py", line N, in reset
> return super().reset()
>   File "/tmp/ucrl/flow/envs/base.py", line M, in reset
> raise FatalFlowError(msg=msg)
> flow.utils.exceptions.FatalFlowError:
> Not enough vehicles have spawned! Bad start?
> Missing vehicles / initial state:
> - vehicle_X : ('vehicle_type_X', 'custom_road_name', lane_id, position,
> velocity)
> A hack that seems to help is adding the following code inside of the
> missing vehicles check before returning the observation vector to the
> simulation environment:
>
>   # check to make sure all vehicles have been spawned
>   if len(network_object.initial_ids) >
> len(self.k.kernel_api.vehicle.getIDList()):
>   missing_vehicles = list(set(self.initial_ids) - set(initial_ids))
>   for mv in missing_vehicles:
>   self.k.kernel_api.vehicle.remove(mv)  # FIXME: hack
>   type_id, edge, lane_index, pos, speed = self.initial_state[mv]
>   self.k.vehicle.add(
>   veh_id=mv,
>   type_id=type_id,
>   edge=edge,
>   lane=lane_index,
>   pos=pos,
>   speed=speed)
>   self.k.simulation.simulation_step()
>   # update the information in each kernel to match the current
> state
>   self.k.update(reset=True)
>
> I am not sure why the missing vehicle was not added before reaching this
> part of the code. Is this a problem that others have seen before? Any
> suggested fixes if we do not want to use Inflows()?
>
> Thanks as always for your time and your help!
>
> Stefano
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Importing Elevation Data from OSM Data

2023-06-07 Thread Jakob Erdmann
OSM data does not support attribute 'ele' in nodes. It must instead by
provided as a tag:



  

see wiki.openstreetmap.org/wiki/Node

Am Di., 6. Juni 2023 um 21:34 Uhr schrieb ryota ishida :

> Dear Jakob
>
> Thanks for the reply.
> I will send you the OSM data and the data converted using netconvert.
> When using netconvert, I have given the following options.
>
> >>netconvert --osm-files OSMdata.osm -o output.net.xml --speed-in-kmh
> --osm.elevation --junctions.join --tls.guess --tls.guess.threshold 39.0
> --tls.guess-signals --lefthand --sidewalks.guess.from-permissions
> --crossings.guess
>
> Best regards
>
> 2023年6月7日(水) 3:39 Jakob Erdmann :
>
>> This is supposed to be working (and in fact does work in our test). Can
>> you provide a minimal osm sample file to replicate your problem?
>>
>> Am Di., 6. Juni 2023 um 20:34 Uhr schrieb ryota ishida <
>> ishira...@gmail.com>:
>>
>>> Dear all
>>>
>>> I want to import elevation data from the following OSM node data.
>>>
>>> >>>> visible="true" timestamp="**"/>  ...
>>>
>>> However, even if I use "--osm.elevation" in netconvert, z-coordinates
>>> are not output as shown below.
>>>
>>> >>>> incLanes="103459_0 ...
>>>
>>> Is there a correct way to import z-coordinates from OSM data to SUMO
>>> nodes?
>>>
>>> Best regards
>>> ___
>>> sumo-user mailing list
>>> sumo-user@eclipse.org
>>> To unsubscribe from this list, visit
>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>
>> ___
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Importing Elevation Data from OSM Data

2023-06-06 Thread Jakob Erdmann
This is supposed to be working (and in fact does work in our test). Can you
provide a minimal osm sample file to replicate your problem?

Am Di., 6. Juni 2023 um 20:34 Uhr schrieb ryota ishida :

> Dear all
>
> I want to import elevation data from the following OSM node data.
>
> >> visible="true" timestamp="**"/>  ...
>
> However, even if I use "--osm.elevation" in netconvert, z-coordinates are
> not output as shown below.
>
> >> incLanes="103459_0 ...
>
> Is there a correct way to import z-coordinates from OSM data to SUMO nodes?
>
> Best regards
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Taxistands

2023-06-05 Thread Jakob Erdmann
You can define routes that consist of a single edge (either with xml input
or via traci.route.add. This allows you to insert vehicles on that edge.
If you predefine the routes in xml you can also add a stop to the route and
then use traci.vehicle.add( departPos="stop") to optimize the initial
vehicle position.


Am Mo., 5. Juni 2023 um 23:24 Uhr schrieb Sharifullah Asady <
sharif.as...@tum.de>:

> Hi Jakob,
>
>
> Is there any method to pre load taxis in the parkingareas? I am using the
> traci.vehicle.add(...), and this either requires a route or randomly insert
> on an edge. Is it possible to insert the taxi directly in the parkingarea
> or on a specific edge?
>
>
> Many thanks for your response.
>
>
> Best,
>
> Sharif
> ----------
> *From:* sumo-user  on behalf of Jakob
> Erdmann 
> *Sent:* Saturday, June 3, 2023 1:34:29 PM
> *To:* Sumo project User discussions
> *Subject:* Re: [sumo-user] Taxistands
>
> - solution 1: traci.vehicle.getStopParameter(vehID, 0, 'started')  (you
> can check whether the vehicle is currenlty stopped with vehicle.getStops
> - solution 2: track the time at which vehicles entered the taxistand with
> traci.simulation.getParkingStartingVehiclesIDList (then record the time and
> vehicleID yourself for later reference).
>
> Am Sa., 3. Juni 2023 um 00:04 Uhr schrieb Sharifullah Asady <
> sharif.as...@tum.de>:
>
>> Hi Jakob,
>>
>> Many thanks, this works perfectly as I wanted. Is there any possibility
>> to get taxi parking time?
>>
>> I am modelling taxis, that are dispatched from taxistands (in my case,
>> parking areas are defined as taxistands). Now, I need to dispatch the taxi
>> that has arrived earlier to taxistand or has spent more time parking. I
>> tried to check if the traci.parkingarea.getVehicleIDs(stopID) could give me
>> parked taxis according to their parking time but unfortuntely that is not
>> the case.
>>
>> Many thanks and have a great weekend.
>>
>> Best,
>> Sharif
>> --
>> *From:* sumo-user  on behalf of Jakob
>> Erdmann 
>> *Sent:* Tuesday, May 30, 2023 4:57:30 PM
>> *To:* Sumo project User discussions
>> *Subject:* Re: [sumo-user] Taxistands
>>
>> The latest development version (starting with v1_17_0-575) contains
>> experimental support for taxi stands.
>> See https://sumo.dlr.de/docs/Simulation/Taxi.html#idle_behavior
>> You can obtain a test case at
>> https://sumo.dlr.de/extractTest.php?path=sumo/devices/taxi/idling/taxistand/10persons
>>
>> regards,
>> Jakob
>>
>> Am Fr., 26. Mai 2023 um 12:09 Uhr schrieb Sharifullah Asady <
>> sharif.as...@tum.de>:
>>
>>> Hello Dear,
>>>
>>>
>>> I want to simulate taxis using SUMO. As we know that taxis have specific
>>> taxistands to park and wait for customer requests and also after dropping
>>> the customer they must return back to their taxistand. So, there is any
>>> possibility to have taxistands.
>>>
>>>
>>> Maybe it is possible to use ParkingAreas as taxistands but then how
>>> guide taxis to go to the parkingareas after they drop the customer and also
>>> currently, we have to define a duration or time that the vehicle should
>>> stay in the parking area but for taxis we don't know the time as it is
>>> dependent on requests arrival.
>>>
>>>
>>> Many thanks for the suggestions and feedback.
>>>
>>>
>>> best regards,
>>>
>>> Sharif
>>> ___
>>> sumo-user mailing list
>>> sumo-user@eclipse.org
>>> To unsubscribe from this list, visit
>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>
>> ___
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Question

2023-06-05 Thread Jakob Erdmann
This years SUMO User conference included a publication on that topic.
Unfortunately, we cannot put the proceedings online yet but I will send you
the paper as a direct message.


Am Mo., 5. Juni 2023 um 16:22 Uhr schrieb maziyar layegh <
maziyar.layegh1...@gmail.com>:

> To whom it may concern
>
> I hope this email finds you well. As a PhD student at Concordia
> University, I am currently working on my thesis, which focuses on
> integrating SUMO (Simulation of Urban MObility) with Unreal Engine. My
> objective is to utilize TraCI (Traffic Control Interface) to establish a
> connection between these two platforms.
>
> Fortunately, I have successfully established a connection between SUMO and
> Python, with SUMO acting as a server and Python as a client. However, I am
> facing challenges in connecting Unreal Engine to this setup and effectively
> transferring data between SUMO and Unreal Engine. The ultimate goal is to
> employ an Unreal Engine for having a real human driver operating within the
> network generated by SUMO.
>
> I would be immensely grateful if you could lend your expertise and support
> to help me overcome this obstacle. Your assistance would be invaluable to
> the progress of my research. Thank you for considering my request, and I
> eagerly await your response.
>
> best regards,
>
> Maziyar Layegh
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Units of lcStrategic, lcLookaheadLeft, lcAssertive, lcSpeedGain

2023-06-05 Thread Jakob Erdmann
see
https://github.com/eclipse/sumo/blob/de92290f118f38780aaf9b809a415ef981779b50/src/microsim/MSVehicle.cpp#L5787-L5848

Am Mo., 5. Juni 2023 um 16:24 Uhr schrieb Soumya Sharma via sumo-user <
sumo-user@eclipse.org>:

> Hi Jakob,
> Thanks for the information, that is very helpful.
>
> Also, in one of your previous emails, you mentioned:
> "The default look-ahead distance for strategic decision has a maximum
> range of about 3000m. You can reduce this distance by setting vType
> attribute 'lcStrategic' to a value in [0, 1[. "
>
> Where does this 3000m distance come from? is it the same as laDist? and
> where can I find these default values and the code corresponding to
> defaults?
> My goal is to understand how the look-ahead distance of a vehicle
> changes with changing parameters like "lcStrategic" and "lcLookaheadLeft",
> "lcAssertive" and "lcSpeedGain".
>
> Thanks!
>
> On Mon, Jun 5, 2023 at 7:57 AM Jakob Erdmann 
> wrote:
>
>> - All these attributes are factors and thus unitless
>> - in the laDist computation, the value of LOOK_FORWARD is the time (10s)
>> which is then scaled
>>
>>
>> Am So., 4. Juni 2023 um 04:24 Uhr schrieb Soumya Sharma via sumo-user <
>> sumo-user@eclipse.org>:
>>
>>> Hello,
>>> I am trying to conduct a sensitivity analysis of car-following and
>>> lane-changing parameters in SUMO for hypothetical freeway segments (basic
>>> and weaving). I tried changing headway values (car-following) and
>>> lcStrategic values (lane-changing) for a basic segment. I used lcStrategic
>>> values of 500, 1000, and 1500 for trucks in simulations (length = 15.25m).
>>> My trucks are using the CACC model.
>>> The two metrics I am interested in are the travel rates (secs/ mi) by
>>> vehicle type and the number of lane changes per vehicle type. I found that
>>> there was no change in travel rate and a number of lane changes when I
>>> changed the value of lcStrategic to 500, 1000, and 1500. I don't understand
>>> why there was no effect of changing the parameter values.
>>> Next, I want to look into other parameters like "lcLookaheadLeft",
>>> "lcAssertive" and "lcSpeedGain".
>>>
>>> *Question*: I would like to understand the units of the parameters
>>> "lcStrategic" and "lcLookaheadLeft", "lcAssertive" and "lcSpeedGain".
>>>
>>> The SUMO documentation says:
>>>
>>>1. lcStrategic: The eagerness for performing strategic lane
>>>changing. Higher values result in earlier lane-changing. default: 1.0,
>>>range [0-inf), -1 A value of 0 sets the lookahead-distance to 0
>>>(vehicles can still change at the end of their lane) whereas -1 disables
>>>strategic changing completely.
>>>2. lcLookaheadLeft: Factor for configuring the strategic lookahead
>>>distance when a change to the left is necessary (relative to right
>>>lookahead). default: 2.0, range [0-inf)
>>>3. lcAssertive: Willingness to accept lower front and rear gaps on
>>>the target lane. The required gap is divided by this value. default: 1,
>>>range: positive reals
>>>4. lcSpeedGain: The eagerness for performing lane changing to gain
>>>speed. Higher values result in more lane-changing. default: 1.0, range
>>>[0-inf)
>>>
>>> These definitions don't mention any units explicitly, are they all
>>> factors? i.e. unitless or are some of them in meters and some unitless?
>>>
>>> I was checking the code
>>> <https://github.com/eclipse/sumo/blob/main/src/microsim/lcmodels/MSLCM_LC2013.cpp#L1850>for
>>> LC2013 and found that look ahead distance (laDist) is being
>>> calculated as follows:
>>>
>>> laDist = myLookAheadSpeed * LOOK_FORWARD * myStrategicParam * (right ? 1
>>> : myLookaheadLeft);
>>>
>>>
>>> If this is how the look-ahead distance for a vehicle is calculated when
>>> making lane-changing decisions, then both lcLookaheadLeft and
>>> lcStrategic specified will be used to calculate laDist but I don't know
>>> what what the units of any of these parameters are. For laDist to be in
>>> distance units, speed would be multiplied by time here.
>>>
>>> Please share any information that is available as it would help me
>>> understand my results better.
>>>
>>> Thanks,
>>> Soumya.
>>> ___
>>> sumo-user mailing list
>>> sumo-user@eclipse.org
>>> To unsubscribe from this list, visit
>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>
>> ___
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
>
>
> --
> Thank you,
> Soumya Sharma
>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Is road grade taken into account in determining vehicle speed?

2023-06-05 Thread Jakob Erdmann
https://github.com/eclipse/sumo/blob/961730c2501c4810d7b36fd27c2c13b0d3b128d4/src/microsim/cfmodels/MSCFModel_KraussPS.cpp#L44-L55

Am Mo., 5. Juni 2023 um 14:13 Uhr schrieb ryota ishida :

> Dear Jakob
>
> Thanks for the reply.
> I would like to know how the gradient is taken into account in the
> KraussPS model.
> However, I can't find any appropriate references in SUMOdocumentation.
> If you know of any formulas or references, please let me know.
>
> Best regards
>
> 2023年6月5日(月) 1:18 Jakob Erdmann :
>
>> Of all the carFollowModels in sumo, currently the only ones that takes
>> grade into account are "KraussPS" (which stands for Krauss plus Slope) and
>> "Rail".
>> You could override model accelerations via TraCI using vehicle.getSlope
>> and vehicle.setAccel and vehicle.setDecel (the latter two set upper and
>> lower bounds on acceleration) or you could override an existing model:
>> https://sumo.dlr.de/docs/Developer/How_To/Car-Following_Model.html
>>
>>
>> Am So., 4. Juni 2023 um 12:10 Uhr schrieb ryota ishida <
>> ishira...@gmail.com>:
>>
>>> Dear all
>>>
>>>
>>> I have a question about SUMO's vehicle speed.
>>>
>>> Is the effect of road grade taken into account in determining the
>>> vehicle speed?
>>>
>>> (From looking at Krauss' paper on vehicle following models, it does not
>>> appear that gradient is taken into account)
>>>
>>> Also, is it possible to calculate speeds taking road gradient into
>>> account?
>>>
>>>
>>> Best regards
>>>
>>> Ishi
>>> ___
>>> sumo-user mailing list
>>> sumo-user@eclipse.org
>>> To unsubscribe from this list, visit
>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>
>> ___
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Units of lcStrategic, lcLookaheadLeft, lcAssertive, lcSpeedGain

2023-06-05 Thread Jakob Erdmann
- All these attributes are factors and thus unitless
- in the laDist computation, the value of LOOK_FORWARD is the time (10s)
which is then scaled


Am So., 4. Juni 2023 um 04:24 Uhr schrieb Soumya Sharma via sumo-user <
sumo-user@eclipse.org>:

> Hello,
> I am trying to conduct a sensitivity analysis of car-following and
> lane-changing parameters in SUMO for hypothetical freeway segments (basic
> and weaving). I tried changing headway values (car-following) and
> lcStrategic values (lane-changing) for a basic segment. I used lcStrategic
> values of 500, 1000, and 1500 for trucks in simulations (length = 15.25m).
> My trucks are using the CACC model.
> The two metrics I am interested in are the travel rates (secs/ mi) by
> vehicle type and the number of lane changes per vehicle type. I found that
> there was no change in travel rate and a number of lane changes when I
> changed the value of lcStrategic to 500, 1000, and 1500. I don't understand
> why there was no effect of changing the parameter values.
> Next, I want to look into other parameters like "lcLookaheadLeft",
> "lcAssertive" and "lcSpeedGain".
>
> *Question*: I would like to understand the units of the parameters
> "lcStrategic" and "lcLookaheadLeft", "lcAssertive" and "lcSpeedGain".
>
> The SUMO documentation says:
>
>1. lcStrategic: The eagerness for performing strategic lane changing.
>Higher values result in earlier lane-changing. default: 1.0, range [0-inf),
>-1 A value of 0 sets the lookahead-distance to 0 (vehicles can still
>change at the end of their lane) whereas -1 disables strategic changing
>completely.
>2. lcLookaheadLeft: Factor for configuring the strategic lookahead
>distance when a change to the left is necessary (relative to right
>lookahead). default: 2.0, range [0-inf)
>3. lcAssertive: Willingness to accept lower front and rear gaps on the
>target lane. The required gap is divided by this value. default: 1, range:
>positive reals
>4. lcSpeedGain: The eagerness for performing lane changing to gain
>speed. Higher values result in more lane-changing. default: 1.0, range
>[0-inf)
>
> These definitions don't mention any units explicitly, are they all
> factors? i.e. unitless or are some of them in meters and some unitless?
>
> I was checking the code
> for
> LC2013 and found that look ahead distance (laDist) is being calculated as
> follows:
>
> laDist = myLookAheadSpeed * LOOK_FORWARD * myStrategicParam * (right ? 1 :
> myLookaheadLeft);
>
>
> If this is how the look-ahead distance for a vehicle is calculated when
> making lane-changing decisions, then both lcLookaheadLeft and lcStrategic
> specified will be used to calculate laDist but I don't know what what the
> units of any of these parameters are. For laDist to be in distance units,
> speed would be multiplied by time here.
>
> Please share any information that is available as it would help me
> understand my results better.
>
> Thanks,
> Soumya.
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Is road grade taken into account in determining vehicle speed?

2023-06-04 Thread Jakob Erdmann
Of all the carFollowModels in sumo, currently the only ones that takes
grade into account are "KraussPS" (which stands for Krauss plus Slope) and
"Rail".
You could override model accelerations via TraCI using vehicle.getSlope and
vehicle.setAccel and vehicle.setDecel (the latter two set upper and lower
bounds on acceleration) or you could override an existing model:
https://sumo.dlr.de/docs/Developer/How_To/Car-Following_Model.html


Am So., 4. Juni 2023 um 12:10 Uhr schrieb ryota ishida :

> Dear all
>
>
> I have a question about SUMO's vehicle speed.
>
> Is the effect of road grade taken into account in determining the vehicle
> speed?
>
> (From looking at Krauss' paper on vehicle following models, it does not
> appear that gradient is taken into account)
>
> Also, is it possible to calculate speeds taking road gradient into account?
>
>
> Best regards
>
> Ishi
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] deactivate rerouting of vehicle

2023-06-03 Thread Jakob Erdmann
You can use setParameter(vehID, "device.rerouting.period", "0") to disable
period rerouting.

Am Sa., 3. Juni 2023 um 19:12 Uhr schrieb manos kampitakis <
mankampita...@gmail.com>:

> Hi all,
>
> Is there a way to deactivate a vehicle from rerouting? For example, I want
> vehicles to reroute each 5 mins only if they are placed in a certain area
> of my network. I tried to set the parameter "has.rerouting.devise" to
> "false" but threw an error: "Device removal is not supported for device of
> type 'rerouting' ". Is there another way to bypass this? Also, I think that
> it would be good to include this in a later version. Thanks in advance.
>
> Best regards,
> Manos
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Fwd: Exclude vehicles from rerouting

2023-06-03 Thread Jakob Erdmann
You can use setParameter(vehID, "device.rerouting.period", "0") to disable
period rerouting.

Am Sa., 3. Juni 2023 um 18:42 Uhr schrieb manos kampitakis <
mankampita...@gmail.com>:

>
>
> -- Forwarded message -
> Από: manos kampitakis 
> Date: Σάβ 3 Ιουν 2023 στις 7:01 μ.μ.
> Subject: Exclude vehicles from rerouting
> To: 
>
>
> Hi all,
>
> Is there a way to deactivate a vehicle from rerouting? For example, I want
> vehicles to reroute each 5 mins only if they are placed in a certain area
> of my network. I tried to set the parameter "has.rerouting.devise" to
> "false" but threw an error: "Device removal is not supported for device of
> type 'rerouting' ". Is there another way to bypass this? Also, I think that
> it would be good to include this in a later version. Thanks in advance.
>
> Best regards,
> Manos
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Unable to generate vehicles in osmWebWizard

2023-06-03 Thread Jakob Erdmann
Quite strange! Below is what I would expect the command line window for
webwizard took like:

[image: grafik.png]


any errors that would cause "recovering" in the webbrowser should be listed
here.

Please try calling
python "%sumo_home%\tools\osmWebWizard.py" 2>&1 > wizardlog.txt

and then check the contents of wizardlog.txt

Am Fr., 2. Juni 2023 um 14:07 Uhr schrieb Florian Schnepf <
florian.schnep...@web.de>:

> Made a small video.
> But as I said, when I write a sumocfg file by hand, everything works.
>
> *Gesendet:* Freitag, 02. Juni 2023 um 13:43 Uhr
> *Von:* "Jakob Erdmann" 
> *An:* "Sumo project User discussions" 
> *Betreff:* Re: [sumo-user] Unable to generate vehicles in osmWebWizard
> I don't quite understand what you mean by opening and closing windows. Can
> you post the whole contents of the command line window in which you
> launched osmWebWizard.py?
>
> Am Fr., 2. Juni 2023 um 13:38 Uhr schrieb Florian Schnepf <
> florian.schnep...@web.de>:
>
>> The second window, that opens up, is duarouter. It just says "Success"
>> and the window closes. Then on top right in osmwebwizard it says "Recovcery"
>> I was confused that the sumo-gui didn't start up. But when I write a
>> .sumocfg file, it works with the vehicle routes.
>>
>> I called the osmwebwizard with python "%SUMO_HOME%/"tools/osmwebwizard.py
>> *Gesendet:* Freitag, 02. Juni 2023 um 11:26 Uhr
>> *Von:* "Jakob Erdmann" 
>> *An:* "Sumo project User discussions" 
>> *Betreff:* Re: [sumo-user] Unable to generate vehicles in osmWebWizard
>> Yes. (with a minor caveat explained at
>> https://github.com/eclipse/sumo/issues/8660).
>> If you launch webwizard from a command line you should see a bit more
>> output related to the vehicle generating failure. Please post this.
>>
>> Am Fr., 2. Juni 2023 um 09:25 Uhr schrieb Florian Schnepf <
>> florian.schnep...@web.de>:
>>
>>> Hello,
>>>
>>> I'm using SUMO 1.17.0 and python 3.11.3
>>>
>>> Generating a scenario without vehicles works fine with osmWebWizard. But
>>> if I add vehicles, a second command window opens and close immediately. In
>>> the browser it says first "Processing Cars" and then "Recovery".
>>> I reinstalled SUMO without success.
>>>
>>> Will I get the exact same result if I generate my traffic using
>>> randomtrips.py with option --fringe-factor and --insertion-density?
>>>
>>> Thanks in advance
>>>
>>> Regards,
>>> Florian
>>> ___
>>> sumo-user mailing list
>>> sumo-user@eclipse.org
>>> To unsubscribe from this list, visit
>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
>> ___ sumo-user mailing list
>> sumo-user@eclipse.org To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>> ___
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>
> ___ sumo-user mailing list
> sumo-user@eclipse.org To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Taxistands

2023-06-03 Thread Jakob Erdmann
- solution 1: traci.vehicle.getStopParameter(vehID, 0, 'started')  (you can
check whether the vehicle is currenlty stopped with vehicle.getStops
- solution 2: track the time at which vehicles entered the taxistand with
traci.simulation.getParkingStartingVehiclesIDList (then record the time and
vehicleID yourself for later reference).

Am Sa., 3. Juni 2023 um 00:04 Uhr schrieb Sharifullah Asady <
sharif.as...@tum.de>:

> Hi Jakob,
>
> Many thanks, this works perfectly as I wanted. Is there any possibility to
> get taxi parking time?
>
> I am modelling taxis, that are dispatched from taxistands (in my case,
> parking areas are defined as taxistands). Now, I need to dispatch the taxi
> that has arrived earlier to taxistand or has spent more time parking. I
> tried to check if the traci.parkingarea.getVehicleIDs(stopID) could give me
> parked taxis according to their parking time but unfortuntely that is not
> the case.
>
> Many thanks and have a great weekend.
>
> Best,
> Sharif
> ----------
> *From:* sumo-user  on behalf of Jakob
> Erdmann 
> *Sent:* Tuesday, May 30, 2023 4:57:30 PM
> *To:* Sumo project User discussions
> *Subject:* Re: [sumo-user] Taxistands
>
> The latest development version (starting with v1_17_0-575) contains
> experimental support for taxi stands.
> See https://sumo.dlr.de/docs/Simulation/Taxi.html#idle_behavior
> You can obtain a test case at
> https://sumo.dlr.de/extractTest.php?path=sumo/devices/taxi/idling/taxistand/10persons
>
> regards,
> Jakob
>
> Am Fr., 26. Mai 2023 um 12:09 Uhr schrieb Sharifullah Asady <
> sharif.as...@tum.de>:
>
>> Hello Dear,
>>
>>
>> I want to simulate taxis using SUMO. As we know that taxis have specific
>> taxistands to park and wait for customer requests and also after dropping
>> the customer they must return back to their taxistand. So, there is any
>> possibility to have taxistands.
>>
>>
>> Maybe it is possible to use ParkingAreas as taxistands but then how guide
>> taxis to go to the parkingareas after they drop the customer and also
>> currently, we have to define a duration or time that the vehicle should
>> stay in the parking area but for taxis we don't know the time as it is
>> dependent on requests arrival.
>>
>>
>> Many thanks for the suggestions and feedback.
>>
>>
>> best regards,
>>
>> Sharif
>> ___
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Mismatch in Traffic Density in SUMO:

2023-06-02 Thread Jakob Erdmann
You can lower the simulation density by increasing the values of 'tau' and
'minGap'. Note that it might be useful to draw these values from a
distribution rather than having the same value for the whole fleet (
https://sumo.dlr.de/docs/Tools/Misc.html#createvehtypedistributionpy)

However, you also need to make sure that you are picking the correct data
from the simulation as this might also be responsible for a mismatch
between the curves. Here are a few comments:
- What exactly are these plots showing?
- Your y axis only mentions "vehicle count" which is neither a unit for
density (due to lack of spatial component) nor for flow (due to lack of
time component).
 - Likewise, the speed values requires some explanation. Is this averaged
at a cross section (time mean speed) or over an area (space mean speed) -
the question applies both to the real world data as well as the simulation
data
- How was the real world dataset derived and what values (output files) are
you taking from the simulation?
- The fit of the speeds already suggests some systematic error (possibly in
the distribution of desired speeds) but also, the shapes of the speed
curves are so similar as to suggest some form of calibration. Whatever you
have been doing with the speeds is probably relevant to understanding the
density mismatch.




Am Fr., 2. Juni 2023 um 14:03 Uhr schrieb Mayank Singh <
mayanksingh.dai...@gmail.com>:

> Respected Sir,
> In my scenario, traffic flow matches a given dataset.
> But the traffic density does not match correctly.
> So, what are the parameters that we should consider or tune while doing
> the simulation? So that traffic density also gets aligned.
> I have attached my graphs of traffic flow, traffic density, and traffic
> speed for your reference.
>
>
> Regards,
> Mayank
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Unable to generate vehicles in osmWebWizard

2023-06-02 Thread Jakob Erdmann
I don't quite understand what you mean by opening and closing windows. Can
you post the whole contents of the command line window in which you
launched osmWebWizard.py?

Am Fr., 2. Juni 2023 um 13:38 Uhr schrieb Florian Schnepf <
florian.schnep...@web.de>:

> The second window, that opens up, is duarouter. It just says "Success" and
> the window closes. Then on top right in osmwebwizard it says "Recovcery"
> I was confused that the sumo-gui didn't start up. But when I write a
> .sumocfg file, it works with the vehicle routes.
>
> I called the osmwebwizard with python "%SUMO_HOME%/"tools/osmwebwizard.py
> *Gesendet:* Freitag, 02. Juni 2023 um 11:26 Uhr
> *Von:* "Jakob Erdmann" 
> *An:* "Sumo project User discussions" 
> *Betreff:* Re: [sumo-user] Unable to generate vehicles in osmWebWizard
> Yes. (with a minor caveat explained at
> https://github.com/eclipse/sumo/issues/8660).
> If you launch webwizard from a command line you should see a bit more
> output related to the vehicle generating failure. Please post this.
>
> Am Fr., 2. Juni 2023 um 09:25 Uhr schrieb Florian Schnepf <
> florian.schnep...@web.de>:
>
>> Hello,
>>
>> I'm using SUMO 1.17.0 and python 3.11.3
>>
>> Generating a scenario without vehicles works fine with osmWebWizard. But
>> if I add vehicles, a second command window opens and close immediately. In
>> the browser it says first "Processing Cars" and then "Recovery".
>> I reinstalled SUMO without success.
>>
>> Will I get the exact same result if I generate my traffic using
>> randomtrips.py with option --fringe-factor and --insertion-density?
>>
>> Thanks in advance
>>
>> Regards,
>> Florian
>> ___
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>
> ___ sumo-user mailing list
> sumo-user@eclipse.org To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Unable to generate vehicles in osmWebWizard

2023-06-02 Thread Jakob Erdmann
Yes. (with a minor caveat explained at
https://github.com/eclipse/sumo/issues/8660).
If you launch webwizard from a command line you should see a bit more
output related to the vehicle generating failure. Please post this.

Am Fr., 2. Juni 2023 um 09:25 Uhr schrieb Florian Schnepf <
florian.schnep...@web.de>:

> Hello,
>
> I'm using SUMO 1.17.0 and python 3.11.3
>
> Generating a scenario without vehicles works fine with osmWebWizard. But
> if I add vehicles, a second command window opens and close immediately. In
> the browser it says first "Processing Cars" and then "Recovery".
> I reinstalled SUMO without success.
>
> Will I get the exact same result if I generate my traffic using
> randomtrips.py with option --fringe-factor and --insertion-density?
>
> Thanks in advance
>
> Regards,
> Florian
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Reroute by effort using parallel processing

2023-06-01 Thread Jakob Erdmann
1. routing by effort is only effort (so the value is 3), however, the
travel time is still tracked because you might have defined different
effort for different times (i.e. the time to travel by train depends on the
schedule and thus waiting time).
2. no.
3. yes. By launching multiple instances of sumo and switching between them.
See
https://sumo.dlr.de/docs/TraCI/Interfacing_TraCI_from_Python.html#controlling_parallel_simulations_from_the_same_traci_script

Note, that you should achieve a huge speedup in the setEffort part if you
use libsumo (https://sumo.dlr.de/docs/Libsumo.html) though this precludes
having parallel instances in a single python process.

Am Do., 1. Juni 2023 um 08:03 Uhr schrieb 최석환 :

> Hello all,
>
> I'm going to specify effort on all edges and reroute the vehicle according
> to effort every 5 minutes.
> My code is as follows.
>
> --
> net = sumolib.net.readNet('osm.net.xml')
> edges = net.getEdges()
> step = 0
> while step < 86400:
> traci.simulationStep()
>
> if traci.simulation.getTime() % 300 == 0:
> for edge in edges:
> if traci.edge.getTraveltime(edge.getID()) > 1000:
> if edge.getID() in clist:
> traci.edge.setEffort(edge.getID(),
> (edge.getSpeed()*0.7) / (edge.getLength()+edge.getLength()*4*0.06), step,
> step + 300)
> else:
> traci.edge.setEffort(edge.getID(),
> (edge.getSpeed()*0.7) / edge.getLength(), step, step + 300)
> else:
> if edge.getID() in clist:
> traci.edge.setEffort(edge.getID(),
> traci.edge.getTraveltime(edge.getID())+edge.getLength()*4*0.06, step,
> step+300)
> else:
> traci.edge.setEffort(edge.getID(),
> traci.edge.getTraveltime(edge.getID()), step, step+300)
> for vehId in traci.simulation.getDepartedIDList():
> traci.vehicle.setEffort(vehId, edge.getID(),
> traci.edge.getEffort(edge.getID(), step))
>
>
> for vehId in traci.vehicle.getIDList():
> traci.vehicle.rerouteEffort(vehId)
>
> step += 1
>
> traci.close()
>
> 
> My network has 6400 edges and the traffic demand is 40,000 per hour.
> This takes a very long time in the traci.vehicle.setEffort part.
>
> The questions I'm curious about are as follows.
> 1. I wonder if reroute by effort is only effort or travel time and effort,
> for example, if the effort is 3 and travel time is 9, the value used 3 or
> 12?
> 2. Is it possible to reroute based on the effort set in traci with routing
> settings in the .sumocfg file for more threads?
> 3. Is parallel processing possible in python using traci if effort-based
> rerouting is not available in .sumocfg?
>
> Thank you reading my mail.
>
> SeokHwan
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Specific Electric Vehicle parameters

2023-05-31 Thread Jakob Erdmann
Please refer to https://sumo.dlr.de/docs/Models/MMPEVEM.html#tools and
contact https://github.com/kevbad who authored the MMPEVEM model if you
have any questions.

Am Mi., 31. Mai 2023 um 16:46 Uhr schrieb Iñaki Cejudo Fresnadillo via
sumo-user :

> Hi,
>
> I am using SUMO to make simulations of specific electric vehicles. So far
> I have used the ones that are defined in the documentation (
> https://github.com/eclipse/sumo/tree/main/data/emissions/MMPEVEM) but I
> would like to simulate two vehicles specifically: Nissan Leaf e+ 62kW and a
> Dacia Spring 33kW.
>
> I can obtain almost all the parameters to model these vehicles, except the
> "powerLossMap" parameter. I understand that this parameter refers to how
> the electric motor's consumption is. Will you be able to create this
> parameter for me or tell me how could I do it, for these 2 vehicles that I
> need? Is there any tool for this?
>
> Apart from this parameter, do you know any database that shows the rest of
> the parameters for any vehicle model? Thank you
>
> Kind regards,
>
> Iñaki
>
> --
>
> [image: Vicomtech] 
>
> Transport & Security Division
>
> Iñaki Cejudo Fresnadillo
> Research Assistant
> Intelligent Systems for Mobility and Logistics
> icej...@vicomtech.org
> +(34) 943 30 92 30
>
> The information contained in this electronic message is intended only for
> the personal and confidential use of the recipients. If you have received
> this e-mail by mistake, please, notify us and delete it.
>  Avoid printing this message if it is not strictly necessary.
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Specific Value for depart speed:

2023-05-31 Thread Jakob Erdmann
This might happen if you misspell the attribute or put it into the wrong
element. To help with this problem, you can enable input validation by
defining the root element of your route file as:
http://www.w3.org/2001/XMLSchema-instance;
xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd;>
The correct definition is departSpeed="20" placed inside the
vehicle/trip/flow element

Am Mi., 31. Mai 2023 um 15:26 Uhr schrieb Mayank Singh <
mayanksingh.dai...@gmail.com>:

> Respected Sir,
>
> I want to insert vehicles with some specific "depart speed", e.g., 20 m/s,
> and different departure speeds for different vehicles.
> For that, I have initialized the "depart-speed" attribute of every vehicle.
>
> But the FCD output shows that all the vehicles start with an initial speed
> of 0.0 m/s and then accelerate based on the acceleration value.
>
> Kindly help me to get the non-zero "depart speed" of vehicles.
>
>
> Regards,
> Mayank
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Taxistands

2023-05-30 Thread Jakob Erdmann
The latest development version (starting with v1_17_0-575) contains
experimental support for taxi stands.
See https://sumo.dlr.de/docs/Simulation/Taxi.html#idle_behavior
You can obtain a test case at
https://sumo.dlr.de/extractTest.php?path=sumo/devices/taxi/idling/taxistand/10persons

regards,
Jakob

Am Fr., 26. Mai 2023 um 12:09 Uhr schrieb Sharifullah Asady <
sharif.as...@tum.de>:

> Hello Dear,
>
>
> I want to simulate taxis using SUMO. As we know that taxis have specific
> taxistands to park and wait for customer requests and also after dropping
> the customer they must return back to their taxistand. So, there is any
> possibility to have taxistands.
>
>
> Maybe it is possible to use ParkingAreas as taxistands but then how guide
> taxis to go to the parkingareas after they drop the customer and also
> currently, we have to define a duration or time that the vehicle should
> stay in the parking area but for taxis we don't know the time as it is
> dependent on requests arrival.
>
>
> Many thanks for the suggestions and feedback.
>
>
> best regards,
>
> Sharif
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] create lcModel

2023-05-29 Thread Jakob Erdmann
 It is created when loading the vehicle. See
https://sumo.dlr.de/docs/Definition_of_Vehicles%2C_Vehicle_Types%2C_and_Routes.html#routes

Am So., 28. Mai 2023 um 15:55 Uhr schrieb Mahima :

> Hi,
>
> I have a query regarding creating lcModel for a vehicle. At what timestep,
> does the lcmodel created for each vehicle? Does it depend on the loading of
> routes?
>
> I can see it is created much before the depart time of a vehicle. How can
> I control it?
>
> Thanks,
> Mahima
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] LCA_TRACI

2023-05-27 Thread Jakob Erdmann
when you run with libsumo, the LCA_TRACI bits are caused by your own calls
to functions such as vehicle.changeLane (using the TraCI API).

Am Sa., 27. Mai 2023 um 02:00 Uhr schrieb Mahima :

> HI,
>
> I have a question regarding LCA_TRACI. When would this request be raised?
> I ran my parallel application which runs on top of sumo using libsumo, at
> a timestep vehicle shows stateRight value as "2048"
> On the other hand, when I run the same traffic and network using sumo
> command, I can see the stateRight value at the same timestep to be "2136".
> Why TRACI request bit is 1 here?
> Can we turn off TRACI requests? When we use libsumo, TRACI lane change
> requests are still generated?
>
> Thanks,
> Mahima
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] SubLane Model stop behaviour

2023-05-26 Thread Jakob Erdmann
please provide a minimal reproducible example

Am Fr., 26. Mai 2023 um 05:34 Uhr schrieb Jojo Get :

> Hi everyone,
>
> NetEdit Version: 1.17
>
> [image: image.png]
>
> As seen in the image above, the motorcycles are currently facing weird
> directions when stopping and will vibrate in their current positions, I
> wanted to check if there is a way to prevent this behaviour from happening.
>
> The configurations currently set are as follows:
> lateral-resolution: 1.2
> width of edge: 3.6
> motorcycle class settings: vClass="motorcycle" length="1.975"
> width="0.665" height="1.085" minGap="0.6" lcStrategic="10" lcPushyGap="1"
>
> As always, thank you so much for the help in advance.
>
> Best Regards,
> Nick Tan
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] human driver behavior modeling

2023-05-25 Thread Jakob Erdmann
You can set vType attribute 'startupDelay' to add a fixed time delay when
starting after having come to a stop (i.e. at a traffic light). The EIDM
model also contains parameters to flatten the acceleration curve after
startup ('Mflatness').

Am Do., 25. Mai 2023 um 17:03 Uhr schrieb HoujiaQD :

> Hi, Jakob,
>
> Typically, vehicles stopped at the intersection stop line proceed through
> the intersection immediately when the traffic light switches to green.
> However, I would like to simulate the behavior of human drivers who may be
> distracted by mobile phones in SUMO. In this scenario, human drivers might
> still remain stationary for a certain duration even after the green light
> is displayed.
>
> I am seeking guidance on whether there are any approaches or methods to
> prevent human-drived vehicles from immediately moving through the
> intersection as soon as the traffic light changes to green.
>
> As always, many thanks !
>
> Houjia Qidiao
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Bicycle traffic in Mesoscopic mode

2023-05-25 Thread Jakob Erdmann
it should work if you set option --meso-lane-queue

Am Do., 25. Mai 2023 um 15:19 Uhr schrieb Sasan Amini :

> Dear all,
> I was trying to compare a microscopic with a mesoscopic scenario and
> noticed that in mesoscopic mode I cannot have bicycle traffic. The
> error message says that the bicycles cannot be inserted in the network
> on any of the lanes of the source link, but that works just fine in
> microscopic mode. I guess in the meso the lane permissions are not
> considered (or maybe vehicle type is fully ignored?)
>
> Best,
> Sasan
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Vehicles disappear when entering intersection

2023-05-25 Thread Jakob Erdmann
most likely you have built your network without internal links (or you are
using meso). See
https://sumo.dlr.de/docs/Simulation/Intersections.html#internal_links

Am Do., 25. Mai 2023 um 15:12 Uhr schrieb Fil Ad via sumo-user <
sumo-user@eclipse.org>:

> Dear all,
>
> during the simulation of a relatively simple network (including private
> cars and public transport), vehicles disappear when entering the
> intersection and reappear while they have left the intersection. This
> means, that there is no visualisation of the movement of the vehicles while
> being on the intersection. Has anybody had this issue before?
>
> Thank you.
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Question about randomTrips

2023-05-25 Thread Jakob Erdmann
1. Yes. "arrival within the simulation" (i.e. departure) and "arrival at
the end of the trip" are different concepts.
2. departure + tripDuration fully determine arrival time. The tripDuration
depends on the distance but also on speed limits, traffic lights and of
course other vehicles!
3. the distance of the trips (which I assume you mean by 'length') that are
generated by randomTrips depends on many options (among which are
--min-distance and --max-distance) but mainly on the size of the network
and all the options that determine edge probability. In a larger network
you will get longer trips by default.

Am Do., 25. Mai 2023 um 14:24 Uhr schrieb Florian Schnepf <
florian.schnep...@web.de>:

> Hello Jakob,
>
> thanks for your fast response.
>
>1. So the arrival rate and the value "arrived" from the summary
>doesn't mean the same? I thought it's the same thing.
>2. I thought the value "arrived" can be controlled by the option
>--binomial. So the number of arrived vehicle (value from summary) over time
>is influenced by when and how many vehicles are departed. What else has an
>influence? The length of the trips?
>3. What is the default for the length? Is it also randomized using a
>distribution?
>
>
>
> *Gesendet:* Donnerstag, 25. Mai 2023 um 12:42 Uhr
> *Von:* "Jakob Erdmann" 
> *An:* "Sumo project User discussions" 
> *Betreff:* Re: [sumo-user] Question about randomTrips
> 1. some people use the term "arrival rate" to denote "arrival in the
> scenario" (i.e. thinking of customer arrival rate) and the section title
> was chosen to help these people find what they are looking for.
> 2. by default the number of vehicles departing in the same second is tied
> to the --period option (i.e exactly one vehicle each second for period =
> 1).  With --binomial, the number of departures per second is randomized.
>
> Am Do., 25. Mai 2023 um 11:46 Uhr schrieb Florian Schnepf <
> florian.schnep...@web.de>:
>
>> Hello everyone,
>>
>> I have two questions about this part
>> https://sumo.dlr.de/docs/Tools/Trip.html#traffic_volume_arrival_rate of
>> randomTrips.py.
>>
>>
>>
>>- I don't understand why arrival rate and insertion rate is the same.
>>
>>
>>
>>- The second thing is the option --binomial. Without the option, the
>>arrival rate already looks like a binomial distribution. I cannot see the
>>influence of the option with different values in the plots.
>>
>> Can someone give me a tip?
>> What does the option do in the background? The insertion rate stays the
>> same, so will the trips be longer with this option?
>>
>>
>> Thanks in advance
>>
>> Regards,
>> Florian
>> ___
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>
> ___ sumo-user mailing list
> sumo-user@eclipse.org To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


  1   2   3   4   5   6   7   8   9   10   >