Re: [sumo-user] reaction time in Krauss car following model

2024-05-30 Thread Jakob Erdmann via sumo-user
'tau' corresponds to the member value `myHeadwayTime` but you don't need to
change any source code to set this. It's a regular vType attribute:
https://sumo.dlr.de/docs/Definition_of_Vehicles%2C_Vehicle_Types%2C_and_Routes.html#available_vtype_attributes

The safety equation that's probably easiest to read is at
cfmodels/MSCFModel_KraussOrig1.cpp::vsafe
This is only "safe" when assuming continuous time. The default Krauss model
used in SUMO has the formula rewritten with respect to discretized time.
It returns the highest speed that is compatible with reaction time tau and
still free of collision if the leader vehicle immediately starts braking
with its maximum deceleration.

regards,
Jakob

Am Do., 30. Mai 2024 um 08:28 Uhr schrieb 林紹維 via sumo-user <
sumo-user@eclipse.org>:

> Dear all,
> I’ve been trying to modify the reaction time for human driving in the
> Krauss model, but couldn’t quite find the source code that is implementing
> the v_safe equation (4.21) in this original Krauss model (
> https://sumo.dlr.de/pdf/KraussDiss.pdf ) on page 24. From my perspective,
> the reaction time in the paper above refers to the tau value (in the paper,
> not sumo) , which I am trying to modify in the source code in
> MSCFModel_Krauss class (
> https://github.com/eclipse-sumo/sumo/blob/main/src/microsim/cfmodels/MSCFModel_Krauss.cpp)
> , but couldn’t quite locate the exact implementation of the equation
> (4.21). I know that there are other parameters such as step-length and
> action-step-length that are also associated to reaction time related
> topics, or even the driver state device which functions the imperfect
> driving behaviors, but they seem to be different from directly modifying
> the reaction time value in the Krauss model. Am I understanding something
> wrong, any help would be appreciated.
>
> Thanks and regards,
> Leonardo
> ___
> 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 in edge-output

2024-05-29 Thread Jakob Erdmann via sumo-user
the edgeData attribute is called 'vTypes' (since it can be a list of type
ids).

Am Mi., 29. Mai 2024 um 14:18 Uhr schrieb Sasan Amini via sumo-user <
sumo-user@eclipse.org>:

> Dear all,
>
> I am trying to find out bus delay time at intersections. I am using
> edge-output by adding vType="bus" to account for timeLoss of busses
> only, however, I see no difference in the values which gives me the
> impression that vType for edge-ouput has no effect. Could that be the
> case?
>
> 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] Sioux falls scenario

2024-05-29 Thread Jakob Erdmann via sumo-user
https://github.com/bstabler/TransportationNetworks
Networks from that repo can be imported:
i.e.
sumo/tools/import/transportationTestProblems.py SiouxFalls_node.tntp
SiouxFalls_net.tntp
(you need the latest dev-version of transportationTestProblems.py because
it contains a format patch)
Note, that these networks are specified with capacity whereas this cannot
be specified in sumo (it emerges from the infrastructure and traffic
composition).

There is also https://github.com/matsim-eth/sioux-falls and you can use
netconvert to import the matsim network. (option --matsim-files)

Am Mi., 29. Mai 2024 um 14:00 Uhr schrieb Rohan Verma via sumo-user <
sumo-user@eclipse.org>:

> Dear community,
> Is there a dataset for the conventional Sioux Falls scenario in SUMO?
> If yes, kindly direct me towards it. If not, then kindly direct me to how
> it can be achieved.
> 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] Regarding duaiterate.py

2024-05-28 Thread Jakob Erdmann via sumo-user
add option --skip-first-routing

Am Di., 28. Mai 2024 um 08:11 Uhr schrieb Rohan Verma via sumo-user <
sumo-user@eclipse.org>:

> Dear community,
> While running duaiterate.py, I have been providing a .rou.xml file with
> only from and to attributes. However, I wish to provide an initial solution
> to the algorithm, i.e., the first route choice is provided, and the next
> route choice is based on it. Kindly help on how to achieve this.
> I have tried providing routes in rou.xml, but that does not seem to work.
> 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] crossings handling

2024-05-23 Thread Jakob Erdmann via sumo-user
Please open up a ticket at https://github.com/eclipse-sumo/sumo/issues/new
and attach files for reproducing the situation.

Am Do., 23. Mai 2024 um 12:00 Uhr schrieb Francesco PETRAROLI via sumo-user
:

> I set several crossings on my net. But i noticed that in some of them both
> persons and vehicles look stuck until sumo forces the simulation ("warning:
> teleporting"). Why does it happen? How should I set proper crossings?
> ___
> 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] Finding length of a route in sumo

2024-05-21 Thread Jakob Erdmann via sumo-user
The easiest way is to let a vehicle drive that route in sumo with option
--tripinfo-output. Then read the route length from the output file.


Am Di., 21. Mai 2024 um 23:21 Uhr schrieb TIPPANA RAJESH via sumo-user <
sumo-user@eclipse.org>:

> How can we find the length of a route in sumo?
> ___
> 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 searching for Parking spaces

2024-05-21 Thread Jakob Erdmann via sumo-user
There is currently no option for slowing down during cruising though (
https://github.com/eclipse-sumo/sumo/issues/14894).


Am Di., 21. Mai 2024 um 08:07 Uhr schrieb Jakob Erdmann <
namdre.s...@gmail.com>:

> call generateParkingAreaRerouters with options
> --max-distance-visibility-true 0 and --min-capacity-visibility-true 1
> to ensure that the alternatives all get the status visible="false"
>
> Am Di., 21. Mai 2024 um 07:30 Uhr schrieb Rohan Verma via sumo-user <
> sumo-user@eclipse.org>:
>
>> Dear community,
>> I wish to create a scenario simulating roadside parking where vehicles
>> only get information about the occupancy of parking spaces when they arrive
>> at the parking space. If the parking space is full, the vehicles try to
>> find other empty spaces by cruising within the network. I created a
>> rerouter file for the same with the following options: probability="1"
>> parking.distanceto.weight="1" parking.timeto.weight="1" parking.anywhere=
>> "10"
>> But what I observed was that vehicles go to alternate parking with max
>> allowable speed where, in reality, the cruising for parking is usually done
>> at a lower speed than normal traffic flow. Is there a way to achieve this?
>> 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] Regarding searching for Parking spaces

2024-05-21 Thread Jakob Erdmann via sumo-user
call generateParkingAreaRerouters with options
--max-distance-visibility-true 0 and --min-capacity-visibility-true 1
to ensure that the alternatives all get the status visible="false"

Am Di., 21. Mai 2024 um 07:30 Uhr schrieb Rohan Verma via sumo-user <
sumo-user@eclipse.org>:

> Dear community,
> I wish to create a scenario simulating roadside parking where vehicles
> only get information about the occupancy of parking spaces when they arrive
> at the parking space. If the parking space is full, the vehicles try to
> find other empty spaces by cruising within the network. I created a
> rerouter file for the same with the following options: probability="1"
> parking.distanceto.weight="1" parking.timeto.weight="1" parking.anywhere=
> "10"
> But what I observed was that vehicles go to alternate parking with max
> allowable speed where, in reality, the cruising for parking is usually done
> at a lower speed than normal traffic flow. Is there a way to achieve this?
> 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] vehicles and pedestrians

2024-05-20 Thread Jakob Erdmann via sumo-user
No, this personNumber is just a convenience for changing the remaining
capacity of the car without modelling some persons explicitly.
Put you can define cars that start with "real" persons in them as well:
https://sumo.dlr.de/docs/Specification/Persons.html#starting_the_simulation_in_a_vehicle

Am Mo., 20. Mai 2024 um 09:21 Uhr schrieb Francesco PETRAROLI via sumo-user
:

> I noticed that for each vehicle it can be possible to add a "personNumber"
> as attribute. The question is: is it possible to recall those persons in
> order to generate a walking route for all of them once the car is parked?
> ___
> 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] Pedestrians to stop in a building

2024-05-17 Thread Jakob Erdmann via sumo-user
No. Persons in a  do not interact with anything.

Am Fr., 17. Mai 2024 um 13:23 Uhr schrieb Francesco PETRAROLI via sumo-user
:

> Ok if that person stops in parking area that overlaps with the same edge,
> does sumo give me errors if a vehicle parks in the same position?
>
> Il giorno ven 17 mag 2024 alle 13:19 Jakob Erdmann via sumo-user <
> sumo-user@eclipse.org> ha scritto:
>
>> You can define a  at the entrance edge for the university that
>> keeps the persons at that location for the desired duration / end time. See
>> https://sumo.dlr.de/docs/Specification/Persons.html#stops
>> If you need more detail you could model the pathways within the
>> university as well.
>>
>> Am Fr., 17. Mai 2024 um 13:15 Uhr schrieb Francesco PETRAROLI via
>> sumo-user :
>>
>>> I am setting a simulation of my University's campus. I would like to
>>> simulate students entering buildings or something that emulates this
>>> behavior. How can I do that?
>>> ___
>>> 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] Pedestrians to stop in a building

2024-05-17 Thread Jakob Erdmann via sumo-user
You can define a  at the entrance edge for the university that keeps
the persons at that location for the desired duration / end time. See
https://sumo.dlr.de/docs/Specification/Persons.html#stops
If you need more detail you could model the pathways within the university
as well.

Am Fr., 17. Mai 2024 um 13:15 Uhr schrieb Francesco PETRAROLI via sumo-user
:

> I am setting a simulation of my University's campus. I would like to
> simulate students entering buildings or something that emulates this
> behavior. How can I do that?
> ___
> 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] Realistic routes from observation points?

2024-05-17 Thread Jakob Erdmann via sumo-user
Hi Jan,
so far we didn't have to deal with the problem of guessing traffic for the
side roads based only on observations of the main roads.

I see two possible approaches here and both try to avoid "excessive"
traffic on the side roads:

1. trying to get a "better" initial distribution of random routes and
trying to preserve this distribution during sampling (this means not doing
--optimize full but rather --optimize with an integer limit)
   this "better" distribution could come from better informed routing (not
with empty-net travel times as randomTrips does) i.e. by doing a few steps
of iterative user assignment (duaIterate.py)

2. adding more constraints by defining virtual detectors that set hard
limits on the traffic that can go through side roads. The problem here is
that you cannot yet define upper bounds distinctively from counts (
https://github.com/eclipse-sumo/sumo/issues/6727) but it might still help
if you set low values for congested side streets.  Flowrouter already
supports this kind of general constraint
https://sumo.dlr.de/docs/Tools/Detector.html#restricting_generated_routes
on single edges.

I'm happy to collaborate on this because I see it as a strategic/crucial
problem in simulation setup.

best regards,
Jakob

Am Fr., 17. Mai 2024 um 11:31 Uhr schrieb Jan Přikryl via sumo-user <
sumo-user@eclipse.org>:

> Dear all,
>
> my apologies if it has been discussed before, I tried to search the
> archives and did not find anything relevant.
>
> For our simulation, I am pondering the possibility to switch from our old
> manually generated traffic to traffic generated from "observation points",
> in our case traffic counts at intersection detectors. The network we are
> working with represents a substantial part of Pilsen (CZ), it is
> approximately 10 x 10 kilometers in size, and contains quite a number of
> small streets besides the main traffic corridors. The intersection
> detectors are located at the main corridors.
>
> Given the absence of turning rates and other information (I might have an
> outdated O/D info somewhere, but I want to avoid it, if possible), I did
> some experiments with flowrouter.py and routeSampler.py, with rather
> pathetic results, I am afraid:
>
> * flowrouter.py seems to pick up a few random locations in the residential
> areas of the network, and generate traffic that goes from those places into
> the main corridors and then leaves the corridor to some other location; as
> a result, the small streets in residential areas are completely blocked by
> traffic as their capacity cannot handle the traffic volume
>
> * routeSampler.py does a better job but given the necessity of supplying
> it with a set of random routes, it tends to pick up several "most
> promising" routes from a quite large route file (cca 500MB) and while the
> traffic at the main corridors is definitely "nicer", the result is to some
> extent similar to the flowrouter.py, with traffic jams in different
> residential areas that in my opinion are now mostly related to low capacity
> and unregulated / priority intersections -- while the number of vehicle
> sources / destination points increases, the capacity of the network in the
> side streets in not sufficient to accommodate the traffic.
>
> Note that our goal is to have realistic, but not necessarily exact
> replication of traffic in the city. We need to simulate the whole city with
> public transport and we want to determine how the daily traffic affects
> some parts of (trolley/e)bus routes.
>
> I think I am doing something wrong. Is there any additional howto /
> cookbook / manual regarding this besides the standard documentation (
> https://sumo.dlr.de/docs/Demand/Routes_from_Observation_Points.html)? I
> am aware of Michael's paper about routeSampler.py, but it does not help
> much in this context, I am afraid.
>
> I can share the network, the scripts I am using and all the other files,
> of course -- the only problem is that the complete dataset is BIG (230MB
> zipped, 2GB raw).
>
> Thanks!
>
> Jan
>
> --
> Jan Přikryl
> RICE FEL UWB  & CTU FTS
> ___
> 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 footways

2024-05-17 Thread Jakob Erdmann via sumo-user
Here is an example:
https://sumo.dlr.de/extractTest.php?path=sumo/pedestrian_model/striping/use_crossing/straight_ll
If you cannot figure it out, provide your inputs.

Am Fr., 17. Mai 2024 um 10:13 Uhr schrieb Francesco PETRAROLI via sumo-user
:

> but if I manually build a route then sumo blocks me if I try to follow the
> opposite direction of a footway
>
> Il giorno ven 17 mag 2024 alle ore 10:09 Jakob Erdmann via sumo-user <
> sumo-user@eclipse.org> ha scritto:
>
>> Pedestrians may always use both directions of a footway or sidewalk.
>>
>> Am Fr., 17. Mai 2024 um 09:20 Uhr schrieb Francesco PETRAROLI via
>> sumo-user :
>>
>>> Is there a way to build a footway single lane that allows pedestrians to
>>> use it in both directions or do I need to create a lane for the other way
>>> (as currently i do)?
>>> ___
>>> 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 about footways

2024-05-17 Thread Jakob Erdmann via sumo-user
Pedestrians may always use both directions of a footway or sidewalk.

Am Fr., 17. Mai 2024 um 09:20 Uhr schrieb Francesco PETRAROLI via sumo-user
:

> Is there a way to build a footway single lane that allows pedestrians to
> use it in both directions or do I need to create a lane for the other way
> (as currently i do)?
> ___
> 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] Limit amount of entities

2024-05-16 Thread Jakob Erdmann via sumo-user
sumo option --max-num-vehicles 2000 serves this purpose.

Am Fr., 17. Mai 2024 um 05:51 Uhr schrieb Petr Chytil via sumo-user <
sumo-user@eclipse.org>:

> Hi All,
> I have scenario with "flows", is there a way to pause the generation of
> vehicles at some amount in the simulation, for example 2000?
>
> Thanks, Petr
> ___
> 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] set crossing edge

2024-05-16 Thread Jakob Erdmann via sumo-user
Never mind my earlier response. You have to define the crossing with only
edge 287540586#6 because the reverse edge is purely a sidewalk and
therefore doesn't have to be crossed.

Am Do., 16. Mai 2024 um 12:07 Uhr schrieb Francesco PETRAROLI via sumo-user
:

> okay
>
> Il giorno gio 16 mag 2024 alle ore 12:01 Jakob Erdmann via sumo-user <
> sumo-user@eclipse.org> ha scritto:
>
>> Please zip and attach the network file.
>>
>> Am Do., 16. Mai 2024 um 10:20 Uhr schrieb Francesco PETRAROLI via
>> sumo-user :
>>
>>> from my .net.xml file pedestrians were already disallowed from that lane.
>>>
>>> Il giorno gio 16 mag 2024 alle ore 10:08 Jakob Erdmann via sumo-user <
>>> sumo-user@eclipse.org> ha scritto:
>>>
>>>> In order for the crossing to work you have to disallow pedestrians on
>>>> the road (otherwise the road models shared space and doesn't need a
>>>> crossing). See
>>>> https://sumo.dlr.de/docs/Simulation/Pedestrians.html#pedestrian_simulation
>>>>
>>>> Am Do., 16. Mai 2024 um 09:56 Uhr schrieb Francesco PETRAROLI via
>>>> sumo-user :
>>>>
>>>>> Goodmorning, I would like to set crossing lanes in my .net.xml file in
>>>>> order to simulate pedestrian trips, but when I try to set them I get 
>>>>> errors
>>>>> like this one (attached file).
>>>>> ___
>>>>> 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] Regarding duaiterate.py

2024-05-16 Thread Jakob Erdmann via sumo-user
1. No, during the iteration itself but you can view any single iteration
afterwards by loading the .sumocfg file in the iteration folder
2. It's not common but still possible if the
"fastest-path-in-the-empty-network"-routes happen to be the best. Though
eventually, the iterations should rediscover the initial solution.

Am Do., 16. Mai 2024 um 11:43 Uhr schrieb Rohan Verma via sumo-user <
sumo-user@eclipse.org>:

> Dear community,
> I tried DUA using duaiterate.py and I had two doubts. Any help on these
> would be greatly appreciated.
> 1. Is it possible to use SUMO-GUI instead of SUMO while using
> duaiterate.py?
> 2. My first iteration has the minimum average travel time for the whole
> simulation and the subsequent iterations have significantly higher average
> travel time, is this behaviour normal?
> 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] set crossing edge

2024-05-16 Thread Jakob Erdmann via sumo-user
Please zip and attach the network file.

Am Do., 16. Mai 2024 um 10:20 Uhr schrieb Francesco PETRAROLI via sumo-user
:

> from my .net.xml file pedestrians were already disallowed from that lane.
>
> Il giorno gio 16 mag 2024 alle ore 10:08 Jakob Erdmann via sumo-user <
> sumo-user@eclipse.org> ha scritto:
>
>> In order for the crossing to work you have to disallow pedestrians on the
>> road (otherwise the road models shared space and doesn't need a crossing).
>> See
>> https://sumo.dlr.de/docs/Simulation/Pedestrians.html#pedestrian_simulation
>>
>> Am Do., 16. Mai 2024 um 09:56 Uhr schrieb Francesco PETRAROLI via
>> sumo-user :
>>
>>> Goodmorning, I would like to set crossing lanes in my .net.xml file in
>>> order to simulate pedestrian trips, but when I try to set them I get errors
>>> like this one (attached file).
>>> ___
>>> 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] set crossing edge

2024-05-16 Thread Jakob Erdmann via sumo-user
In order for the crossing to work you have to disallow pedestrians on the
road (otherwise the road models shared space and doesn't need a crossing).
See
https://sumo.dlr.de/docs/Simulation/Pedestrians.html#pedestrian_simulation

Am Do., 16. Mai 2024 um 09:56 Uhr schrieb Francesco PETRAROLI via sumo-user
:

> Goodmorning, I would like to set crossing lanes in my .net.xml file in
> order to simulate pedestrian trips, but when I try to set them I get errors
> like this one (attached file).
> ___
> 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] E3 Detector XML showing "-1" on several detectors

2024-05-16 Thread Jakob Erdmann via sumo-user
The relevant warning is " Vehicle ... arrived inside e3Detector". Example:
e3_4 only covers two exit lanes but the vehicles may change lanes and thus
leave the intersection on any of 5 or potentially 8 lanes.

Am Do., 16. Mai 2024 um 09:41 Uhr schrieb Mirko Barthauer via sumo-user <
sumo-user@eclipse.org>:

> Hi Alex,
>
>
>
> the problem is related to lane changes and where the vehicles are
> inserted. E3 detectors can count only those vehicles which have passed
> first a datEntry and then a datExit section. All others get discarded in
> the output. Please add more datEntry sections for each detector to cover
> all variants of entry and exit lane or define the departure lane (attribute
> departLane
> )
> explicitly so that vehicles don't have to change lane in the intersection
> approach.
>
>
>
> Best regards
>
> Mirko
>
>
>
>
>
>
>
>
>
> -Original-Nachricht-
>
> Betreff: [sumo-user] E3 Detector XML showing "-1" on several detectors
>
> Datum: 2024-05-14T14:14:48+0200
>
> Von: "alex david figueredo mora via sumo-user" 
>
> An: "sumo-user@eclipse.org" 
>
>
>
>
>
>
> I created a simulation and places the detector in places I think it's
> logical plus their corresponding datEntry and datExit. The thing is that at
> several detectors I'm getting a whole line of -1, like no vehicle at all
> went through that detector, which is not the case on the simulation.
>
> I am attaching the files I am using for the simulation to see if anyone is
> able to help. Maybe I am not placing things properly.
>
>
> 
> ___
> 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] Calculating charging time of a ev vehicle at a charging station

2024-05-16 Thread Jakob Erdmann via sumo-user
@Div, from a technical point of view, it wouldn't be to hard to let the
user define a charging-rate-curve parameter for the vehicle. Are you aware
of available data on such curves?

Am Di., 14. Mai 2024 um 12:32 Uhr schrieb The div via sumo-user <
sumo-user@eclipse.org>:

> You can get the chargingBegin/End and totalEnergyCharged values for each
> vehicle from chargingstations-output.
>
> In your calculation the charging station has an efficiency factor that
> reduces the effective power - you need to apply that.
>
> Yes your calculation will give you a time, however that will be shorter
> than real world times for any effective power over ~7kW
>
> If you want to look at real world times you have to consider the charging
> rate supported by the vehicle and the charge curve of the vehicle. The
> latter varies non-linearly depending on the battery level, with higher
> charge rates being supported at lower levels of charge. It's non-linear
> because most vehicle BMS step change the charge levels during charging.
> Sumo doesn't attempt to model this at the moment.
>
> You could do something with traci and override charge levels but this
> would negate the utility of the charging station output files.
>
> Temperature also has a significant impact on charging rate and ev battery
> usage - summer/winter variations of 30% are not uncommon - that could
> mostly be handled with different parameters for ev/chargestation in
> separate runs for each 'temperature' (some subtleties of battery
> temperature/conditioning vs external temperature would be missed)
>
> Basically I don't think modelling real world charging is feasible with
> SUMO at the moment* - I'd just qualify any results by saying you're
> underestimating ev charge times.
>
> *if chargingstations supported/honoured a 'chargeRate' for each vehicle
> then with traci get/set methods for this it would be feasible to better
> model actual behaviour of charge stations.
>
> Cheers
> Div
>
>
>
>
>
>
>
>  Original Message 
> On 14 May 2024, 10:51, TIPPANA RAJESH via sumo-user <
> sumo-user@eclipse.org> wrote:
>
>
> How to get the charging time(t in secs) required by a ev vehicle at a
> particular charging station to get it fully charged?
>
> Suppose,
> maxBatteryCapacity = M Wh
> actualBatteryCapacity = x Wh
> Power of charging station = P Watt
>
> t = (M-x)/P * 3600 secs. Will this work.
>
>
>
>
> ___
> 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] Air traffic

2024-05-13 Thread Jakob Erdmann via sumo-user
We noticed that people are using the existing capabilities of SUMO for
airport and air traffic simulation and wanted to support them in this.
There are no special car following models for aircraft yet but there might
be completely different movement models in the future (similar to how
pedestrians have their own movement model).

Am Mo., 13. Mai 2024 um 09:31 Uhr schrieb Petr Chytil via sumo-user <
sumo-user@eclipse.org>:

> Hi, I have question about the new vClasses "aircraft".
> Are there plans to add air traffic? Or what it is generally good for? Are
> there some other attributes like CarFollowing models?
>
> Thank Petr
> ___
> 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] Get and Set methods of attributes like power, chargeDelay for charging stations

2024-05-12 Thread Jakob Erdmann via sumo-user
This functionality isn't yet implemented in TraCI:
https://github.com/eclipse-sumo/sumo/issues/12772
The easiest workaround is probably a python script that generates/modifies
the chargingStation file before starting the simulation.

Am Sa., 11. Mai 2024 um 12:24 Uhr schrieb TIPPANA RAJESH via sumo-user <
sumo-user@eclipse.org>:

> Hi,
> I am working on a project which needs to set a random power and
> chargeDelay for all the charging stations at the start of each episode.
> Unfortunately, I am not able find any get/set methods for these attributes.
> Kindly, let me know if there are any ways I can achieve the above
> objective.
>
> Thank you
>
> Warm regards
> Rajesh
> ___
> 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 left detector without entering

2024-05-12 Thread Jakob Erdmann via sumo-user
here is an example:
https://sumo.dlr.de/extractTest.php?path=sumo/output/e3/junction_output/interior

Am Sa., 11. Mai 2024 um 04:02 Uhr schrieb alex david figueredo mora via
sumo-user :

> I've been running a simulation in which I want to find the LOS (Level of
> Service) so I placed several E3 detectors and their corresponding entry and
> exit detector.
>
> Now I am getting a lot of warnings regarding vehicles leaving the detector
> without entering it. I read that you have to set "OpenEntry" to "true" in
> order to avoid this warning, but I haven't been able to find that internal
> attribute anywhere.
> ___
> 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] [EXTERNAL] AW: Total travel time

2024-05-12 Thread Jakob Erdmann via sumo-user
You can retrieve tripinfo values that are accumulated over all vehicles
with traci.simulation.getParameter. See
https://sumo.dlr.de/docs/TraCI/Simulation_Value_Retrieval.html#device_parameter_retrieval

Am Fr., 10. Mai 2024 um 13:45 Uhr schrieb Ayomide Afolabi via sumo-user <
sumo-user@eclipse.org>:

> Thanks for your response.
>
> Get Outlook for Android 
>
> --
> *From:* Mirko Barthauer 
> *Sent:* Friday, May 10, 2024 12:40:28 PM
> *To:* Sumo project User discussions 
> *Cc:* Ayomide Afolabi 
> *Subject:* [EXTERNAL] AW: [sumo-user] Total travel time
>
> Hi,
>
>
>
> the accumulated values which can be displayed after the simulation data
> cannot be accessed through TraCI. Single vehicles can only be queried in
> TraCI as long as they don't have reached their destination. You can infer
> the time a vehicle is in the network from traci.vehicle.getDeparture()
> 
> , traci.vehicle.getDepartureDelay()
> 
> and traci.simulation.getCurrentTime()
> 
> .
>
>
>
> Best regards
>
> Mirko
>
>
>
>
>
>
>
>
>
> -Original-Nachricht-
>
> Betreff: [sumo-user] Total travel time
>
> Datum: 2024-05-10T10:59:04+0200
>
> Von: "Ayomide Afolabi via sumo-user" 
>
> An: "sumo-user@eclipse.org" 
>
>
>
>
>
>
> Hi,
>
> How can I output total travel time using Traci.
>
> Get Outlook for Android 
>
>
> 
>
> *CAUTION:* This email originated from outside of KSU. Use caution
> replying or supplying information, clicking links, or opening attachments.
> If you suspect the message is fraudulent, report it using the Phishing
> Alert Button  or
> forward the message to ab...@kennesaw.edu.
>
> ___
> 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.20.0 released

2024-05-07 Thread Jakob Erdmann via sumo-user
Dear friends and users,
we are happy to announce the release of SUMO version 1.20.0.
The download links are at https://sumo.dlr.de/Download.
If you cite the new release in your publications, please use the DOI
10.5281/zenodo.11120728 https://zenodo.org/records/11120728

This release brings improvements in modelling temporary blockages and OSM
data handling. It also fixes a regression in netedit that was causing
missing connections.
The most surprising fix was for giant motorway ring roads, mistakenly
classified as roundabouts.

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 https://sumo.dlr.de/Changelog.

### Enhancements
- sumo
  - Added new vClasses: subway, scooter, aircraft, cable_car, wheelchair,
drone, container
  - chargingStation now supports attribute "parkingArea". When set,
vehicles will only charge after reaching that parkingArea.
  - Sumo now allows specifying departure and arrival positions in network
or geo-coordinates
  - carFollowModel "Rail" now permits loading custom model curves for
traction and resistance
  - It is now possible to set the vehicle routing mode via xml input or
option. This allows ignoring permission changes from rerouters.
  - A personFlow with depart="triggered" can now be distributed over a flow
of vehicles
  - vTypes and parkingAreas now support attribute 'parkingBadges' to
control access

- netedit
  - Improved rendering speed for large networks.
  - Added option for selective hiding of short edges when zoomed out
(enabled by default to increase frame rate)

- sumo-gui
  - Hotkey B now sets a breakpoint at the current time. Alt+B ahead of the
current time.
  - It is now possible to set a distinct image file for each train carriage
using param 'carriageImages'.

netconvert
  - Added option -junctions.endpoint-shape to compute the junction shape
based on custom edge endpoints instead of the usual geometry heuristics.
  - Edge widths are now imported from OSM. The new option --ignore-widths
can be used to restore legacy behavior.
  - OSM import now support importing restricted turn lane information (i.e.
turn:bus:lanes)
  - More rail signals are imported from OSM and option --osm.railsignals
can be used for fine grained control of signal interpretation.
  - OSM import now exports subways as vClass "subway" and aerialway as
"cable_car"
  - Now importing access="no" from OSM

polyconvert
  - Option --osm.merge-relations now handles "holes"
  - Improved import of waterbodies and harbours from OSM

- duarouter: Added option --weights.tls-penalty to improve reliability of
travel time.

- TraCI / libsumo
  - Function vehicle.replaceStop(..., teleport=1) is now usable without
enabling teleports (by using a "jump" to move the vehicle)
  - inductionloop.getIntervalOccupancy, getIntervalMeanSpeed and
getIntervalVehicleNumber are now retrievable in meso
  - in mesosim, lane.setMaxSpeed now only affects a single queue when
running with --meso-lane-queue
  - Added functions edge.getFromJunction, edge.getToJunction,
junction.getIncomingEdges, junction.getOutgoingEdges to query the network
topology.
  - The routing mode value ROUTING_MODE_INGNORE_TRANSIENT_PERMISSIONS can
now be used to ignore temporary permission changes from rerouters.
  - Added function trafficlight.getSpentDuration

- Tools
  - added createScreenshotSequence.py to help with creating videos from a
simulation with scripted view movements.
  - tileGet.py supports downloading rendered tiles from OSM.
  - matsim_importPlans.py now supports loading input with coordinates
  - osmWebWizard now takes into account traffic lights for intermodal
routing to avoid persons missing their ride
  - osmWebWizard now runs with option --tls.actuated.jam-threshold 30 to
improve the capabilities (and efficiency) of traffic lights
  - ptlines2flows.py supports option --join to concatenate lines which
serve opposite directions. This reduces conflict on single-track rail lines


### Bugfixes
- sumo
  - chargingstations-output no longer records charging when battery is full
  - Fixed undefined behavior during opposite direction driving
  - Fixed crash when loading NEMA controller with pedestrian crossings.
  - Fixed bug where person enters the wrong vehicle on looped public
transport line
  - Fixed emergency braking in roundabout.
  - Fixed invalid traffic demand when defining poission flows with rate
below 0.001
  - Fixed invalid pedestrian jam warning
  - Fixed several taxi related bugs related to idling and dispatch
  - Fixed several railway related bugs related to reversal and portion
working

- netedit
  - Lane markings are rendered below the junction bubble again (regression
in 1.12.0)
  - The unsupported attribute "lines" is no longer written for a personTrip
(regression in 1.15.0)
  - Fixed crash on undo (regression in 1.15.0)
  - Fixed invalid "save" dialog after loading additionals from file.
(regression in 1.16.0)
  - The size and 

Re: [sumo-user] Parking flow

2024-05-04 Thread Jakob Erdmann via sumo-user
The output of randomTrips is (as the name suggest) quite random and thus
generally not realistic.
The behavior you describe is a bit unclear though. If you only add a single
stop per vehicle then the vehicle should drive to its original destination
and disappear after finishing the stop.
Check the --vehroute-output to see how many stops a vehicle actually made
and how it's final route looks.

If you want more complex plans (i.e. stop and then go back to the origin,
you need more complex tooling.
Take a look at
SAGA (https://sumo.dlr.de/docs/Contributed/index.html)
and activitygen:
https://sumo.dlr.de/docs/Demand/Activity-based_Demand_Generation.html

Or if you are inclined to programming in python, here is an idea for how
randomTrips could accomodate your use case in a general fashion (pull
requests are welcome)
https://github.com/eclipse-sumo/sumo/issues/14817
https://github.com/eclipse-sumo/sumo/issues/14818

regards,
Jakob


Am Sa., 4. Mai 2024 um 09:50 Uhr schrieb Francesco PETRAROLI via sumo-user <
sumo-user@eclipse.org>:

> Goodmorning,
> I would like to ask a question regarding parking maneuvers. Actually
> vehicles in my map go to the parking areas and stop correctly. I set the
> parking areas manually with netedit module and then I added the stop
> duration by using addStops2Routes.py, routes created with randomtrips.py in
> which I also gave .dst.xml and .src.xml files. In destination i gave the
> edges next to all the parking areas of my net file. After that I used
> generateParkingAreaRerouter.py in order to find a nearby parking area if
> the original selection was full.
> My problem is this: when a vehicle terminates its stop time then it moves
> to search for a new parking spot, that is not realistic and it is not what
> I would like to do. How can I set a new route or something for each vehicle
> in order to go away, for example to edges in the .src.xml file? I was
> talking about new routes, but there are probably other options to
> implement, I do not know.
> 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] Parking a vehicle flow including explicit drivers

2024-05-01 Thread Jakob Erdmann via sumo-user
In the latest dev version you can distribute a triggered personFlow with
randomized departures over a flow of vehicles. See
https://github.com/eclipse-sumo/sumo/issues/14806 and the referenced test
commits.

Am Mi., 1. Mai 2024 um 11:55 Uhr schrieb Marc Zofka via sumo-user <
sumo-user@eclipse.org>:

> Dear SUMO-Users,
>
>
>
> we are using SUMO to simulate a large parking space.
>
>
>
> We want to simulate the interaction of parking vehicles with explicit
> drivers (= persons), leaving and entering their vehicle,
>
> and came across the following page [1], which demonstrates how to start
> the simulation with a person inside a vehicle.
>
>
>
> Is it possible to somehow couple this with the probabilistic definition of
> vehicles flows, so that by certain probability, vehicles are spawned
> including drivers?
>
> As depicted in [1] it works for exact one vehicle or multiple vehicles,
> when duplicating the  definition multiple times manually.
>
>
>
> But we are looking for an “automatic approach”, ideally using
> .
>
>
>
> Best regards,
>
> Marc
>
>
>
>
>
> [1]
> https://sumo.dlr.de/docs/Specification/Persons.html#starting_the_simulation_in_a_vehicle
>
>
>
> --
>
> ………
>
> Marc René Zofka, M.Sc.
> Abteilungsleiter TKS | Department Manager TCS
> Intelligent Systems and Production Engineering
>
> FZI Forschungszentrum Informatik
> Haid-und-Neu-Str. 10–14
> 76131 Karlsruhe, Germany
> Tel.: +49 721 9654-366
> zo...@fzi.de
>
> www.fzi.de | www.twitter.com/FZI_official |
> www.linkedin.com/company/fzi-official | www.youtube.com/FZIchannel
>
> ………
> FZI Forschungszentrum Informatik
> Stiftung des bürgerlichen Rechts
> Stiftung Az: 14-0563.1 Regierungspräsidium Karlsruhe
> Vorstand: Prof. Dr. Stefan Nickel, Jan Wiesenberger, Prof. Dr.-Ing. J.
> Marius Zöllner
> Vorsitzender des Kuratoriums: Prof. Dr. Thomas Hirth
> ………
>
>
> ___
> 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] 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] Random Bus-Trips in OSM Web Wizard

2021-12-01 Thread Jakob Erdmann via sumo-user
There are two approaches to get busses via the osmWebWizard:
- activating "Bus" in the traffic modes selection (those will be random and
the busses will not stop)
- activating the option "Import Public Transport" in the main panel  (this
will generated a bus schedule for all bus routes and stops defined in OSM)

I recommend the second option, for details on how to influence the schedule
generation see 'build.bat' and
https://sumo.dlr.de/docs/Tools/Misc.html#ptlines2flowspy (call it with
option --help).

regards,
Jakob

Am Mi., 1. Dez. 2021 um 09:03 Uhr schrieb Brandon Cedric Patangan via
sumo-user :

> Hi, Brandon Patangan again. Regarding the OSM Web Wizard scenario I'm
> working on, I understand that buses are generated using randomtrips.py as
> well.
>
> It seems that the routes in OSM are incomplete from my looking at the
> output file, but I was hoping to add my own routes since I am familiar with
> bus lines travelling through the study area. Is there a way to do this and
> constrain the buses to only travel on those routes (not make any turns into
> areas that do not allow buses)? Also to control where they are generated on
> the map and the end of the route. Thanks!
>
> Brandon
> ___
> 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] Get vehicle flow rate

2018-11-11 Thread Jakob Erdmann via sumo-user
see
http://sumo.dlr.de/wiki/Simulation/Output/Lane-_or_Edge-based_Traffic_Measures

Am Mo., 12. Nov. 2018 um 02:46 Uhr schrieb Lorenzo Cano Cesconetto via
sumo-user :

> Is it possible to easily get the average vehicle flow rate for each edge?
> I think it could be a script that reads the trip-info output file.
> Thanks
>
> ___
> sumo-user mailing list
> sumo-u...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>

___
sumo-user mailing list
sumo-u...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user
___
sumo-user mailing list
sumo-user@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] use State Plain Coordinates to move vehicle (MoveToXY)

2018-10-10 Thread Jakob Erdmann via sumo-user
The problem comes from an earlier step because the lon,lat values are
outside the network boundary to begin with (The network covers an area
around lon=-122,lat=37 whereas your lon,lat inputs are widely off the
mark).
It turns out that "CA State Plane NAD83 coordinate" is something differente
altogether from NAD83 (as I was assuming).
You therefore need to convert your values to lon,lat in WSG84 using a
separate projection before converting lon,lat into sumo network coordinates.
This can be done using the python proj library using the appropriate proj4
code (though I'm not sure which one exactly as there appear to be multiple
zones for CA)
see

http://spatialreference.org/ref/epsg/nad83-california-zone-3-ftus/
http://spatialreference.org/ref/epsg/nad83-california-zone-3-ftus/proj4/
proj = pyproj.Proj("+proj=lcc +lat_1=38.43
+lat_2=37.07 +lat_0=36.5 +lon_0=-120.5 +x_0=200.0001016
+y_0=50.0001016001 +ellps=GRS80 +datum=NAD83
+to_meter=0.3048006096012192 +no_defs")
lon,lat = proj(x,y, inverse=True)

regards,
Jakob




Am Mi., 10. Okt. 2018 um 08:08 Uhr schrieb Gama Lins de Araujo, Thais <
thais.g...@tum.de>:

>  convBoundary="205.71,83.75,327.03,729.01"
> origBoundary="-122.300034,37.837827,-122.295689,37.846489"
> projParameter="+proj=utm +zone=10 +ellps=WGS84 +datum=WGS84 +units=m
> +no_defs"/>
>
> lon, lat values for first x2,y2 example with *x2, y2 =
> net.convertLonLat2XY(lon, lat, rawUTM=True**): (This works best) *
> lon=-127.488699 lat=0.000207
> x2=4.956658 y2=22.982225
>
> lon, lat values for first x2,y2 example with *x2, y2 =
> net.convertLonLat2XY(lon, lat):*
> lon=-127.488699 lat=0.000207
> x2=-561578.553342 y2=-4188031.457775
>
> --
> *Von:* Jakob Erdmann 
> *Gesendet:* Mittwoch, 10. Oktober 2018 07:57:34
> *An:* Gama Lins de Araujo, Thais
> *Betreff:* Re: [sumo-user] use State Plain Coordinates to move vehicle
> (MoveToXY)
>
> Please post the contents of the  element from your .net.xml file
> (to be found at the top of the file). Along with the lon,lat values
> corresponding the the first x2,y2 example.
>
> Am Mi., 10. Okt. 2018 um 06:20 Uhr schrieb Gama Lins de Araujo, Thais <
> thais.g...@tum.de>:
>
>> Hello Mr. Jakob, I am very sorry once again, but it still does not work.
>>
>> When I use this:
>>
>> x2, y2 = net.convertLonLat2XY(lon, lat, rawUTM=True)
>>
>> I get these outputs to use in moveToXY:
>>
>> x2=4.956658 y2=22.982225
>> x2=5.009388 y2=34.633814
>> x2=5.097475 y2=45.349363
>> x2=4.368089 y2=57.215837
>> x2=4.624426 y2=69.318226
>> x2=5.126126 y2=81.546192
>> x2=4.925263 y2=95.019266
>> x2=4.932274 y2=108.620357
>>
>> and the vehicle drives on the left side of the road.
>>
>> If I use what you said :
>>
>> x2, y2 = net.convertLonLat2XY(lon, lat)
>>
>> I get this kind of output:
>>
>> x2=-561578.553342 y2=-4188031.457775
>> x2=-561578.500612 y2=-4188019.806186
>> x2=-561578.412525 y2=-4188009.090637
>> x2=-561579.141911 y2=-4187997.224163
>> x2=-561578.885574 y2=-4187985.121774
>> x2=-561578.383874 y2=-4187972.893808
>> x2=-561578.584737 y2=-4187959.420734
>> x2=-561578.577726 y2=-4187945.819643
>> x2=-561578.277498 y2=-4187931.796405
>> x2=-561577.983976 y2=-4187918.083758
>>
>> and the vehicle is nowhere to be seen.
>>
>> Is there anything I can do to fix this issue?
>>
>> Thak you very much for your help.
>>
>> --
>> *Von:* Jakob Erdmann 
>> *Gesendet:* Dienstag, 9. Oktober 2018 08:56:19
>> *An:* Gama Lins de Araujo, Thais
>> *Cc:* Sumo project User discussions; sumo-user
>> *Betreff:* Re: [sumo-user] use State Plain Coordinates to move vehicle
>> (MoveToXY)
>>
>>
>> when converting lon, lat to network coordinates, leave out the rawUTM=True.
>> moveToXY requires the shifted positions rather than raw UTM.
>>
>>   x2, y2 = net.convertLonLat2XY(lon, lat)
>>
>>
>>
>> Am Di., 9. Okt. 2018 um 08:03 Uhr schrieb Gama Lins de Araujo, Thais <
>> thais.g...@tum.de>:
>>
>>> Hello Mr Jakob,
>>>
>>>
>>> I am sorry to bother again, but I replaced the line of code I had with
>>> the one you provided, and the simulation looks just the same. The vehicle
>>> drives by the side of the road the whole time, and it also seems not to
>>> have the right angle. This is how my code looks like now:
>>>
>>>
>>> x,y = df_dropped_1st_veh_instance['Local_X'].iloc[k], 
>>> df_dropped_1st_veh_instance['Local_Y'].iloc[k]
>>> lon, lat = net.convertXY2LonLat(x * 0.3048, y * 0.3048, True)
>>> x2, y2 = net.convertLonLat2XY(lon, lat, rawUTM=True)
>>>
>>> traci.vehicle.moveToXY(traci_veh, '', 0, x2, y2, angle, 2)
>>>
>>> for the angle I used INVALID_DOUBLE_VALUE and transformed it to radians.
>>>
>>> Here is a sample of the data I have:
>>>
>>>Local_X   Local_Y Global_X Global_Y
>>> 0   16.46735.381  6451137.641  1873344.962
>>> 1   16.44739.381  6451140.329  1873342.000
>>> 2   16.42643.381  6451143.018  1873339.038
>>> 3   16.40547.380  6451145.706  1873336.077
>>> 4   16.385 

Re: [sumo-user] (SUMO) TraaS Dynamic Routing & Incomplete Routes

2018-03-20 Thread Jakob Erdmann via sumo-user
Change target fails if the new target cannot be reached from the current
position. This is unrelated to the activation of automatic routing.
Also, automatic routing can be activated for all vehicles by setting the
option --device.rerouting.probability 1

2018-03-20 17:48 GMT+01:00 Jonathan Harper :

> Hi Jakob,
>
>
>
> Thanks for all the help so far, I’ve tried changing the target using
> Vehicle.changeTarget, however, I receive the error “SUMO error for command
> 196: Route replacement failed for veh”. My thinking is that I need to
> somehow activate the automatic routing, but I can’t seem to find a way to
> do it in TraaS.
>
>
>
> Any help would be greatly appreciated
>
>
>
> *From: *Jakob Erdmann 
> *Sent: *20 March 2018 12:12
> *To: *Jonathan Harper 
> *Cc: *sumo-u...@lists.sourceforge.net
> *Subject: *Re: [sumo-user] (SUMO) TraaS Dynamic Routing & Incomplete
> Routes
>
>
>
> You can define everything at runtime via TraCI.
>
>
>
> 2018-03-20 12:21 GMT+01:00 Jonathan Harper :
>
> Hi Jakob,
>
>
>
> Thanks for the swift response.
>
> For this to work must I have set up the trip before runtime, or can I
> define the trips during runtime and ask the vehicles to reroute during
> runtime?
>
>
>
> Kind regards
>
>
>
> *From: *Jakob Erdmann 
> *Sent: *20 March 2018 11:04
> *To: *Jonathan Harper 
> *Cc: *sumo-u...@lists.sourceforge.net; sumo-user@eclipse.org
> *Subject: *Re: [sumo-user] (SUMO) TraaS Dynamic Routing & Incomplete
> Routes
>
>
>
> Hello,
>
> - automatic routing is suitable if you just want vehicles to react to
> changing road conditions (congestion). This causes them to periodically
> check if there is a better route and then change the route but keep the
> original destination
>
> - if you need more influence on the timing or individual routing
> preferences you can call traci.vehicle.rerouteTravelTime
>
> - if you need to change the destination you can call
> traci.vehicle.changeTarget
>
> - for intermediate goals that must be visited you can define 'via' edge
> using traci.vehicle.setVia
>
> - if you want to compute fastest routes without affecting a vehicle you
> can call simulation.findRoute
>
> regards,
>
> Jakob
>
>
>
> 2018-03-20 11:49 GMT+01:00 Jonathan Harper via sumo-user <
> sumo-u...@lists.sourceforge.net>:
>
> Hello,
>
> I'm unsure on how to dynamically assign routes to vehicles (with each
> vehicle having a route which is unique to them) depending on certain
> conditions (i.e. traffic jams, congestion). I'm using TraaS to interface
> with SUMO and need to react to certain conditions and dynamically assign
> routes to particular vehicles depending on their location relative to the
> road condition.
> I've read about automatic re-routing here: http://sumo.dlr.de/wiki/
> Demand/Automatic_Routing, however I'm unsure how to activate this (if
> it's not done by default), or if this is even the correct solution.
> So far I've been able to assign a route in TraaS, but I can't seem to use
> DUAROUTER during runtime to be able to generate the route from point A to C
> without defining the intermediate edges, C (trip -> route). From my
> understanding a trip is a start and end destination, whereas a route is
> this with the addition of all of the intermediate edges passed through.
> SumoStringList listExample = new SumoStringList();
> ArrayList edgeList = new ArrayList<>();
>
> edgeList.add("edge1");
> edgeList.add("edge3");
> listExample.addAll(edgeList);
>
> conn.do_job_set(Route.add("test", listExample));
>
> When ran (without edge2 being included in the edgeList) I get the
> error Vehicle 'testVehicle' has no valid route. No connection between edge
> 'edge1' and edge 'edge3'., which is resolved upon including edge2.
> Is it possible to convert trips -> routes during runtime? Is there a way
> to call DUAROUTER (or another tool) during runtime in TraaS?
> Many thanks
>
>
>
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> sumo-user mailing list
> sumo-u...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>
>
>
>
>
>
>
> [image:
> https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]
> 
>
> Virus-free. www.avast.com
> 
>
>
>
>
>

Re: [sumo-user] (SUMO) TraaS Dynamic Routing & Incomplete Routes

2018-03-20 Thread Jakob Erdmann via sumo-user
You can define everything at runtime via TraCI.

2018-03-20 12:21 GMT+01:00 Jonathan Harper :

> Hi Jakob,
>
>
>
> Thanks for the swift response.
>
> For this to work must I have set up the trip before runtime, or can I
> define the trips during runtime and ask the vehicles to reroute during
> runtime?
>
>
>
> Kind regards
>
>
>
> *From: *Jakob Erdmann 
> *Sent: *20 March 2018 11:04
> *To: *Jonathan Harper 
> *Cc: *sumo-u...@lists.sourceforge.net; sumo-user@eclipse.org
> *Subject: *Re: [sumo-user] (SUMO) TraaS Dynamic Routing & Incomplete
> Routes
>
>
>
> Hello,
>
> - automatic routing is suitable if you just want vehicles to react to
> changing road conditions (congestion). This causes them to periodically
> check if there is a better route and then change the route but keep the
> original destination
>
> - if you need more influence on the timing or individual routing
> preferences you can call traci.vehicle.rerouteTravelTime
>
> - if you need to change the destination you can call
> traci.vehicle.changeTarget
>
> - for intermediate goals that must be visited you can define 'via' edge
> using traci.vehicle.setVia
>
> - if you want to compute fastest routes without affecting a vehicle you
> can call simulation.findRoute
>
> regards,
>
> Jakob
>
>
>
> 2018-03-20 11:49 GMT+01:00 Jonathan Harper via sumo-user <
> sumo-u...@lists.sourceforge.net>:
>
> Hello,
>
> I'm unsure on how to dynamically assign routes to vehicles (with each
> vehicle having a route which is unique to them) depending on certain
> conditions (i.e. traffic jams, congestion). I'm using TraaS to interface
> with SUMO and need to react to certain conditions and dynamically assign
> routes to particular vehicles depending on their location relative to the
> road condition.
> I've read about automatic re-routing here: http://sumo.dlr.de/wiki/
> Demand/Automatic_Routing, however I'm unsure how to activate this (if
> it's not done by default), or if this is even the correct solution.
> So far I've been able to assign a route in TraaS, but I can't seem to use
> DUAROUTER during runtime to be able to generate the route from point A to C
> without defining the intermediate edges, C (trip -> route). From my
> understanding a trip is a start and end destination, whereas a route is
> this with the addition of all of the intermediate edges passed through.
> SumoStringList listExample = new SumoStringList();
> ArrayList edgeList = new ArrayList<>();
>
> edgeList.add("edge1");
> edgeList.add("edge3");
> listExample.addAll(edgeList);
>
> conn.do_job_set(Route.add("test", listExample));
>
> When ran (without edge2 being included in the edgeList) I get the
> error Vehicle 'testVehicle' has no valid route. No connection between edge
> 'edge1' and edge 'edge3'., which is resolved upon including edge2.
> Is it possible to convert trips -> routes during runtime? Is there a way
> to call DUAROUTER (or another tool) during runtime in TraaS?
> Many thanks
>
>
>
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> sumo-user mailing list
> sumo-u...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>
>
>
>
>
>
> 
>  Virus-free.
> www.avast.com
> 
> <#m_-5125007387062299873_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
sumo-user mailing list
sumo-u...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user
___
sumo-user mailing list
sumo-user@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] How to get the results of the simulation

2017-10-31 Thread Jakob Erdmann via sumo-user
add it like this (--log and logfile.txt are two separate items):
traci.start([sumoBinary, '-c', os.path.join('data', 'run.sumocfg'),
"--step-length", "0.1", "--duration-log.statistics","--log", "logfile.txt"])

2017-10-31 17:06 GMT+01:00 Sara el hamdani :

> My simulation runner is like this:
>
> traci.start([sumoBinary, '-c', os.path.join('data', 'run.sumocfg'),
> "--step-length", "0.1", "--duration-log.statistics","--log logfile.txt"])
>
> When I add "--log logfile.txt" I get this error relation to TraCi server
> connection:
>
> [image: Images intégrées 1]
>
>
>
> 2017-10-31 12:03 GMT+00:00 Jakob Erdmann :
>
>> run your simulation with the option --duration-log.statistics and --log
>> logfile.txt
>> you will find the results in logfile.txt
>>
>> regards,
>> Jakob
>>
>> 2017-10-31 9:35 GMT+01:00 Sara el hamdani via sumo-user <
>> sumo-u...@lists.sourceforge.net>:
>>
>>> Hello sumo users,
>>>
>>> I need to get the avg. trip duration, avg. trip waiting time and avg.
>>> trip
>>> time loss for both vehicles and pedestrians.
>>>
>>> I couldn't get this results (avg) using reports, but I found vehicles's
>>> avg
>>> on the sumo-gui simulation parameter.
>>>
>>> How could I get pedestrians's avg. trip duration, avg. trip waiting time
>>> and avg. trip time loss?
>>> --
>>> *Best regards*
>>>
>>>
>>> *Sara EL HAMDANI*
>>> *Phd student -Umi University.*
>>> 
>>> --
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>> ___
>>> sumo-user mailing list
>>> sumo-u...@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/sumo-user
>>> ___
>>> sumo-user mailing list
>>> sumo-user@eclipse.org
>>> To change your delivery options, retrieve your password, or unsubscribe
>>> from this list, visit
>>> https://dev.eclipse.org/mailman/listinfo/sumo-user
>>>
>>
>>
>
>
> --
> *Best regards*
>
>
> *Sara EL HAMDANI*
> *Phd student -Umi University.*
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
sumo-user mailing list
sumo-u...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user
___
sumo-user mailing list
sumo-user@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] How to generate 1500 number of vehicles in SUMO with specific routes?

2017-10-26 Thread Jakob Erdmann via sumo-user
5s yellow phase should normally be sufficient.
Please observe the vehicle that is performing emergency braking in the
simulation:
- what is the speed limit on the edge before the traffic light?
- what is the vehicle speed?
- what is the distance of the vehicle to the intersection at the time it
switches to yellow?
- what is the distance of the vehicle to the intersection and what is its
speed  at the time it starts braking?
regards,
Jakob


2017-10-26 8:50 GMT+02:00 Lawrence Soon :

> Hello Jakob,
>
>
> Thanks. The "waited too long" issue has been resolved. However, the Yellow
> Phase is set to 5s while Green Phase is set to 36s in the simulation.
> Observed the deceleration exceed what has been set in rou.xml as follows:
>
>
>  maxSpeed="27.78" sigma="0.5"/>
>
>
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
sumo-user mailing list
sumo-u...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user
___
sumo-user mailing list
sumo-user@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] How to generate 1500 number of vehicles in SUMO with specific routes?

2017-10-26 Thread Jakob Erdmann via sumo-user
Hello,
- the emergency braking and resulting collisions are explained here:
http://sumo.dlr.de/wiki/Simulation/Safety#Deliberately_causing_collisions.
Observe the simulation to determine whether the braking vehicles are going
to fast (hight speedFactor value) or whether the yellow phases are too
short.
- the "waited too long" warnings can result from too much traffic in
relation to the network size but can also be caused by improper route
assignment. See http://sumo.dlr.de/wiki/Demand/Dynamic_User_Assignment
regards,
Jakob


2017-10-26 5:33 GMT+02:00 Lawrence Soon :

> Hi Jakob,
>
>
> I wrote a script to generate 2200 vehicles and I realised the following
> errors after running sumo. Seems that there are always collisions of
> vehicles in the map and vehicles are teleport-ed when the number of
> vehicles are too huge. How to generate a huge number of cars (2.2k for
> example) and to ensure that there are no collisions?
>
>
>
>
> Thanks and have a great day!
>
> Best Regards,
> Lawrence
>
>
> --
> *From:* Jakob Erdmann 
> *Sent:* Thursday, October 19, 2017 2:55 PM
> *To:* Lawrence Soon
>
> *Subject:* Re: [sumo-user] How to generate 1500 number of vehicles in
> SUMO with specific routes?
>
> randomTrips is only usefull if you know nothing about the routes. Since
> you already have the edges, you can specify the flow directly. If you need
> random spacing but an exact number you can use the first definition in my
> previous answer (fixed period) and process that file using the duarouter
> application with the option --randomize-flows. (this will distribute the
> exact number of vehicles randomly in the begin-end time range).
>
> regards,
> Jakob
>
> 2017-10-19 2:24 GMT+02:00 Lawrence Soon :
>
>> Jakob,
>>
>>
>> Good day. I wish to specify a specific route (eg 10 different routes) in
>> my map so that when running randomTrip.py, the generated cars only go to
>> thro' that 10 specific routes.  How to specify the specific route in
>> certain format in a file as an input to the randomTrip.py?
>>
>>
>> For example, 10 specified routes that I wish to generate via
>> randomTrip.py:
>>
>> *route1 = "street1leftleft2 street1btm street2btm1 street2btm2
>> street2right1 street4right1 street4right2 street67leftright street9right"*
>> *route2 = "street8leftright2 street8leftright1 street5top street6top
>> street7top"*
>> *route3 = "street89leftrigth1 street56lefttight street35btmtop1
>> street3leftright street1leftright1 street1leftright2"*
>> *route4 = "street89leftrigth1 street56lefttight street34leftright
>> street13topbtm street1leftright1 street1btm 478355846#0"*
>> *route5 = "street1leftleft2 street1btm street2btm1 smallstreet2mid
>> street24btmtop2 street4right1 street4rightleft street46btmtop1
>> street35btmtop1 173166893#0"*
>> *route6 = "street8leftright2 street8leftright1 street5leftright
>> street3leftright street1leftright1 street1btm street2btm1 smallstreet2mid
>> street24btmtop1 street13topbtm 21581785#0"*
>> *route7 = "street7btm2 street46btmtop2 street46btmtop1 street34leftright
>> street12leftright 478355846#0"*
>> *route8 = "street1leftleft2 street1leftleft1 street3leftleft1
>> street3leftleft2 street5leftleft street5top street6top street7top"*
>> *route9 = "-448084962 475217889 street2right1 street4right1
>> street4rightleft street46btmtop1 street34leftright street12leftright
>> 478355846#0"*
>> *route10 = "street89leftrigth1 street56lefttight street34leftright
>> street12leftright street2btm1 street2btm2 street2right1 street4right1
>> street4right2 street67leftright street9right"*
>>
>> I understand that it should be listed in the format below:
>>
>> 
>>
>>
>>
>> Yet I have doubts on the way that I can specify it into a certain format
>> as an input to random.Trip.py?
>>
>>
>> Thanks and have a great day!
>>
>> Best Regards,
>> Lawrence
>>
>>
>> --
>> *From:* Víctor Caballero Codina 
>> *Sent:* Thursday, October 19, 2017 2:19 AM
>> *To:* Lawrence Soon; Sumo project User discussions
>> *Subject:* Re: [sumo-user] How to generate 1500 number of vehicles in
>> SUMO with specific routes?
>>
>> Hello,
>>
>> I am new to SUMO, so I can't offer you a lot of help. Are you asking for
>> something like the scripts used in this video?
>> https://www.youtube.com/watch?v=Mh4WnY4KY4Y . The only missing feature
>> in this example is the departure time.
>> 
>> Vehicular and Pedestrian simulated scenario using SUMO, Hofgarten, Munich
>> 
>> www.youtube.com
>> Simulation of Urban Mobility (SUMO) is a free and open source simulator
>> for traffic simulations. In this video, vehicular and pedestrian scenario
>> is simulated. The ...
>>
>>
>>
>> Cheers,
>>
>> Víctor Caballero (vcaball...@salleurl.edu)
>> Ph.D. Student at La Salle Barcelona - Ramon Llull University
>>
>>
>> 

Re: [sumo-user] Fuel consumption in sumo

2017-10-23 Thread Jakob Erdmann via sumo-user
Hello,
fuel consumption also depends on accel/decel and for some models on slope
as well.
For further reading see http://elib.dlr.de/89398/
The source code for the models is in utils/emissions. The core component is
the compute() function of the Helpers* classes.
regards,
Jakob


2017-10-23 6:45 GMT+02:00 Santa Maiti :

> Hi Jacob,
>
> Could you please clarify, is the fuel consumption of a vehicle in any
> timestamp depends on only its speed or any other parameters like
> accel/decel. I was checking the output file, in some cases, it is showing
> fuel consumption is 0  through the vehicle has some speed. Is there any
> link which explains how the fuel consumption is computed?
>
> Regards,
> Santa
>
> --
> Santa Maiti,
> Ph.D Student,
> Geomatics, Department of Infrastructure Engineering,
> University of Melbourne.
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
sumo-user mailing list
sumo-u...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user
___
sumo-user mailing list
sumo-user@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Default speed mode value used in Sumo

2017-10-21 Thread Jakob Erdmann via sumo-user
Hello,
command traci.vehicle.setSpeed sets the new desired speed indefinitely. In
order to go back to normal behavior the command setSpeed(vehID, -1) must be
sent.
see http://sumo.dlr.de/wiki/TraCI/Change_Vehicle_State
regards,
Jakob

2017-10-20 19:45 GMT+02:00 Santa Maiti :

> Hi Jacob,
>
> Please find the sample example code rough.m . The initial vehicle speed is
> 2 m/s and it is increasing as per accel. speedmode is set to 0. Later,
> speed is increased and speedmode is set back to 31. But, the speed of the
> vehicle remains same 20m/s. Can you please tell me where is the mistake
> here?
>
> Thanks,
> Santa
>
> On Fri, Oct 20, 2017 at 5:23 PM, Jakob Erdmann  > wrote:
>
>> Hello,
>> the default speed mode is 31. Please check whether the vehicles have
>> already reached their maximum desired speed (speedLimit * speedFactor).
>> Also, remove any previous setSpeed() commands by sending
>> traci.vehicle.setSpeed(vehID, -1).
>> Furthermore, ensure that the maximum allowed acceleration value of the
>> vehicle type is positive.
>> regards,
>> Jakob
>>
>> 2017-10-20 7:26 GMT+02:00 Santa Maiti :
>>
>>> Hi Jacob,
>>>
>>> Could you please tell me what is the default speed mode value used in
>>> Sumo, where the vehicles speed up if the lane is free? I thought it's 31.
>>> In my simulation, I first made the speed mode as 0 that makes all checks
>>> off. In next simulation step when I'm resetting the speed mode in 31, the
>>> vehicles are moving at constant speed. They are not accelerating even if
>>> the lane is empty. I'm working in traci-matlab.
>>>
>>> Thanks in advance,
>>> Santa
>>>
>>> --
>>> Santa Maiti,
>>> Ph.D Student,
>>> Geomatics, Department of Infrastructure Engineering,
>>> University of Melbourne.
>>>
>>
>>
>
>
> --
> Santa Maiti,
> Ph.D Student,
> Geomatics, Department of Infrastructure Engineering,
> University of Melbourne.
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
sumo-user mailing list
sumo-u...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user
___
sumo-user mailing list
sumo-user@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Problem in defning traffic light schedules

2017-09-14 Thread Jakob Erdmann via sumo-user
Hello,
Basically what you defined should work. However:

1) WAUT-definitions are only useful if each program runs for more than one
cycle.
If all cycles are distinct you can just put all the phases into a single
long program that covers the whole simulation period.

2) If you use WAUTS and all traffic lights switch their signal plans at the
same time, then you can also re-use programIDs among the different traffic
lights and accomplish the same with less  definitions.

regards,
Jakob

2017-09-13 22:00 GMT+02:00 Aboozar Roosta via sumo-user <
sumo-u...@lists.sourceforge.net>:

> Sorry, seems like my file is not sent completely. Here I attach it again:
>
>
>
> *Aboozar Roosta*
> Msc. Student of Electrical Engineering - Control
> School of Electrical and Computer Engineering,
> Tarbiat Modares University (TMU), Tehran, Iran.
> 2017
>
> On Thu, Sep 14, 2017 at 12:27 AM, Aboozar Roosta  >
> wrote:
>
> > Hi all,
> > I have a simulation scenario with two traffic lights. I want to modify
> the
> > green and red times for each cycle of the two traffic lights. I've
> written
> > an additional file to do that:
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > 
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > ​I've omitted some lines here which are repetitive(the complete
> additional
> > file is attached).​
> >
> >
> >
> >
> >
> > *​ Have I written the code correctly? Is that how one would control two
> or
> > more traffic lights with a single additional file? Please advise me how
> to
> > control many traffic lights from additional files. Thanks a lot.​*
> > Aboozar Roosta
> > Msc. Student of Electrical Engineering - Control
> > School of Electrical and Computer Engineering,
> > Tarbiat Modares University (TMU), Tehran, Iran.
> > 2017
> >
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> sumo-user mailing list
> sumo-u...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/sumo-user
>
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
sumo-user mailing list
sumo-u...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user
___
sumo-user mailing list
sumo-user@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Unable to build Sumo: error: 'PI' was not declared in this scope

2017-08-30 Thread Jakob Erdmann via sumo-user
Hello,
in revision [25745] M_PI is used consistently.
This should fix your issue.
regards,
Jakob

2017-08-29 20:37 GMT+02:00 Dan Vanderkam via sumo-user <
sumo-u...@lists.sourceforge.net>:

> I'm trying to follow the instructions at Tutorials/PT from OpenStreetMap
>  but it seems
> they
> require features of netconvert which have not yet been released.
>
> When I try to build Sumo from source on my Ubuntu 17.04 zesty machine, I
> get the following error:
>
> make[4]: Entering directory '/home/danvk/Downloads/sumo-
> svn/src/microsim/devices'
> g++ -DHAVE_CONFIG_H -I. -I../../../src  -I/home/danvk/Downloads/sumo-
> svn/./src
>  -I/usr/local/include -I/usr/include-msse2 -mfpmath=sse -std=c++11 -O2
> -DNDEBUG  -MT MSDevice_SSM.o -MD -MP -MF .deps/MSDevice_SSM.Tpo -c -o
> MSDevice_SSM.o MSDevice_SSM.cpp
> MSDevice_SSM.cpp: In member function ‘MSDevice_SSM::EncounterType
> MSDevice_SSM::classifyEncounter(const MSDevice_SSM::FoeInfo*,
> MSDevice_SSM::EncounterApproachInfo&)
> const’:
> MSDevice_SSM.cpp:1664:126: error: ‘PI’ was not declared in this scope
>  double angle =
> std::fmod(egoConnectionLine.rotationAtOffset(0.)
> - foeConnectionLine.rotationAtOffset(0.), (2*PI));
>
>   ^~
> Makefile:412: recipe for target 'MSDevice_SSM.o' failed
>
> Should this be M_PI? Is there a workaround? Bug to be fixed?
>
> Thanks,
>   - Dan
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> sumo-user mailing list
> sumo-u...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
sumo-user mailing list
sumo-u...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user
___
sumo-user mailing list
sumo-user@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user