[sumo-user] SUMO 1.16 is fantastic! (and a few notes)

2023-04-21 Thread Menno van der Woude

Dear all,

it had been a long while since I last used SUMO. Now I built a network 
using version 1.16, and it's been a blast! NETEDIT did not crash a 
single time during building this network, and the overall editing 
experience has improved so much since the 0.x version we had when I 
first starting using SUMO. Therefore, fantastic job SUMO team!


A few things I noted:

 * On win11, the context menu in NETEDIT, eg. right-click on a
   junction, often closes before I can click anything. No deal breaker,
   but a bit cumbersome at times. I have been unable to distinguish a
   pattern for this.
 * Doing right-click on a vehicle in SUMO-GUI, then "Draw looped
   routes" or "Show best lanes" slows down the visualisation of the
   simulation to the point where it is unusable (running with TraCI
   with 2 connections), sometimes crashing it. The simulation process
   seems to continue.
 * Adding a link to a junction with a TL will change many existing link
   indices. I was under the impression those should remain intact?

Greets,

Menno van der Woude
___
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] Traffic Simulation Documentation

2021-10-03 Thread Menno van der Woude

Hello,

the documentation for SUMO can be found here: https://sumo.dlr.de/docs/

Please take a close look there and review and topics of specific 
interest. If there are specifics about SUMO that remain unclear, feel 
free to send a new message to the list.


Greets, Menno

On 03/10/2021 11:31, reihaneh koohi wrote:

Dear Members,
It would be very kind of you if you could send me the documentation 
that explains the different traffic simulations that SUMO uses and the 
traffic simulation that it uses manually.


I cannot find it on the web.

Bests,
Reihaneh

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


Re: [sumo-user] Help with scenario creation

2021-09-26 Thread Menno van der Woude
That actually makes sense :-) sorry for my incorrect answer. I just 
looked it up and did no detailed review and somehow expected vehicles to 
always have a (final) destination. Good to know this is possible!


On 26/09/2021 18:11, Jakob Erdmann wrote:

Hello,
having taxis stay in the network and continuously pick up more 
passengers is exactly what the taxi device is made for. You can 
certainly add your own algorithms via TraCI but you can also use some 
of the built-in algorithms for this without the need for doing your 
own programming.


regards,
Jakob

Am So., 26. Sept. 2021 um 16:59 Uhr schrieb Menno van der Woude 
mailto:me...@codingconnected.eu>>:


Hello Amanda,


the term "scenario" may be used to indicate many things, but
reading your email the most important element seems to be steering
autonomous vehicles around the network. This is surely possible in
SUMO, but you'll have to do a lot of things by yourself. SUMO does
not (at least as far as I know) have the capability to model what
you call "robot-taxis".


There is support for taxis, see:
https://sumo.dlr.de/docs/Simulation/Taxi.html
<https://sumo.dlr.de/docs/Simulation/Taxi.html> but to have
vehicles remain in the netwerk and pick up more passengers (ie.
shared) will require you to study TraCI  (see
https://sumo.dlr.de/docs/TraCI.html
<https://sumo.dlr.de/docs/TraCI.html>) and steer those vehicles
yourself. This will require you to study SUMO and TraCI, and do
some (actually, I think quite some)  programming.


For electric vehicles, see:
https://sumo.dlr.de/docs/Models/Electric.html
<https://sumo.dlr.de/docs/Models/Electric.html>


Greets! Menno


On 26/09/2021 06:27, Amanda Romano wrote:

Hello everyone,

I would like to thank the previous answer, it helped me to solve
the problem add the option '--vclass passenger'

I'm still a novice to SUMO. I have already created the network
and routes with default vehicles in my simulation, but I would
like to create scenarios by replacing some of the routes with
another vehicle class (such as electric vehicle). Or substituting
trips for classes of vehicles with a higher occupancy rate (such
as taxis (with a group of people sharing) and robot-taxis (Shared
Autonomous Vehicle)), with these trips being door-to-door and
these vehicles do not leave the simulation. I'm doing some
testing with a small O/D-matrix, but I haven't been able to
create these scenarios on my network. Could someone help me or
know any step-by-step tutorial for beginners? Mainly in relation
to inserting autonomous vehicles into the network.

I'm leaving again the step by step of what I did:

0 - extract the network from openstreetmap (osm file - map.osm)
I made the file with the data from the O/D matrix (OD_file.od)
od2trips.config.xml
duarcfg_file.trips2routes.duarcfg
config_file.sumocfg

1) Using netconvert, I converted the osm file to net.xml
netconvert --osm-files map.osm -o map.net.xml

2) Using Polyconvert, I converted the shapefile to a polygon file:
polyconvert --net-file map.net.xml --shapefile-prefixes SHPFILE
--shapefile.id-column ID --shapefile.add-param true
--shapefile.fill false --shapefile.traditional-axis-mapping true
-o SHPFILE.poly.xml --type taz

3) I converted the polygon file to TAZ file (districts.taz.xml):
python edgesInDistricts.py -n map.net.xml -t SHPFILE.poly.xml
--vclass passenger

4)Using od2trips, I created the trips:
od2trips -c od2trips.config.xml -n districts.taz.xml -d
OD_file.od -o od_file.odtrips.xml

5)And using duarouter, I wanted to create the routes:
duarouter -c duarcfg_file.trips2routes.duarcfg

Thank you for your time and sorry for the inconvenience.

___
sumo-user mailing list
sumo-user@eclipse.org  <mailto:sumo-user@eclipse.org>
To unsubscribe from this list, 
visithttps://www.eclipse.org/mailman/listinfo/sumo-user  
<https://www.eclipse.org/mailman/listinfo/sumo-user>

___
sumo-user mailing list
sumo-user@eclipse.org <mailto:sumo-user@eclipse.org>
To unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
<https://www.eclipse.org/mailman/listinfo/sumo-user>


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


Re: [sumo-user] Help with scenario creation

2021-09-26 Thread Menno van der Woude

Hello Amanda,


the term "scenario" may be used to indicate many things, but reading 
your email the most important element seems to be steering autonomous 
vehicles around the network. This is surely possible in SUMO, but you'll 
have to do a lot of things by yourself. SUMO does not (at least as far 
as I know) have the capability to model what you call "robot-taxis".



There is support for taxis, see: 
https://sumo.dlr.de/docs/Simulation/Taxi.html but to have vehicles 
remain in the netwerk and pick up more passengers (ie. shared) will 
require you to study TraCI  (see https://sumo.dlr.de/docs/TraCI.html) 
and steer those vehicles yourself. This will require you to study SUMO 
and TraCI, and do some (actually, I think quite some)  programming.



For electric vehicles, see: https://sumo.dlr.de/docs/Models/Electric.html


Greets! Menno


On 26/09/2021 06:27, Amanda Romano wrote:

Hello everyone,

I would like to thank the previous answer, it helped me to solve the 
problem add the option '--vclass passenger'


I'm still a novice to SUMO. I have already created the network and 
routes with default vehicles in my simulation, but I would like to 
create scenarios by replacing some of the routes with another vehicle 
class (such as electric vehicle). Or substituting trips for classes of 
vehicles with a higher occupancy rate (such as taxis (with a group of 
people sharing) and robot-taxis (Shared Autonomous Vehicle)), with 
these trips being door-to-door and these vehicles do not leave the 
simulation. I'm doing some testing with a small O/D-matrix, but I 
haven't been able to create these scenarios on my network. Could 
someone help me or know any step-by-step tutorial for beginners? 
Mainly in relation to inserting autonomous vehicles into the network.


I'm leaving again the step by step of what I did:

0 - extract the network from openstreetmap (osm file - map.osm)
I made the file with the data from the O/D matrix (OD_file.od)
od2trips.config.xml
duarcfg_file.trips2routes.duarcfg
config_file.sumocfg

1) Using netconvert, I converted the osm file to net.xml
netconvert --osm-files map.osm -o map.net.xml

2) Using Polyconvert, I converted the shapefile to a polygon file:
polyconvert --net-file map.net.xml --shapefile-prefixes SHPFILE 
--shapefile.id-column ID --shapefile.add-param true --shapefile.fill 
false --shapefile.traditional-axis-mapping true -o SHPFILE.poly.xml 
--type taz


3) I converted the polygon file to TAZ file (districts.taz.xml):
python edgesInDistricts.py -n map.net.xml -t SHPFILE.poly.xml --vclass 
passenger


4)Using od2trips, I created the trips:
od2trips -c od2trips.config.xml -n districts.taz.xml -d OD_file.od -o 
od_file.odtrips.xml


5)And using duarouter, I wanted to create the routes:
duarouter -c duarcfg_file.trips2routes.duarcfg

Thank you for your time and sorry for the inconvenience.

___
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] car following model

2021-09-24 Thread Menno van der Woude
Hello V.H.Pradeep,

in your SUMO configuration (.sumocfg file) you will normally define a
 node, eg. like this:

http://www.w3.org/2001/XMLSchema-instance";
xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/sumoConfiguration.xsd";>
    
    
    
    
*        *
    
    


Note the "vehicle_types.xml" file. In there you will specify vehicle
types for your simulation. Per type, you could set the car following
model. An example (without any detailed car following model values set,
but you'll get the idea):

http://www.w3.org/2001/XMLSchema-instance";
xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd";>
    
    
    


Hope this helps,

Greets, Menno

On 24-9-2021 03:27, Pradeep Viyaluru Harinath wrote:
>
> Hello all,
>
>  
>
> I have been trying to use the default values of ACC and CACC but I
> would not see it in the netedit and I am not sure if specifying in
> route file gives any sense to it. I want to edit parameters such as
> “gapControlGainSpeed, collisionAvoidanceGainSpace” etc. Please let me
> know how to modify the values of these parameters
>
>  
>
> Thanks and regards,
>
> V.H.Pradeep
>
>  
>
>
> ___
> 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 change model parameters

2021-09-24 Thread Menno van der Woude
Hello V.H.Pradeep,

you can use TraCI to retrieve data for vehicles in the simulation.
You'll have to dig in a bit to get to know the interface and how to use
it for your projects. Please refer to the documentation:
https://sumo.dlr.de/docs/TraCI/Vehicle_Value_Retrieval.html

Greets, Menno

On 24-9-2021 00:07, Pradeep Viyaluru Harinath wrote:
>
> Hello all,
>
>  
>
> I am trying to change the default values of  lane changing model
> parameters such as lcassertive, lcspeedgain etc. After I made changes
> in the net edit and rum the simulation in SUMO GUI I am unsure if the
> changes are reflected in the simulation run. I want to retrieve these
> values in each time step for every vehicle. I want to know how it can
> be retrieved either using Traci or command prompt.
>
>  
>
> Thanks and regards,
>
> V.H.Pradeep
>
>
> ___
> 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] [*** SPAM ***]detemining queue length in SUMO

2021-09-23 Thread Menno van der Woude
Hello,

currently I am trying to use this option:

https://sumo.dlr.de/docs/Simulation/Output/QueueOutput.html

to determine queue lengths at a signalized intersection.

This generates an enormous XML file for my simulation (timestep 0.1sec,
duration 12 hours). I wrote a small Python script to extract moments
from this data where the queue is shrinking after reaching a temporary
maximum. Though not ideal, this works well enough.

A few questions/remarks about this:

  * I see queues being logged that expand beyond the end of alane; is
this correct? This is great, I was just curious how this works: does
SUMO look at where vehicles want to go?
  * Given this situation:

How will SUMO determine where the queue is standing? Ie. if it is a
queue going right or going straight in this image.
  * For my current pupose it would be completely OK for this logging to
only happen for example every second. It would spare a lot of
logging and save some space.
  * It may be worth considering adding an option to only log temporary
maximum queue lengths, ie. the size right before the queue shrinks
with a given minimum threshold. Of course it depends on the use
case, but it is often interesting to know when queues occured and
how long they were.

Greets, Menno

ps. In case someone is intrerested, I am happy to share my tiny
queue-log-parsing-script


___
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] NETEDIT transform to restricted lane on selection

2021-09-21 Thread Menno van der Woude
Hey Pablo,

thanks for looking into this. It makes sense; when I select lanes with
Shift+click it does work: a popup is shown indicating the number of
lanes that will be affected.

Thanks!

Greets, Menno

On 21-9-2021 10:12, pablo.alvarezlo...@dlr.de wrote:
>
> Hi Menno,
>
>
> the problem is, that you have selected four *edges *instead four
> *lanes*, and you tried to apply a lane operation. Try to select the
> lanes instead the edges, and try it again. I updated the context menu
> for showing the number of selected edge or lanes, to avoid confusions
> in the future.
>
>
> Regards
>
> ----
> *Von:* sumo-user  im Auftrag von Menno
> van der Woude 
> *Gesendet:* Montag, 20. September 2021 15:17:49
> *An:* sumo-user
> *Betreff:* [sumo-user] NETEDIT transform to restricted lane on selection
>  
>
> Hello,
>
> is there a reason this operation in the context menu for a lane: lane
> operations > transform to restricted lane > bicycle
>
> does not work on a selection of lanes all at once? For "add restricted
> lane", a messagebox is shown saying "this will affect # lanes", but
> for transformation, this only affects the lane for which the context
> menu was openen.
>
> Of course, I can do the transformation by hand on a selection, but I
> was wondering why this would work for a selection for the one
> operation and not the other.
>
> Greets!
>
> Menno
>
>
> ___
> 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] NETEDIT transform to restricted lane on selection

2021-09-20 Thread Menno van der Woude
Hello,

is there a reason this operation in the context menu for a lane: lane
operations > transform to restricted lane > bicycle

does not work on a selection of lanes all at once? For "add restricted
lane", a messagebox is shown saying "this will affect # lanes", but for
transformation, this only affects the lane for which the context menu
was openen.

Of course, I can do the transformation by hand on a selection, but I was
wondering why this would work for a selection for the one operation and
not the other.

Greets!

Menno

___
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] Continuous model in SUMO

2021-09-18 Thread Menno van der Woude

Hey François,


the option you are using activates the "simple" lane changing model: 
https://sumo.dlr.de/docs/Simulation/SublaneModel.html#simple_continous_lane-change_model



I am not entirely sure, but this may be the reason you are not seeing a 
big difference in the UI. The docs read: "When using this model, 
vehicles will move with constant lateral speed to complete a maneuver in 
the specified time. Lane-changing decisions take the extra time required 
into account." It is somewhat unclear from the documentation what the 
graphical representation of this simplified model will be. To decrease 
computational load, the visualization might also be simplified.



/--> Maybe someone else can clarify?/


If you wish to see cars smoothly change lanes, you may use 
 the same way you are using  
now. I have used that and it surely results in a different behavior of 
vehicles that is also visible in SUMO-UI.



A final note: the step size you are using will also impact what you see. 
I normally use 0.1 second per simulation step, but SUMO defaults to 1.0 
seconds. Use  for this. See here: 
https://sumo.dlr.de/docs/Simulation/Basic_Definition.html#defining_the_time_step_length



Greets, Menno


On 18/09/2021 20:37, François Vaudrin wrote:

Thanks, Menno,

This is something I didn't know. That will be useful.

I added this line in sumocfg.xml   1.0 
   and did some tests varying the value 1.0, 
5.0., 10.0. Something happens because it does not give the same 
results, so this seems OK with the systax


On the other hand, I don't have the impression that the vehicle 
changing lanes is different (90 degrees).Maybe it is an impression 
because it is hard to catch the real movements on the GUI.


Thanks again and have a nice day

*François
*


*De :* sumo-user  de la part de Menno 
van der Woude 

*Envoyé :* vendredi 17 septembre 2021 14:39
*À :* sumo-user@eclipse.org 
*Objet :* Re: [sumo-user] Continuous model in SUMO

Hey François,


please note that --lanechange.duration is a command line argument 
rather than something to add to an additionals file. An additionals 
file really is meant for 'additional' things in the network, that is, 
things other than edges and junctions that make up the structure of 
the network.



You can however add these kind of arguments to your .sumocfg file: 
something like



...

1.0

...


should do the trick in this case. This is true for all such arguments 
that influence how the simulation runs. I agree that the documentation 
can be somewhat hard to make out in this respect if you are unfamiliar 
with this, but there is good explanation here: 
https://sumo.dlr.de/docs/Basics/Using_the_Command_Line_Applications.html#configuration_files 
<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsumo.dlr.de%2Fdocs%2FBasics%2FUsing_the_Command_Line_Applications.html%23configuration_files&data=04%7C01%7Cfrancois.vaudrin.1%40ulaval.ca%7C48e1e856bb354642644e08d97a0a8658%7C56778bd56a3f4bd3a26593163e4d5bfe%7C1%7C1%7C637675007885661572%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=8gLnllWsaUZIbHZLyoTNfkr1MM2G1Izr4ArkBYHMhfw%3D&reserved=0>.



Greets, Menno


On 17/09/2021 19:47, François Vaudrin wrote:

Halo Jakob,

I understand that this command (--lanechange.duration ) allows 
changing lanes over a greater distance in a more natural way on the 
screen.That's right ?


I couldn't find the syntax to write it to an additional.add.xml file.

Is there an example?

Best
*François
*
 CANADA


*De :* sumo-user  
<mailto:sumo-user-boun...@eclipse.org> de la part de Jakob Erdmann 
 <mailto:namdre.s...@gmail.com>

*Envoyé :* lundi 13 septembre 2021 15:41
*À :* Sumo project User discussions  
<mailto:sumo-user@eclipse.org>

*Objet :* Re: [sumo-user] Continuous model in SUMO
https://sumo.dlr.de/docs/Simulation/SublaneModel.html#simple_continous_lane-change_model 
<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsumo.dlr.de%2Fdocs%2FSimulation%2FSublaneModel.html%23simple_continous_lane-change_model&data=04%7C01%7Cfrancois.vaudrin.1%40ulaval.ca%7C48e1e856bb354642644e08d97a0a8658%7C56778bd56a3f4bd3a26593163e4d5bfe%7C1%7C1%7C637675007885661572%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=fWevAMMjVO%2FYDW1YZfm10vMVoCjjNYyqXmxYmU5wjrM%3D&reserved=0>

Please let me know which part of the documentation is unclear.

Am Mo., 13. Sept. 2021 um 21:01 Uhr schrieb François Vaudrin 
mailto:francois.vaudri...@ulaval.ca>>:


Thanks Jakob,

Do I have to specify the continuous model somewherewith an option
or it is already include in SUMO?

This is because currently the cars move 90 degrees when 

Re: [sumo-user] Continuous model in SUMO

2021-09-17 Thread Menno van der Woude

Hey François,


please note that --lanechange.duration is a command line argument rather 
than something to add to an additionals file. An additionals file really 
is meant for 'additional' things in the network, that is, things other 
than edges and junctions that make up the structure of the network.



You can however add these kind of arguments to your .sumocfg file: 
something like



...

1.0

...


should do the trick in this case. This is true for all such arguments 
that influence how the simulation runs. I agree that the documentation 
can be somewhat hard to make out in this respect if you are unfamiliar 
with this, but there is good explanation here: 
https://sumo.dlr.de/docs/Basics/Using_the_Command_Line_Applications.html#configuration_files.



Greets, Menno


On 17/09/2021 19:47, François Vaudrin wrote:

Halo Jakob,

I understand that this command (--lanechange.duration ) allows 
changing lanes over a greater distance in a more natural way on the 
screen.That's right ?


I couldn't find the syntax to write it to an additional.add.xml file.

Is there an example?

Best
*François
*
 CANADA


*De :* sumo-user  de la part de Jakob 
Erdmann 

*Envoyé :* lundi 13 septembre 2021 15:41
*À :* Sumo project User discussions 
*Objet :* Re: [sumo-user] Continuous model in SUMO
https://sumo.dlr.de/docs/Simulation/SublaneModel.html#simple_continous_lane-change_model 


Please let me know which part of the documentation is unclear.

Am Mo., 13. Sept. 2021 um 21:01 Uhr schrieb François Vaudrin 
mailto:francois.vaudri...@ulaval.ca>>:


Thanks Jakob,

Do I have to specify the continuous model somewherewith an option
or it is already include in SUMO?

This is because currently the cars move 90 degrees when they
change lanes in my simulation and I would have preferred that to
be done on a larger transition. But if it's the best that can be
done, that's fine.

Best

*François
*


*De :* sumo-user mailto:sumo-user-boun...@eclipse.org>> de la part de Jakob
Erdmann mailto:namdre.s...@gmail.com>>
*Envoyé :* lundi 13 septembre 2021 14:29
*À :* Sumo project User discussions mailto:sumo-user@eclipse.org>>
*Objet :* Re: [sumo-user] Continuous model in SUMO
The two types of continuous models are activated via sumo options
and then apply to all vehicles regardless of vType.

Am Mo., 13. Sept. 2021 um 17:41 Uhr schrieb François Vaudrin
mailto:francois.vaudri...@ulaval.ca>>:

Hello,


Can we apply the continuous model directly in the vtype
definition as for the carFollowing-Kraus model? If so, does
this give comparable results?









Thank you


*François*
CANADA
___
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 uns

Re: [sumo-user] Apply changes to source code

2021-05-28 Thread Menno van der Woude
The error comes from the "libsumo" project. This is a separate project
within the solution, which will now not be built, but it will not affect
the SUMO-GUI project. I believe libsumo is meant to use SUMO as a
library in other projects. Obviously, some python development dependency
is not met on your system. You should have no further trouble.

Greets, Menno


On 28-5-2021 14:34, AMIT RAI wrote:
> Thank you so much,  SUMO COMMUNITY. I have successfully built sumo.
> After performing the build step from VC19 I got 1 error and warning
> shown in the image. Are these errors and warnings critical? Though I
> am able to successfully run GUI, will I face any problem due to these
> errors?
>
>
> Regards 
> AMIT RAI
> 
> *From:* sumo-user  on behalf of Harald
> Schaefer 
> *Sent:* Wednesday, May 26, 2021 9:04 PM
> *To:* sumo-user@eclipse.org 
> *Subject:* Re: [sumo-user] Apply changes to source code
>  
>
> Hi Amit,
>
> you are missing the last two steps in Method 1 or Method 2:
>
> Opening the .sln file will open Visual Studio, here you can run a
> build under the menu item Build, which at the end will generate the
> sumo-gui
>
> Greetings, Harald
>
> Am 26.05.21 um 10:27 schrieb Jakob Erdmann:
>> I do not understand your question. If you follow the whole guide then
>> you will rebuild all applications and a fresh version of
>> sumo,sumo-gui etc will be in the bin subfolder of your sumo folder.
>>
>> Am Di., 25. Mai 2021 um 16:29 Uhr schrieb AMIT RAI > >:
>>
>> Thankyou sir,
>>
>> I have generated the project.sln file, after following the
>> procedure from the procedure told in the windows built. But how
>> to integrate the .sln in sumo gui?
>>  Regards
>>
>> AMIT RAI
>> 
>> *From:* sumo-user > > on behalf of Jakob
>> Erdmann mailto:namdre.s...@gmail.com>>
>> *Sent:* Tuesday, May 25, 2021 2:00 PM
>> *To:* Sumo project User discussions > >
>> *Subject:* Re: [sumo-user] Apply changes to source code
>>  
>> Follow the instructions for building on windows:
>> https://sumo.dlr.de/docs/Installing/Windows_Build.html
>> 
>>
>> Am So., 23. Mai 2021 um 08:58 Uhr schrieb AMIT RAI
>> mailto:rai...@iitg.ac.in>>:
>>
>> Greetings, 
>>
>> Keeproute=2 matches vehicle to road if distance to road is
>> 100 m. I want to increase this limit. To do this I downloaded
>> the source code. Made corresponding changes in  vehicle.cpp.
>> In order for these changes to come into effect I need to
>> compile the file. When I am compiling the file using command
>> line in windows, I get the error:
>>
>> Vehicle.cpp:20:20 fatal error:config.h: no such file or directory
>> #include 
>> Compilation terminated. 
>>
>> I searched config.h but I didn't find it
>>
>>
>> Can someone help me on this? Thanx in advance🙏. 
>>
>>
>> Sincerely, 
>> Get Outlook for Android 
>> ___
>> 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] Integrate changes in sumo source code?

2021-05-24 Thread Menno van der Woude
It depends what you mean by "make the changes come into effect":

- if you want to run a local version of SUMO with your changes, build
SUMO from source and use the resulting binaries:
https://sumo.dlr.de/docs/Installing/Windows_Build.html
- if you want your changes to be reflected in the DLR version of SUMO,
you'll have to fork the github repository, apply and commit your
changes, and subsequently create a pull request. See:
https://sumo.dlr.de/docs/FAQ.html#how_do_code_contributions_work

Greets, Menno

On 25-5-2021 07:01, AMIT RAI wrote:
> I have made changes in source code. Can any one tell me step by step
> how to make these changes come into effect? 
>
> Regards
>
> Get Outlook for Android 
>
> ___
> 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] OD2TRIPS timeline

2021-05-24 Thread Menno van der Woude
Just for information, I was also trying something along these lines last 
week and had a similar experience where I expected a lower output from 
od2trips based on the provided timeline input, but instead it seemed no 
factor was applied, at least not on the time portion where I expected 
that to happen. I did not investigate this further, since I made the 
assumption my input was wrong and I had no time to triple check it. If 
desired, I can provide my data as well.


Greets, Menno

On 24/05/2021 18:57, mehdi wrote:

Dear All

I am a computer science Ph.D. student at the University of Tennessee and I
am working on a large-scale transit simulation with SUMO. I have complete OD
matrices for peak and off-peak hours. Now, I am trying to generate the
demand files from an OD off-peak hours matrix with OD2TRIPS. This off-peak
OD matrix is for 24 hours and therefore I need to mention the off-peak hours
when I am generating the trips file with od2terips.
As  SUMO instruction, the command --timeline, a portion of all demand should
be generated. For example, I don't want to have any trips between 21600 to
32400 when generating the trips XML file.
But when I open the generated XML file, there are still trips at the
departure time of 21600 to 32400, and nothing changed. This is the link to
my od matrix and TAZ.xml file.

https://drive.google.com/drive/folders/1jTX6mZeC1VEBN9YQWtRhxZxEghZ8aXbO?usp=sharing

  Could you please take a look at it? It would better if you also generate
the XML trips file.


I used this:

od2trips --taz-files taz.xml --od-matrix-files pass_op.txt --output-file
pss_op.xml --prefix pass_op --vtype passenger --timeline
0:0.167,21600:0,32400:0.167,54000:0,64800:0.167,86400:0

Thank you so much

Best regards
Mehdi



--
Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
___
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] e1 and e2 detector

2021-05-14 Thread Menno van der Woude
Hello Ali,

"that should do the trick" was simply another way of saying: it should work.

Be sure to thoroughly read the documentation, especially when trying to
work with TraCI. Working with SUMO via TraCI means you are handling the
simulation and its data in a relatively 'low level' way, that is, you
are dealing with details of SUMO and TraCI and will need extensive
knowledge of what happens and what things mean. The documentation for
both SUMO and TraCI is pretty good in my opinion, you should be able to
find all you need there (though sometimes you have to do a little
deduction here and there).

Concerning 'getVehicleData': my Python skills are limited (I have only
used TraCI natively in C# and C), but I am reading this as a function
declaration: it accepts a string, and returns a list of tuples. The
periods simply mean the list might contain an infinite number of tuples.
If this does not make sense, you are going to have to study Python for a
bit, cause you will need that to work with TraCI via Python succesfully.
You will have to be able to work with the list and the tuples it cotains.

In short: be sure to carefully study the documentation. If things seem
to make no sense, take a step back, search the internet, try again,
study what happend and repeat. And then if all else fails there is the
mailing list: be sure to precisely state the problem you are trying to
solve.

Hope this makes sense, greets,

Menno

On 14-5-2021 15:34, ali mirzaei wrote:
> 1- What trick do you exactly mean?
> 2-  What do you think of those three points at the end of the
> following function:
> *getVehicleData*(self, loopID)
> getVehicleData
> <https://sumo.dlr.de/pydoc/traci._inductionloop.html#InductionLoopDomain-getVehicleData>(string)
>  -> [(veh_id, veh_length, entry_time, exit_time, vType), ...]
> Does it mean we are capable to add more variables?
>
> Regards,
> Ali
>
>
> On Fri, May 14, 2021 at 4:41 PM Menno van der Woude
> mailto:me...@codingconnected.eu>> wrote:
>
> I think the e1 type is unfit for this, since it has no real
> length. e2 could be used if the area you are interested in lies on
> a single edge. In that case the methods you mentioned should do
> the trick, and otherwise consult the documentation: you could also
> retrieve data for an edge, for example:
> https://sumo.dlr.de/docs/TraCI/Edge_Value_Retrieval.html
> <https://sumo.dlr.de/docs/TraCI/Edge_Value_Retrieval.html>
>
> The e3 type detector might be interesting if your area of interest
> spans multiple edges:
> 
> https://sumo.dlr.de/docs/TraCI/Multi-Entry-Exit_Detectors_Value_Retrieval.html
> 
> <https://sumo.dlr.de/docs/TraCI/Multi-Entry-Exit_Detectors_Value_Retrieval.html>
>
> Greets, Menno
>
> On 14-5-2021 14:05, ali mirzaei wrote:
>> I have had a look at it. But, as far as I know, I should ask the
>> simulation to get or set the vehicle data one at a time via that
>> module(traci.vehicle). I am looking for a facility to get the
>> flow data at a specific point automatically which I was thinking
>> could be e1 or e2 detector.
>>
>> Regards,
>> Ali
>>
>>
>>
>> On Fri, May 14, 2021 at 1:52 PM Menno van der Woude
>> mailto:me...@codingconnected.eu>> wrote:
>>
>> the documentation provides ample info here:
>>
>> https://sumo.dlr.de/docs/TraCI/Vehicle_Value_Retrieval.html
>> <https://sumo.dlr.de/docs/TraCI/Vehicle_Value_Retrieval.html>
>>
>> I guess you could first determine what vehicles are in a
>> given area or location, and then retrieve data for those
>> vehicles.
>>
>> Greets, Menno
>>
>> On 14-5-2021 11:20, ali mirzaei wrote:
>>> I get the point you said. But, my other question
>>> remains. What is the option to receive vehicle data at a
>>> specific point?
>>> Regards,
>>> Ali
>>>
>>> On Fri, May 14, 2021 at 12:37 PM Menno van der Woude
>>> mailto:me...@codingconnected.eu>>
>>> wrote:
>>>
>>> That function should return the described value.
>>> However, if no vehicles were on the detector during the
>>> last step, no valid data can be returned, so you get -1
>>> and (). If a vehicle was on the detector during the last
>>> step, the method will give you the data.
>>>
>>> Greets, Menno
>>>
>>> On 14-5-2021 10:04, ali mirzaei wrote:
>>>>   

Re: [sumo-user] e1 and e2 detector

2021-05-14 Thread Menno van der Woude
I think the e1 type is unfit for this, since it has no real length. e2
could be used if the area you are interested in lies on a single edge.
In that case the methods you mentioned should do the trick, and
otherwise consult the documentation: you could also retrieve data for an
edge, for example: https://sumo.dlr.de/docs/TraCI/Edge_Value_Retrieval.html

The e3 type detector might be interesting if your area of interest spans
multiple edges:
https://sumo.dlr.de/docs/TraCI/Multi-Entry-Exit_Detectors_Value_Retrieval.html

Greets, Menno

On 14-5-2021 14:05, ali mirzaei wrote:
> I have had a look at it. But, as far as I know, I should ask the
> simulation to get or set the vehicle data one at a time via that
> module(traci.vehicle). I am looking for a facility to get the flow
> data at a specific point automatically which I was thinking could be
> e1 or e2 detector.
>
> Regards,
> Ali
>
>
>
> On Fri, May 14, 2021 at 1:52 PM Menno van der Woude
> mailto:me...@codingconnected.eu>> wrote:
>
> the documentation provides ample info here:
>
> https://sumo.dlr.de/docs/TraCI/Vehicle_Value_Retrieval.html
> <https://sumo.dlr.de/docs/TraCI/Vehicle_Value_Retrieval.html>
>
> I guess you could first determine what vehicles are in a given
> area or location, and then retrieve data for those vehicles.
>
> Greets, Menno
>
> On 14-5-2021 11:20, ali mirzaei wrote:
>> I get the point you said. But, my other question remains. What is
>> the option to receive vehicle data at a specific point?
>> Regards,
>> Ali
>>
>> On Fri, May 14, 2021 at 12:37 PM Menno van der Woude
>> mailto:me...@codingconnected.eu>> wrote:
>>
>> That function should return the described value. However, if
>> no vehicles were on the detector during the last step, no
>> valid data can be returned, so you get -1 and (). If a
>> vehicle was on the detector during the last step, the method
>> will give you the data.
>>
>> Greets, Menno
>>
>> On 14-5-2021 10:04, ali mirzaei wrote:
>>> Hi Menno,
>>> This is what the mannaul says:
>>> *getLastStepMeanSpeed(self, detID)*
>>> *getLastStepMeanSpeed(string) -> double
>>>  
>>> Returns the current mean speed in m/s of vehicles that were
>>> on the named e2*.
>>>
>>> I am looking for a tool by which I can extract the flow
>>> characteristics at the time the vehicle is on the detector.
>>> So, is there any option to get more data of vehicles in
>>> traci.lanearea module? 
>>>
>>> Sincerely,
>>> ALI
>>>
>>>
>>> On Fri, May 14, 2021 at 11:33 AM Menno van der Woude
>>> mailto:me...@codingconnected.eu>>
>>> wrote:
>>>
>>> Hello Ali,
>>>
>>> the e1 detector has no length, I think you should use an
>>> e2 detector if
>>> you want to have a detector that covers an area.
>>>
>>> Regarding the functions: when do you call these? I'd
>>> expect -1 and ()
>>> when no vehicles were on the detector during the last
>>> step. So at the
>>> start of the simulation, you will most likely get those
>>> results. And
>>> afterwards if there has been no traffic.
>>>
>>> Greets, Menno
>>>
>>> On 13-5-2021 23:28, ali mirzaei wrote:
>>> > Hi everyone,
>>> > 1- What is the length of the induction loop(e1detector)?
>>> > 2- in the case of e2detector, when I generate my
>>> add.XML file consisting of:
>>> >     >> > length="10.00"        freq="5" file="e2_det.xml"
>>> friendlyPos="1"/>
>>> > and call the functions:
>>> > print(traci.lanearea.getLastStepMeanSpeed("e2Detector_1"))
>>> >
>>> print(traci.lanearea.getLastStepVehicleIDs("e2Detector_1"))
>>> > the answer is "-1" and "()".
>>> > Why does this happen?
>>> > Any help would be appreciated.
>&

Re: [sumo-user] e1 and e2 detector

2021-05-14 Thread Menno van der Woude
the documentation provides ample info here:

https://sumo.dlr.de/docs/TraCI/Vehicle_Value_Retrieval.html

I guess you could first determine what vehicles are in a given area or
location, and then retrieve data for those vehicles.

Greets, Menno

On 14-5-2021 11:20, ali mirzaei wrote:
> I get the point you said. But, my other question remains. What is the
> option to receive vehicle data at a specific point?
> Regards,
> Ali
>
> On Fri, May 14, 2021 at 12:37 PM Menno van der Woude
> mailto:me...@codingconnected.eu>> wrote:
>
> That function should return the described value. However, if no
> vehicles were on the detector during the last step, no valid data
> can be returned, so you get -1 and (). If a vehicle was on the
> detector during the last step, the method will give you the data.
>
> Greets, Menno
>
> On 14-5-2021 10:04, ali mirzaei wrote:
>> Hi Menno,
>> This is what the mannaul says:
>> *getLastStepMeanSpeed(self, detID)*
>> *getLastStepMeanSpeed(string) -> double
>>  
>> Returns the current mean speed in m/s of vehicles that were on
>> the named e2*.
>>
>> I am looking for a tool by which I can extract the flow
>> characteristics at the time the vehicle is on the detector. So,
>> is there any option to get more data of vehicles in
>> traci.lanearea module? 
>>
>> Sincerely,
>> ALI
>>
>>
>> On Fri, May 14, 2021 at 11:33 AM Menno van der Woude
>> mailto:me...@codingconnected.eu>> wrote:
>>
>> Hello Ali,
>>
>> the e1 detector has no length, I think you should use an e2
>> detector if
>> you want to have a detector that covers an area.
>>
>> Regarding the functions: when do you call these? I'd expect
>> -1 and ()
>> when no vehicles were on the detector during the last step.
>> So at the
>> start of the simulation, you will most likely get those
>> results. And
>> afterwards if there has been no traffic.
>>
>> Greets, Menno
>>
>> On 13-5-2021 23:28, ali mirzaei wrote:
>> > Hi everyone,
>> > 1- What is the length of the induction loop(e1detector)?
>> > 2- in the case of e2detector, when I generate my add.XML
>> file consisting of:
>> >     > > length="10.00"        freq="5" file="e2_det.xml"
>> friendlyPos="1"/>
>> > and call the functions:
>> > print(traci.lanearea.getLastStepMeanSpeed("e2Detector_1"))
>> > print(traci.lanearea.getLastStepVehicleIDs("e2Detector_1"))
>> > the answer is "-1" and "()".
>> > Why does this happen?
>> > Any help would be appreciated.
>> >
>> > Regards,
>> > Ali
>> > ___
>> > sumo-user mailing list
>> > sumo-user@eclipse.org <mailto:sumo-user@eclipse.org>
>> > To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>> <https://www.eclipse.org/mailman/listinfo/sumo-user>
>> ___
>> sumo-user mailing list
>> sumo-user@eclipse.org <mailto:sumo-user@eclipse.org>
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>> <https://www.eclipse.org/mailman/listinfo/sumo-user>
>>
>>
>> ___
>> sumo-user mailing list
>> sumo-user@eclipse.org <mailto:sumo-user@eclipse.org>
>> To unsubscribe from this list, visit 
>> https://www.eclipse.org/mailman/listinfo/sumo-user 
>> <https://www.eclipse.org/mailman/listinfo/sumo-user>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org <mailto:sumo-user@eclipse.org>
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
> <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] e1 and e2 detector

2021-05-14 Thread Menno van der Woude
That function should return the described value. However, if no vehicles
were on the detector during the last step, no valid data can be
returned, so you get -1 and (). If a vehicle was on the detector during
the last step, the method will give you the data.

Greets, Menno

On 14-5-2021 10:04, ali mirzaei wrote:
> Hi Menno,
> This is what the mannaul says:
> *getLastStepMeanSpeed(self, detID)*
> *getLastStepMeanSpeed(string) -> double
>  
> Returns the current mean speed in m/s of vehicles that were on the
> named e2*.
>
> I am looking for a tool by which I can extract the flow
> characteristics at the time the vehicle is on the detector. So, is
> there any option to get more data of vehicles in traci.lanearea module? 
>
> Sincerely,
> ALI
>
>
> On Fri, May 14, 2021 at 11:33 AM Menno van der Woude
> mailto:me...@codingconnected.eu>> wrote:
>
> Hello Ali,
>
> the e1 detector has no length, I think you should use an e2
> detector if
> you want to have a detector that covers an area.
>
> Regarding the functions: when do you call these? I'd expect -1 and ()
> when no vehicles were on the detector during the last step. So at the
> start of the simulation, you will most likely get those results. And
> afterwards if there has been no traffic.
>
> Greets, Menno
>
> On 13-5-2021 23:28, ali mirzaei wrote:
> > Hi everyone,
> > 1- What is the length of the induction loop(e1detector)?
> > 2- in the case of e2detector, when I generate my add.XML file
> consisting of:
> >      > length="10.00"        freq="5" file="e2_det.xml" friendlyPos="1"/>
> > and call the functions:
> > print(traci.lanearea.getLastStepMeanSpeed("e2Detector_1"))
> > print(traci.lanearea.getLastStepVehicleIDs("e2Detector_1"))
> > the answer is "-1" and "()".
> > Why does this happen?
> > Any help would be appreciated.
> >
> > Regards,
> > Ali
> > ___
> > sumo-user mailing list
> > sumo-user@eclipse.org <mailto:sumo-user@eclipse.org>
> > To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
> <https://www.eclipse.org/mailman/listinfo/sumo-user>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org <mailto:sumo-user@eclipse.org>
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
> <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] e1 and e2 detector

2021-05-14 Thread Menno van der Woude
Hello Ali,

the e1 detector has no length, I think you should use an e2 detector if
you want to have a detector that covers an area.

Regarding the functions: when do you call these? I'd expect -1 and ()
when no vehicles were on the detector during the last step. So at the
start of the simulation, you will most likely get those results. And
afterwards if there has been no traffic.

Greets, Menno

On 13-5-2021 23:28, ali mirzaei wrote:
> Hi everyone,
> 1- What is the length of the induction loop(e1detector)?
> 2- in the case of e2detector, when I generate my add.XML file consisting of:
>  length="10.00"freq="5" file="e2_det.xml" friendlyPos="1"/>
> and call the functions:
> print(traci.lanearea.getLastStepMeanSpeed("e2Detector_1"))
> print(traci.lanearea.getLastStepVehicleIDs("e2Detector_1"))
> the answer is "-1" and "()".
> Why does this happen?
> Any help would be appreciated.
>
> Regards,
> Ali
> ___
> 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] retrieving delay time at signalized intersection

2021-05-10 Thread Menno van der Woude
Hello all,

suppose I have a signalized intersection, and wish to know the delay
caused by the traffic light, what would be a good approach?

Currently I do this:

  * place e3-detectors with entries before the intersection, and exits
after the intersection
  o side note: this leads to warnings in SUMO cause I place
entries/exits of traffic that is diverging from or converging to
a single lane on that lane; SUMO shows a lot of warnings,
telling me about vehicles that only entered or left the e3
detector. is it bad practice to place e3 detectors this way?
  * collect data (can the 15 min default interval be changed?)
  * then use meanTimeLoss * vehicleSum as the total delay that occured
for a given route over the intersection during the given interval

Is this a viable approach? Will it correctly estimate the delay caused
by the traffic lights?

A few specific questions:

  * am I right to assume that only vehicles that entered _and_ left the
e3 detector will be counted in "vehicleSum"? (and time loss...)
  * should I take into account "meanTimeLossWithin"? or will
"meanTimeLoss" for the next interval reflect the "time loss within"
from the previous round? currently I am assuming the latter.

Thanks for any thoughts and tips!

Greets,

Menno van der Woude
CodingConnected e.U. (Wien - Österreich)
E me...@codingconnected.eu
W www.codingconnected.eu

___
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] modelling pedestrians correctly

2019-08-28 Thread Menno van der Woude

Hey Jakob,

maybe it would be possible (and maybe relatively easy?) to implement a 
dedicated pedestrian detector that reports true if any pedestrians are 
inside its area that have not moved the timestep before (or the number 
of those pedestrians). That would be much like an E2 detector. Similar 
to your idea, but not bound to a particular crossing. Or does that not 
accommodate the situation you describe with 4 possible outgoing 
directions? Direction is then typically not important, since pedestrians 
that just crossed will typically walk onward.


The detector could even be generic, a kind of special type of E2 
detector, and just report all waiting/not-moving vehicles inside its 
area - or an option for an E2 detector 'only report waiting vehicles' or 
so. Then again, pedestrians are not actually vehicles, which might 
complicate that idea bit.


Greets, Menno

On 27/08/2019 20:17, Jakob Erdmann wrote:
There is no strong technical reason that prevents E2-detectors from 
handling pedestrians. It might also be useful to configure it for 
detecting pedestrians either in forward, backward or both directions. 
However, that still would not solve the use case of a pedestrian 
push-button.
This is because pedestrians wait on an walkingarea before using a 
crossing and there may be more than 2 directions in which this 
walkingarea is used. At  a junction corner with 2 sidewalks and 2 
crossings, there are actually 4 possible (outgoing) walking directions 
and 2 push-buttons that must be distinguished.


I think it makes more sense to implement a dedicated pedestrian 
detector that can be used to query the number of pedestrians that are 
waiting for a particular crossing (and maybe even combines the 
pedestrians from both sides of the same crossing).
An alternative solutions (maybe more elegant) would be to add a 
function to traci.trafficlights that can report the number of waiting 
pedestrians for a given phase  (by checking all the crossings that 
would turn green in that phase).


regards,
Jakob

Am Di., 27. Aug. 2019 um 10:33 Uhr schrieb Menno van der Woude 
mailto:me...@codingconnected.eu>>:


Hello Jakob,

thanks for your reply.

Is detection of pedestrians by E2 detectors a planned feature? Or
is it just not meant to function that way. Anyway I noticed that
if I use --persontrips true with od2trips, SUMO does not find
connections for pedestrians the way I modeled my network now (with
connections instead of crossings). The simulations reports an
error. So that I'd need to revise the network there anyway.

For now, I will stick with my incorrect approach, since it allows
for much easier detection of pedestrians, with a single TraCI
command. Also I find creating connections somewhat more intuitive
than creating crossings in NETEDIT. It would be nice to be able to
model pedestrians as vehicles, and still have them walk alongside
one another on a sidewalk, maybe even in both directions, instead
of in a line. But that is probably just not a typical use case.

Thanks, greets,

Menno

On 26/08/2019 17:23, Jakob Erdmann wrote:

Hello,
E2-detectors currently cannot detect pedestrians. and the only
way to implement a pedestrian-pushbutton is by checking the
walking direction of the pedestrians explicitly. This is
demonstrated in https://sumo.dlr.de/wiki/Tutorials/TraCIPedCrossing

Sidewalks should be modelled with a single lane that serves for
both directions. Also, I recommend reading

https://sumo.dlr.de/wiki/Simulation/Pedestrians#Generating_a_network_with_crossings_and_walkingareas

regards,
Jakob


Am Mo., 26. Aug. 2019 um 16:47 Uhr schrieb Menno van der Woude
mailto:me...@codingconnected.eu>>:

Dear all,

currently, when modelling pedestrians, I always use 'regular'
edges and connections. This results in warnings (such as
"Warning: Vehicle type '7' with vClass=pedestrian should only
be used for persons and not for vehicle 'ped26'."), and
sometimes pedestrians accidentally end up on the street
(which I can solve by disallowing them). I do nonetheless
because: it allows usage of E2 type detectors to detect
presence of pedestrian-style vehicles, and it is easy to
build the network cause I can just use regular connections.
Pedestrians will stand in line at the intersection, but I am
mostly interested in the general flow of traffic, and there
are generally few pedestrians in the simulation.

However, it would be nice to model the pedestrians more
correctly. I wonder, given an intersection like this:

How can I build the network so that the pedestrians will only
cross from the sidewalk edges on the one side to the sidewalk
edges on the other side, and have a detector (button)

Re: [sumo-user] modelling pedestrians correctly

2019-08-27 Thread Menno van der Woude

Hello Jakob,

thanks for your reply.

Is detection of pedestrians by E2 detectors a planned feature? Or is it 
just not meant to function that way. Anyway I noticed that if I use 
--persontrips true with od2trips, SUMO does not find connections for 
pedestrians the way I modeled my network now (with connections instead 
of crossings). The simulations reports an error. So that I'd need to 
revise the network there anyway.


For now, I will stick with my incorrect approach, since it allows for 
much easier detection of pedestrians, with a single TraCI command. Also 
I find creating connections somewhat more intuitive than creating 
crossings in NETEDIT. It would be nice to be able to model pedestrians 
as vehicles, and still have them walk alongside one another on a 
sidewalk, maybe even in both directions, instead of in a line. But that 
is probably just not a typical use case.


Thanks, greets,

Menno

On 26/08/2019 17:23, Jakob Erdmann wrote:

Hello,
E2-detectors currently cannot detect pedestrians. and the only way to 
implement a pedestrian-pushbutton is by checking the walking direction 
of the pedestrians explicitly. This is demonstrated in 
https://sumo.dlr.de/wiki/Tutorials/TraCIPedCrossing


Sidewalks should be modelled with a single lane that serves for both 
directions. Also, I recommend reading 
https://sumo.dlr.de/wiki/Simulation/Pedestrians#Generating_a_network_with_crossings_and_walkingareas


regards,
Jakob


Am Mo., 26. Aug. 2019 um 16:47 Uhr schrieb Menno van der Woude 
mailto:me...@codingconnected.eu>>:


Dear all,

currently, when modelling pedestrians, I always use 'regular'
edges and connections. This results in warnings (such as "Warning:
Vehicle type '7' with vClass=pedestrian should only be used for
persons and not for vehicle 'ped26'."), and sometimes pedestrians
accidentally end up on the street (which I can solve by
disallowing them). I do nonetheless because: it allows usage of E2
type detectors to detect presence of pedestrian-style vehicles,
and it is easy to build the network cause I can just use regular
connections. Pedestrians will stand in line at the intersection,
but I am mostly interested in the general flow of traffic, and
there are generally few pedestrians in the simulation.

However, it would be nice to model the pedestrians more correctly.
I wonder, given an intersection like this:

How can I build the network so that the pedestrians will only
cross from the sidewalk edges on the one side to the sidewalk
edges on the other side, and have a detector (button) on either
side of the crossing? Beause of the way my TraCI application
works, most preferably this would be an E2 detector.

Should I create sidewalk-edges only in a single direction, since
pedestrians can walk in two directions? If so, how to avoid
pedestrians that just crossed the intersection from activating the
detection?

Actually all traffic has detectors, that I did add draw in the
above simplified example. A typical intersection may look more
like this:

And in the simulation like this (note a lot of traffic lights are
light blue, and thus actually not controlled):

any help is appreciated!

Greets, Menno

___
sumo-user mailing list
sumo-user@eclipse.org <mailto: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


___
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
___
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


[sumo-user] NETEDIT crash

2019-08-27 Thread Menno van der Woude

Hello,

with the attached network, when in Demand mode, then Persons mode, when 
clicking the upper sidewalk, then the lower sidewalk, NETEDIT 1.3.0 crashes.


Greets, Menno





http://www.w3.org/2001/XMLSchema-instance"; xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/net_file.xsd";>



























































___
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


[sumo-user] modelling pedestrians correctly

2019-08-26 Thread Menno van der Woude

Dear all,

currently, when modelling pedestrians, I always use 'regular' edges and 
connections. This results in warnings (such as "Warning: Vehicle type 
'7' with vClass=pedestrian should only be used for persons and not for 
vehicle 'ped26'."), and sometimes pedestrians accidentally end up on the 
street (which I can solve by disallowing them). I do nonetheless 
because: it allows usage of E2 type detectors to detect presence of 
pedestrian-style vehicles, and it is easy to build the network cause I 
can just use regular connections. Pedestrians will stand in line at the 
intersection, but I am mostly interested in the general flow of traffic, 
and there are generally few pedestrians in the simulation.


However, it would be nice to model the pedestrians more correctly. I 
wonder, given an intersection like this:


How can I build the network so that the pedestrians will only cross from 
the sidewalk edges on the one side to the sidewalk edges on the other 
side, and have a detector (button) on either side of the crossing? 
Beause of the way my TraCI application works, most preferably this would 
be an E2 detector.


Should I create sidewalk-edges only in a single direction, since 
pedestrians can walk in two directions? If so, how to avoid pedestrians 
that just crossed the intersection from activating the detection?


Actually all traffic has detectors, that I did add draw in the above 
simplified example. A typical intersection may look more like this:


And in the simulation like this (note a lot of traffic lights are light 
blue, and thus actually not controlled):


any help is appreciated!

Greets, Menno

___
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] routes & netedit & buses

2019-05-27 Thread Menno van der Woude

Hello Jakob,

thanks for your prompt reply. I will try the dev version in relation to 
the crash.


What would be the appropriate way to use a route created in NETEDIT (or 
otherwise)?


Greets, Menno

On 27-5-2019 16:13, Jakob Erdmann wrote:

Hello,
the easiest solution would be to forbid busses on some edges/lanes 
when you want to force them on a particular bus lane.
In the netedit route creation mode you can specify intermediate edges 
to tailor a given route to your needs.

If netedit crashes, please try the very latest development version.
If that also crashes, please create a bug report with instructions for 
reproducing the crash so we can fix it.


regards,
Jakob

Am Mo., 27. Mai 2019 um 16:08 Uhr schrieb Menno van der Woude 
mailto:me...@codingconnected.eu>>:


Hello all,

in a network I would like for buses to follow a specific route,
because there are small stretches of road only meant for them at
intersections; for example:

where the gray road is for buses only. Is it possible to achieve
this with the 'Mode for creating routes'? How would I tell buses
to use a given route? I now use od2trips for all vehicles in the
simulation, including buses (mostly because this is a method that
I know). Or is it better to somehow manually specify bus trips?
Also: is it possible to tell a bus to use a specific lane, so it
will prepare for using the bus-only edge?

Note: if I try to create a route, and save the demand data file,
NETEDIT tells me there are conflicts, and proposes to fix them,
but crashes when I click OK.

Thanks, greets,

Menno

___
sumo-user mailing list
sumo-user@eclipse.org <mailto: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


___
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
___
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


[sumo-user] routes & netedit & buses

2019-05-27 Thread Menno van der Woude

Hello all,

in a network I would like for buses to follow a specific route, because 
there are small stretches of road only meant for them at intersections; 
for example:


where the gray road is for buses only. Is it possible to achieve this 
with the 'Mode for creating routes'? How would I tell buses to use a 
given route? I now use od2trips for all vehicles in the simulation, 
including buses (mostly because this is a method that I know). Or is it 
better to somehow manually specify bus trips? Also: is it possible to 
tell a bus to use a specific lane, so it will prepare for using the 
bus-only edge?


Note: if I try to create a route, and save the demand data file, NETEDIT 
tells me there are conflicts, and proposes to fix them, but crashes when 
I click OK.


Thanks, greets,

Menno

___
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


[sumo-user] Modelling connected vehicles

2019-05-17 Thread Menno van der Woude

Hello all,

for a project I am looking for a way to have vehicles communicate with 
(external) traffic controllers. Specifically, I'd like for vehicles to 
emit and receive Cooperative Awareness Messages (CAM) and/or Signal 
Request Messages (SRM). The traffic lights in SUMO are controlled via 
TraCI. Just for orientation: is there functionality within SUMO that 
provides for this kind of scenario? Or would one have to implement the 
vehicle type that facilitates this kind of behaviour oneself?


Greets, Menno

___
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] Error: Zipper junctions with more than two conflicting lanes are not supported

2019-05-15 Thread Menno van der Woude

Hello Jakob,

1) steps as follows (NETEDIT 1.2.0)
- open network
- open additionals
- save additions (dialog will appear, which seems superfluous, since I 
just opened a specific file?)

- switch to TAZ mode with z
- select a TAZ
- disable the "keep" checkbox
- change a value in either the Source or Sink textboxes
- hit the Save changes button
- check the menu item
2) thanks!
3) this is not actually a zipper junction, but a junction belonging to 
multiple other junctions that form an intersection (there is a single 
(externally controlled) traffic light): see below, the one on the left 
without traffic light lines is the current zipper one
I set the type to zipper cause cars arriving on the edge the is selected 
in the image (blue) would only use the rightmost lane. Maybe a better 
solution then is to include that junction in the complete intersection, 
that is, control is as well with the same traffic light?


Thanks again,
Greets,
Menno

On 15-5-2019 21:02, Jakob Erdmann wrote:

Hello,
1) I could not replicated the disabled menu item. Can you give exact 
steps for this?
2) For the ordering-related error, see 
https://github.com/eclipse/sumo/issues/5640
3) Zipper junctions only support lane-drop type junctions at the 
moment. Real intersections with zippering are not supported at the 
moment. To be more precise, zipper connections that cross other 
connections before merging into the target lane are not supported.
Since the check for this is only done when a vehicle encounters an 
unsupported intersection type, it may take a while for this error to 
come up in your simulation.


Does the layout in your example reflect a real intersection where 
multi-lane roads merge without prioritization ? I was not aware that 
such things exist.


best regards,
Jakob



Am Mi., 15. Mai 2019 um 10:17 Uhr schrieb Menno van der Woude 
mailto:me...@codingconnected.eu>>:


Hello all,

after a while away from sumo and simulations, I have picked this
up again now. Great to see the new features! Eg. being able to
edit taz items within NETEDIT is really helpful.

I have noticed:

  * when changing 'source' and 'sink' values for edges belonging
to a TAZ, after hitting "Save changed", the "Save additionals"
menu item stay disabled. Only after for example moving a
detector can those changes then be saved to an additionals
file that had been opened and saved before.
  * NETEDIT sometime saves TAZ items like this:
    
    
    
    
    
    
Important here is source-sink-source-sink: SUMO will be unable
to read this and report an error. It seems odd that this is
incorrect, because it is valid XML and the order of the items
should (in my opinion) be irrelevant. Saving, closing, opening
and saving again of the additionals file solves the problem:
then we have source-source-sink-sink.

A question: given the junction in the picture below, SUMO
complains after a while of simulation: "Error: Zipper junctions
with more than two conflicting lanes are not supported". I wonder:
why? How to solve this?

Thanks, greets, Menno

___
sumo-user mailing list
sumo-user@eclipse.org <mailto: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


___
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
___
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


[sumo-user] Junctions visualized as sidewalk

2019-05-15 Thread Menno van der Woude

Hello all,

in a network I built, junctions show up in SUMO-GUI as 'sidewalk':

Does anyone know why this happens, and how I can change this?

Greets, Menno

___
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] Visualizer

2019-05-15 Thread Menno van der Woude

Hey Stefano,

i believe what you want is possible with SUMO-GUI:

 * you can visualize vehicles as desired, e.g. as 'boxes' (SUMO-GUI >
   view settings > Vehicles
 o i see no option for a custom shape (like a custom svg or a
   circle or so), not sure if this is supported. the wiki also does
   not mention this
 * you can set 'draw with constant size when zoomed out', which will
   result in a form of highlighting
 o e.g. when also setting 'color' to 'by accumulated waiting time'
   you get a nice global overview of where waiting times as high
 * you can disable break lights also if desired
 * in the same dialog, you can set the background color

then I get:

would that suffice?

Greets, Menno

On 15-5-2019 11:52, steniero wrote:

Hi,
I was wondering wether there was the possibility, maybe with an add-on 
program to visualize the simulation with a different layout, I want to 
see a medium to big scenario and I would like to see in a highlighted 
way how vehicles move (I was thinking a dark background and vehicles 
viewed as small lights). I have to present some results and I have 
need a video with a high graphical impact.


Something close to this style

Thank you

Stefano

___
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
___
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


[sumo-user] Error: Zipper junctions with more than two conflicting lanes are not supported

2019-05-15 Thread Menno van der Woude

Hello all,

after a while away from sumo and simulations, I have picked this up 
again now. Great to see the new features! Eg. being able to edit taz 
items within NETEDIT is really helpful.


I have noticed:

 * when changing 'source' and 'sink' values for edges belonging to a
   TAZ, after hitting "Save changed", the "Save additionals" menu item
   stay disabled. Only after for example moving a detector can those
   changes then be saved to an additionals file that had been opened
   and saved before.
 * NETEDIT sometime saves TAZ items like this:
    
    
    
    
    
    
   Important here is source-sink-source-sink: SUMO will be unable to
   read this and report an error. It seems odd that this is incorrect,
   because it is valid XML and the order of the items should (in my
   opinion) be irrelevant. Saving, closing, opening and saving again of
   the additionals file solves the problem: then we have
   source-source-sink-sink.

A question: given the junction in the picture below, SUMO complains 
after a while of simulation: "Error: Zipper junctions with more than two 
conflicting lanes are not supported". I wonder: why? How to solve this?


Thanks, greets, Menno

___
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] Genetic / Evolutionary Algorithm in SUMO

2018-10-15 Thread Menno van der Woude

Hi Lorenzo,

a good way to start might be sharing your own code? That way, people 
with knowledge about this theme (alas, not me) can react and help 
reflect and improve upon that. Or at least a more substantive 
description of your project.


However, the SUMO user mailing list may not be the best place for a 
question of this nature. If code is what you are looking for, maybe try 
Stackoverflow? The core of an algorithm of this kind will probably be 
independent of SUMO. It sounds like you would write the algorithm, then 
use TraCI to get data to and from SUMO to test it.


Greets,
Menno

On 13-10-2018 05:34, Lorenzo Cano Cesconetto wrote:

Hey guys,


I’m trying to implement a Genetic / Evolutionary algorithm in order to 
determine the optimal timing for fixed time traffic lights in a network.


I’m having some difficulties with the algorithm and the way it works.

It would be awesome if someone could share some *code*that does this. 
Any sample code is welcome.


Thank you!


___
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


___
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] CodingConnected.Traci example

2018-10-15 Thread Menno van der Woude

Hello,

the documentation of CodingConnected.TraCI.NET is indeed limited. The 
README.md only provides a very minimal example of how to get started.


The library assumes a working knowledge of TraCI, and generally reflects 
the design of TraCI. You can easily browse the sources of the lib to 
find out how it is constructed, and how to invoke various TraCI 
commands. Also, Intellisense in Visual Studio can be very helpful, as it 
exposes the members and methods the TraCIClient class.


For example, to interact with traffic lights, after the client has been 
initialized and connected, use:


client.TrafficLightCommands.SetPhase("TLID", 1);

I will try finding some time to expand a little on usage of the lib in 
the README, however, that might take a while.
API coverage is pretty large, so with looking at the sources and some 
tinkering it should be possible to use TraCI as needed.


Kind regards,

Menno van der Woude
CodingConnected e.U.

On 15-10-2018 08:41, Jakob Erdmann wrote:

I recommend that you contact the developers of
https://github.com/CodingConnected/CodingConnected.Traci
directly in case they are not reading this mailing list regularly.

Am So., 14. Okt. 2018 um 10:41 Uhr schrieb iCashWave 
mailto:icashw...@gmail.com>>:


I am learning Traci API.
I am not  familiar with python language.
Therefore, I use CodingConnected.TraCI.NET
<http://CodingConnected.TraCI.NET> for C#..
While I read the readme file in GitHub, it does not teach how to use
it  in detail.

Can someone share me a simple C# example like changing the signal
phase while clicking a button?

Best regards.

___
sumo-user mailing list
sumo-user@eclipse.org <mailto: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



___
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


___
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] Measure of throughput

2018-09-05 Thread Menno van der Woude

Hello José,

information regarding retrieving information from the simulation is 
readily available on the wiki: http://sumo.dlr.de/wiki/Simulation/Output


I have never used these features myself, but as for vehicles that could 
not enter, there is a value "waiting" described here:


http://sumo.dlr.de/wiki/Simulation/Output/Summary

waiting: "Number of vehicles which were waiting for insertion (could not 
be inserted) within the reported time step"


It might also be possible to gather this and other kind of info edges:

http://sumo.dlr.de/wiki/Simulation/Output/Lane-_or_Edge-based_Traffic_Measures

Greets, Menno

On 05/09/2018 11:11, Jose Monreal Bailey wrote:
And is it possible to get the information of the vehicles that could 
not enter the scenario and what point they were supposed to get in?


Best regards,
José

On Wed, 5 Sep 2018 at 09:42, Menno van der Woude 
mailto:me...@codingconnected.eu>> wrote:


Hi José,
see http://sumo.dlr.de/wiki/Simulation/Output
one option would be placing detectors where you widh to measure, then
use the output file of the detectors to get your data.
see

http://sumo.dlr.de/wiki/Simulation/Output/Lanearea_Detectors_(E2)#Generated_Output

<http://sumo.dlr.de/wiki/Simulation/Output/Lanearea_Detectors_%28E2%29#Generated_Output>
Geets, Menno

On 5-9-2018 10:35, Jose Monreal Bailey wrote:
> Hey everyone,
>
> How can I measure the throughput of vehicles ?
>
> Best regards,
> José
>
>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org <mailto: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
>
___
sumo-user mailing list
sumo-user@eclipse.org <mailto: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



___
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


___
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] Measure of throughput

2018-09-05 Thread Menno van der Woude

Hi José,
see http://sumo.dlr.de/wiki/Simulation/Output
one option would be placing detectors where you widh to measure, then 
use the output file of the detectors to get your data.
see 
http://sumo.dlr.de/wiki/Simulation/Output/Lanearea_Detectors_(E2)#Generated_Output

Geets, Menno

On 5-9-2018 10:35, Jose Monreal Bailey wrote:

Hey everyone,

How can I measure the throughput of vehicles ?

Best regards,
José


___
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


___
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] To show sumo gui in a jsp page instead of opening it in a new window

2018-09-05 Thread Menno van der Woude

Hi Stiti,

although unfamiliar with JSP, I highly doubt you can simply (or at all) 
display the SUMO gui within a JSP page.


SUMO-GUI is a fully fledged UI that depends on external libraries as 
well as the operating system to properly function. This cannot be simply 
ported to function from within a browser.
From the Java EE 5 tutorial: "A JSP page is a text document that 
contains two types of text: static data ... and JSP elements".


However, you can display your simulation in the browser using this 
software: https://github.com/sidewalklabs/sumo-web3d/. If you do not use 
other TraCI clients, this is actually very straightforward (I tried it a 
while ago, got it working in 15 min).


Greets, Menno

On 5-9-2018 10:03, Stiti Mohapatra wrote:

Hi everyone ,

I have one query related to sumo gui.As of now I am running a city 
simulation and able to show the simulation in the sumo gui which is 
getting opened automatically in a separate window.


I would like to show the same gui in my jsp page .May I know how can I 
able to achieve that ?


I am using java program (with Traas.jar) in order to access sumo package.

Thank you in advance.

Looking forward to hear back.

Kindest regards,
Stiti



___
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


___
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] [sumo-dev] Version 1.0.0 released

2018-09-04 Thread Menno van der Woude

Hello,

the changelog states a couple of changes to TraCI that seem not to be 
explained on the wiki:


- vehicle.updateBestLanes
- vehicle.getAcceleration (as apart from vehicle.getAccel)
- vehicle.getRoutingMode
- gui.hasView

For correct implementation, it would be helpful to have a description.

Also, it appears "TYPE_BOUNDINGBOX" and "TYPE_FLOAT" have disappeared as 
TraCI constants (in traciconstants.h), however, the wiki still states 
their existence. Are they still valid?


On a sidenote: the TraCI.NET library meanwhile has more than partial 
coverage. It is not at 100%, but most commands are implemented now. 
Subscriptions are also in the making (in a seperate branch).

Available at: https://github.com/CodingConnected/CodingConnected.Traci

Greets,

Menno van der Woude

On 4-9-2018 11:29, Jakob Erdmann wrote:

Dear friends and users,
we are glad to announce the release of SUMO version 1.0.0.
The download links are at http://sumo.dlr.de/wiki/Download
There are many new features and fixes in this release and the most 
important ones are listed below. For a full list of changes, see 
http://sumo.dlr.de/wiki/ChangeLog
There are also some compatibility changes that affect default 
application behavior and TraCI clients. These are listed below in full.



--- Enhancements ---

All applications
- All time values in options and xml inputs can now be specified in the 
format h:m:s and d:h:m:s where the values for days, hours and minutes 
are all positive integers and seconds may also be a positive floating 
point number.  Note: This does not apply to the python tools.
  - Added option --human-readable-time (short -H) that causes all time 
values to be written in h:m:s (or d:h:m:s) format.


Simulation
- Implemented SSM Device, which allows output of saftey related quantities.
- Added driver state device for modelling imperfect driving.
- Added a new car-following model "ACC" based on [Milanés et al. 
"Cooperative Adaptive Cruise Control in Real Traffic Situations." IEEE 
Trans. Intelligent Transportation Systems 15.1 (2014): 296-305.]
- FCD-output can now be switched on selectively for a subset of vehicles 
and the reporting period can be configured.
- FCD-output can now be restricted to a subset of network edges loaded 
from a file with option --fcd-output.filter-edges.input-file . The 
file format is that of an edge selection as saved by NETEDIT.
- A pedestrian crossings can now have different signal states for both 
directions.
- The default lane-changing model LC2013 now supports parameter 
lcAssertive to

   model aggressive lane change maneuvers.
- Vehroute-output now includes the reason for rerouting.
- Tripinfo-output now includes the attribute stopTime which records the 
time spent with intentional stopping.
- Added optional attribute visible to  (default 
false). This controls whether occupancy is known before reaching the 
parkingArea edge and can be used to model incomplete knowledge in 
parking reroute choice.
- Rerouters now support the attribute vTypes which restricts their 
effect to vehicles from the given list of vehicle type IDs.

- Vehicles are forming a corridor for emergency vehicles equipped with
   device.bluelight in sublane simulation
- Added lane/edge-attribute stopOffset for defining vClass specific 
stopping positions in front of traffic lights.



SUMO-GUI
- Added control for scaling traffic demand dynamically (next to the 
delay control).
- The simulation view can now be rotated via the new gui-settings 
attribute angle in the

    element or via the viewport dialog.
- The simulation state can now be saved via the Simulation Menu.
- Object tracking can now be aborted via double-click.
- Person plans can now be inspected via the right-click menu.
- Object name rendering size can now be toggled between constant pixel 
size (all visible when zoomed out) and constant network size (invisible 
when zoomed out).


MESO
- Simulation of persons and public transport is now supported.

NETEDIT
- Added Prohibition-mode for checking right-of-way at junctions (hotkey 
'w'). Thanks to Mirko Barthauer for the contribution.

- Now ParkingAreas and ParkingSpaces can be created in netedit.
- Added support for BusStops Acces.
- Now Generic Parameters can be loaded, saved and edited. 5
- When adding a new phase to a traffic light, the new phase will now 
have a plausible successor state depending on the selected previous 
phase (rather the being a copy).
- Added function 'split' to junction context menu. This can be used to 
disaggregated joined junctions.
- Re-organized options in the options-dialog (F10). Option help is shown 
in the status bar

- Custom edge geometry endpoints can now be manipulated in Move mode.

NETCONVERT
- Improved heuristics for options --junctions.join. Issue #876
- Improved computation of intermodal junctions imported from OSM.
- Improved computation of junction shapes.
- Added option --junctions.limit-turn

[sumo-user] NETEDIT background images 2^x ?

2018-07-31 Thread Menno van der Woude

Hello,

on the wiki, here 
http://sumo.dlr.de/wiki/SUMO-GUI#Showing_Background_Images, it is stated 
that background images "should have in both directions (height and 
width) a size which is equal to 2^x.".


I am wondering: is this also and still the case in NETEDIT (version 
0.32.0)? I am asking because it also states SUMO-GUI may load .bmp and 
.gif files, but I've had good results using .png files.


A thing I have noticed when using background images: after setting the 
name of the file to be used (I typically put the .png file in the same 
place as the .net.xml file, and then enter just the file name of the 
image, without the path), I have to close and re-open the network in 
NETEDIT for the image to be displayed. Is this normal, or am I doing 
something wrong?


Another thing: it would be great to be able to edit the image within 
NETEDIT, ie. have a bounding box, and drag the image, and set it's size, 
preferably while maintaining aspect ratio. Is this a feature that is 
planned for a future release? As it is now, I have to calculate the 
pixels per meter, and then the actual size the picture represents by 
hand. Moving the picture to a location after the network has been 
(partly) drawn is also somewhat tricky. Being able to edit those 
attributes within the network UI would be very handy.


Thanks, greets!

Menno

___
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


[sumo-user] activation of E1 detector by type with vTypeDistribution

2018-07-12 Thread Menno van der Woude

Hello,

while using E1 detectors I noticed the following:

 * in NETEDIT I set the 'vTypes' field to a specific value, for example 5
 * I generate traffic with vehicle type 5 (using od2trips)
 * now, when I use something like this:
   
   all works well: the E1 detector is activated when a vehicle with
   this type is on it
 * however, when I use instead something like this:
   
    
    ... etc ...
   
   the detector is not activated when a vehicle of type 5 is on it

Is this know behaviour?
My goal is to allow for selective detection, so I can detect busses 
and/or emergency vehicles seperately from other motorized vehicles. 
Actually having a single kind of verhicle for the type is ok for me, but 
the described behaviour seems like it could be a bug?


Thanks, greets,

Menno van der Woude
___
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] Disconnect with Traci

2018-07-10 Thread Menno van der Woude

Hi Zhiqiang,

it could be helpful if you provide some more details:
Under what circumstances does the connection fail? Do the circumstances 
during failure differ from before? Does it disconnect while it is 
connected, or not connect at all? Etc.

Also, how are you starting SUMO, manually, programmatically? Etc.

Greets, Menno

On 10-7-2018 15:27, 胡志强 wrote:
At the beginning ,it works well,but some time later,it may disconnect 
with the sever.So ,what's the possible reasons?


Best regards,
Zhiqiang



Menno van der Woude <mailto:me...@codingconnected.eu>> 于2018年7月10日周二 下午8:44写道:


Hi Zhiqiang,

it seems like SUMO is not running, since the the client cannot connect
to the TCP server. Make sure you start SUMO with the --remote-port

option as described here: http://sumo.dlr.de/wiki/TraCI#SUMO_startup.

If you need to simulate many runs, you will have to automate starting
SUMO as well.

Greets,

Menno

On 10-7-2018 14:34, 胡志强 wrote:
 > Dear sumo-users:
 >          I am doing a traffic light program to optimize the
timing of
 > traffic light by using Traci.But I met a problem,I need to
simulate the
 > process again and again,then,I got this error:
 >
 > Could not connect to TraCI server at localhost:55141 [Errno 111]
 > Connection refused
 >   Retrying in 2 seconds
 > Could not connect to TraCI server at localhost:55141 [Errno 111]
 > Connection refused
 >   Retrying in 3 seconds
 > Could not connect to TraCI server at localhost:55141 [Errno 111]
 > Connection refused
 >   Retrying in 4 seconds
 > Could not connect to TraCI server at localhost:55141 [Errno 111]
 > Connection refused
 >   Retrying in 5 seconds
 > Could not connect to TraCI server at localhost:55141 [Errno 111]
 > Connection refused
 >   Retrying in 6 seconds
 > Could not connect to TraCI server at localhost:55141 [Errno 111]
 > Connection refused
 >   Retrying in 7 seconds
 > Could not connect to TraCI server at localhost:55141 [Errno 111]
 > Connection refused
 >   Retrying in 8 seconds
 > Could not connect to TraCI server at localhost:55141 [Errno 111]
 > Connection refused
 >   Retrying in 9 seconds
 > Could not connect to TraCI server at localhost:55141 [Errno 111]
 > Connection refused
 >   Retrying in 10 seconds
 > Could not connect to TraCI server at localhost:55141 [Errno 111]
 > Connection refused
 > Traceback (most recent call last):
 >    File "main.py", line 78, in 
 >      train(RL_natural)
 >    File "main.py", line 26, in train
 >      observation = env.reset()
 >    File
 >

"/home/huzhiqiang/traffic-signal-control/traci_tls_PER_8s_lr0.00025/trafficlight_env.py",

 > line 110, in reset
 >      "--tripinfo-output", "tripinfo.xml"])
 >    File "/home/huzhiqiang/sumo/tools/traci/__init__.py", line 86,
in start
 >      _connections[label] = connect(port, numRetries, "localhost",
 > sumoProcess)
 >    File "/home/huzhiqiang/sumo/tools/traci/__init__.py", line 64,
in connect
 >      raise FatalTraCIError("Could not connect in %s tries" %
(numRetries
 > + 1))
 > traci.exceptions.FatalTraCIError: Could not connect in 11 tries
 >
 > How can I fix it?
 >
 > Best regards,
 > Zhiqiang
 >
 >
 >
 > ___
 > sumo-user mailing list
 > sumo-user@eclipse.org <mailto: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
 >
___
sumo-user mailing list
sumo-user@eclipse.org <mailto: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



___
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


___
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] Disconnect with Traci

2018-07-10 Thread Menno van der Woude

Hi Zhiqiang,

it seems like SUMO is not running, since the the client cannot connect 
to the TCP server. Make sure you start SUMO with the --remote-port  
option as described here: http://sumo.dlr.de/wiki/TraCI#SUMO_startup.


If you need to simulate many runs, you will have to automate starting 
SUMO as well.


Greets,

Menno

On 10-7-2018 14:34, 胡志强 wrote:

Dear sumo-users:
         I am doing a traffic light program to optimize the timing of 
traffic light by using Traci.But I met a problem,I need to simulate the 
process again and again,then,I got this error:


Could not connect to TraCI server at localhost:55141 [Errno 111] 
Connection refused

  Retrying in 2 seconds
Could not connect to TraCI server at localhost:55141 [Errno 111] 
Connection refused

  Retrying in 3 seconds
Could not connect to TraCI server at localhost:55141 [Errno 111] 
Connection refused

  Retrying in 4 seconds
Could not connect to TraCI server at localhost:55141 [Errno 111] 
Connection refused

  Retrying in 5 seconds
Could not connect to TraCI server at localhost:55141 [Errno 111] 
Connection refused

  Retrying in 6 seconds
Could not connect to TraCI server at localhost:55141 [Errno 111] 
Connection refused

  Retrying in 7 seconds
Could not connect to TraCI server at localhost:55141 [Errno 111] 
Connection refused

  Retrying in 8 seconds
Could not connect to TraCI server at localhost:55141 [Errno 111] 
Connection refused

  Retrying in 9 seconds
Could not connect to TraCI server at localhost:55141 [Errno 111] 
Connection refused

  Retrying in 10 seconds
Could not connect to TraCI server at localhost:55141 [Errno 111] 
Connection refused

Traceback (most recent call last):
   File "main.py", line 78, in 
     train(RL_natural)
   File "main.py", line 26, in train
     observation = env.reset()
   File 
"/home/huzhiqiang/traffic-signal-control/traci_tls_PER_8s_lr0.00025/trafficlight_env.py", 
line 110, in reset

     "--tripinfo-output", "tripinfo.xml"])
   File "/home/huzhiqiang/sumo/tools/traci/__init__.py", line 86, in start
     _connections[label] = connect(port, numRetries, "localhost", 
sumoProcess)

   File "/home/huzhiqiang/sumo/tools/traci/__init__.py", line 64, in connect
     raise FatalTraCIError("Could not connect in %s tries" % (numRetries 
+ 1))

traci.exceptions.FatalTraCIError: Could not connect in 11 tries

How can I fix it?

Best regards,
Zhiqiang



___
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


___
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] Traffic Lights Question

2018-07-02 Thread Menno van der Woude

Hi José,

the string "state" contains the state for all links the are controlled 
by this traffic light. Each char sets the state for a link (or multiple 
links with the same index).


For the meaning of the chars, see:

http://www.sumo.dlr.de/daily/pydoc/traci._trafficlight.html#TrafficLightDomain-setRedYellowGreenState

"Sets the named tl's state as a tuple of light definitions from 
rugGyYuoO, for red, red-yellow, green, yellow, off, where lower case 
letters mean that the stream has to decelerate."


Duration is the duration of a phase in seconds, meaning the time the 
traffic light will remain in the given phase before moving to the next one.
In the example program, you can thus see, for example, links 0 and 1 
will remain green for 31 seconds, then yellow for 5 seconds, then red 
for the rest of a cycle.


Hope this helps,

Greets,

Menno

On 2-7-2018 13:00, Jose Monreal Bailey wrote:

Dear all,

Regarding to traffic lights, I was reading the wiki, and I saw the 
following example of TLS program,




   
   
   
   
   
   
   
   




 From each of the phases, how can I read what it means the state and the 
duration?

How can I tell from that example the time spent for red, yellow and green?


Best regards,
José


___
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


___
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] Make vehicles use 2 lanes

2018-06-27 Thread Menno van der Woude

Thanks Jakob, setting the next junction to 'zipper' solved this right away!

As for pedestrians, given the network in the screenshot, could I create 
a single edge for pedestrians where they can walk in both directions? 
When I create a crossing, NETEDIT says that the crossing "has no 
target". I am somewhat unsure how to determine what edges the crossing 
should connect to so I can then use dynamic assignment via od2trips. The 
information on creating crossings with NETEDIT on the wiki does not 
mention how to edit their position, or how to connect them to edges.


Using the option --persontrips gets rid of the old warning, but now SUMO 
(0.32.0 release version) says "Warning: The attribute departPos is no 
longer supported for walks, please use the person attribute, the 
arrivalPos of the previous step or explicit stops.". Also, the 
pedestrians no longer just cross the junctions in my network, but seem 
to sometimes skip junctions, and sometimes start walking all over the 
network, causing a lot of collisions and delays. They also no longer 
wait for red trafficlights. Probably, the way I currently built my 
network does not play nicely with pedestrian trips.


Greets, Menno


On 27-6-2018 10:55, Jakob Erdmann wrote:

Hello,

1) I suspect to two-lane edge that leaves the intersection towards the 
west narrows to 1 lane and vehicles already try to be on the correct 
continuation lane. To avoid this behavior, set the node type to 
'zipper' where the two lanse merge.
You can diagnose strategic lane choice by right clicking a vehicle and 
selecting 'show best lanes'.


2) If you model pedestrians as vehicles then they will have an 
improper dynamics model (e.g. they will not use the whole width of the 
sidewalk for walking in both directions).
You  can use od2trips with the option --persontrips to generate 
persons instead.
If you model pedestrian crossings as crossing objects you can also 
control them using their index link number. In the latest development 
version it is also possible to control both sides of the crossing with 
different indices (and of course you can chose indices freely) so you 
have the same power as with the current modeling approach.
Regarding placement, you can configure crossing shapes freely via xml 
input and netedit.


regards,
Jakob


2018-06-27 10:44 GMT+02:00 Menno van der Woude 
mailto:me...@codingconnected.eu>>:


Hello,

in the network in the screenshot below, there are two lanes coming
from the south going left. This intersection is controlled by a
traffic light (via TraCI).

During the simulation, vehicles do not use the leftmost lane. I
have seen this behaviour in other simulations I have done. Is
there a way to stimulate vehicles to use both lanes? The lane on
the right (that is the middle lane here) would normally probably
be used more intensively, but vehicles should also use the
leftmost lane.

Any help appreciated!

On a sidenote: I am modelling the pedestrians using dynamic
assignment via od2trips. I have them walk over normal edges (which
means they will neatly queue at triffic lights, which is odd, but
OK for my purposes). SUMO complains about this, I get a warning
for each pedestrian that enter the network: "Warning: Vehicle type
'7' with vClass=pedestrian should only be used for persons and not
for vehicle 'ped78'.".
Is this the wrong way to have pedestrians in the simulation? I do
this cause it allows me to place pedestrian crossings precisely
where I want, and control them via TraCI using their index link
number.

Greets, Menno


___
sumo-user mailing list
sumo-user@eclipse.org <mailto: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
<https://dev.eclipse.org/mailman/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


___
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] vehicles teleport over junctions

2018-06-27 Thread Menno van der Woude
Out of curiosity: why could having no internal links in the simulation 
be desirable?


Greets, Menno

On 26-6-2018 19:20, Jakob Erdmann wrote:
When the option --no-internal-links is enabled, streets are made 
artificially longer so that the total route length matches the 
geometrically traveled distance despite "jumping" over intersections. 
The vehicle positions are interpolated to compensate (resulting in 
visually short distances while queued).
Whereas other lane-based objects such as InductionLoops are also placed 
at interpolated positions, the E2 detectors are drawn in the wrong spot 
resulting in the reported mismatch between TraCI and GUI (now tracked at 
https://github.com/eclipse/sumo/issues/4288).


regards,
Jakob

2018-06-26 17:28 GMT+02:00 Menno van der Woude <mailto:me...@codingconnected.eu>>:


Dear all,

found the culprit: the option 'no internal links' was switched on in
NETEDIT, I am unsure how that happened. I only found out by
comparing my network to a previous one I built.
The 'no internal links' option seems somewhat odd, as vehicles are
not displayed on their actual position. I.e., TraCI will then report
E2 detectors with vehicles on them, that in the UI are actually not
occupied (yet/anymore).
Anyway, it works like a charm once again!

Greets,
    Menno


On 26-6-2018 15:49, Menno van der Woude wrote:

Dear all,

in a network I made I am experiencing behaviour of vehicles that
seems odd. The vehicles drive normally, but upon reaching a
junction, teleport to the other side. Also, while waiting for a
traffic light, they seem not to leave any distance between them.

I am unaware of having changed any defaults with respect to
behaviour. The network was made using a recent development
version of NETEDIT, the traffic lights are controlled using
TraCI. Is there a setting I can use to correct the described
behaviour?

        Thanks, regards,

Menno van der Woude

___
sumo-user mailing list
sumo-user@eclipse.org <mailto: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
<https://dev.eclipse.org/mailman/listinfo/sumo-user>

___
sumo-user mailing list
sumo-user@eclipse.org <mailto: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
<https://dev.eclipse.org/mailman/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


___
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


[sumo-user] Make vehicles use 2 lanes

2018-06-27 Thread Menno van der Woude

Hello,

in the network in the screenshot below, there are two lanes coming from 
the south going left. This intersection is controlled by a traffic light 
(via TraCI).


During the simulation, vehicles do not use the leftmost lane. I have 
seen this behaviour in other simulations I have done. Is there a way to 
stimulate vehicles to use both lanes? The lane on the right (that is the 
middle lane here) would normally probably be used more intensively, but 
vehicles should also use the leftmost lane.


Any help appreciated!

On a sidenote: I am modelling the pedestrians using dynamic assignment 
via od2trips. I have them walk over normal edges (which means they will 
neatly queue at triffic lights, which is odd, but OK for my purposes). 
SUMO complains about this, I get a warning for each pedestrian that 
enter the network: "Warning: Vehicle type '7' with vClass=pedestrian 
should only be used for persons and not for vehicle 'ped78'.".
Is this the wrong way to have pedestrians in the simulation? I do this 
cause it allows me to place pedestrian crossings precisely where I want, 
and control them via TraCI using their index link number.


Greets, Menno

___
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] vehicles teleport over junctions

2018-06-26 Thread Menno van der Woude

Dear all,

found the culprit: the option 'no internal links' was switched on in 
NETEDIT, I am unsure how that happened. I only found out by comparing my 
network to a previous one I built.
The 'no internal links' option seems somewhat odd, as vehicles are not 
displayed on their actual position. I.e., TraCI will then report E2 
detectors with vehicles on them, that in the UI are actually not 
occupied (yet/anymore).

Anyway, it works like a charm once again!

Greets,
Menno

On 26-6-2018 15:49, Menno van der Woude wrote:

Dear all,

in a network I made I am experiencing behaviour of vehicles that seems 
odd. The vehicles drive normally, but upon reaching a junction, teleport 
to the other side. Also, while waiting for a traffic light, they seem 
not to leave any distance between them.


I am unaware of having changed any defaults with respect to behaviour. 
The network was made using a recent development version of NETEDIT, the 
traffic lights are controlled using TraCI. Is there a setting I can use 
to correct the described behaviour?


Thanks, regards,

Menno van der Woude

___
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

___
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


[sumo-user] vehicles teleport over junctions

2018-06-26 Thread Menno van der Woude

Dear all,

in a network I made I am experiencing behaviour of vehicles that seems 
odd. The vehicles drive normally, but upon reaching a junction, teleport 
to the other side. Also, while waiting for a traffic light, they seem 
not to leave any distance between them.


I am unaware of having changed any defaults with respect to behaviour. 
The network was made using a recent development version of NETEDIT, the 
traffic lights are controlled using TraCI. Is there a setting I can use 
to correct the described behaviour?


Thanks, regards,

Menno van der Woude

___
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] TraCI step-length

2018-06-15 Thread Menno van der Woude

Hi Gunnar,

the simulationStep takes an argument, that will move the simulation to 
that position. See the wiki:


http://sumo.dlr.de/wiki/TraCI/Control-related_commands

"If TargetTime is 0 (zero), SUMO performs exactly one time step. 
Otherwise SUMO performs the simulation until the given time step is 
reached."


Have you set the step length for SUMO in the sumocfg file like this:



If so, calling simulationStep without an argument should move the 
simulation 1 ms ahead.
1 ms does seem like a very small step size. On most operating systems, 
you will probably not be able to view the simulation normally; ie. on 
Windows the lenght of a processor time slice is about 14 ms.


Regards, Menno

On 15-6-2018 10:56, Diestmann, Gunnar via sumo-user wrote:

Hi,

I'm using TaCi/C++ to use SUMO in co-simulation with another software.
So far I have a very simple program to get the position of the vehicles in the 
simulation (the simulation has just two cars). It works perfectly fine.
Now I tried to change the step length for the simulation steps to 1ms. My 
program is still able to connect to the client. But after that it just stops.
I the SUMO cmd I get the following output:
Step #0.200 <0ms ?*RT. ?UPS, TraCI: 1ms, vehicles TOT 0 ACT 0 BUF =>

Can anybody tell me what that means and/or how I can solve the problem?

I would also like to know if there is supposed to be any difference in the 
simulation when I change client.simulationStep() to for example 
client.simulationStep(0.001). Is this also supposed to change the simulation 
step length?

Thank you

BR
Gunnar


--
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


___
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] Try out SUMO-Web3D, a web-based 3D visualization of your SUMO simulation

2018-06-14 Thread Menno van der Woude

Hey Dan,

very nice, that actually was as simple as you described!

A question: is it possible to connect more TraCI clients to the 
simulation when using sumo-web3d? I would like to control the traffic 
lights in my simulations using one or more external controllers via TraCI.


Thanks! Greets,

Menno

On 14-6-2018 22:26, Dan Vanderkam wrote:
FYI I've pushed an update to sumo-web3d (version 1.0.1) that fixes a bug 
 which prevented 
this from running on Windows for some users. If you've tried out 
sumo-web3d on Windows in the past and run into issues, this would be a 
good time to give it another go.


Best,
   - Dan

On Thu, Feb 22, 2018 at 4:25 PM Dan Vanderkam > wrote:


Hello,

My name is Dan and I'm an engineer atSidewalk Labs
. A team of us wanted to learn more
about microsimulations with SUMO, and we have some frontend
experience, so we built a 3D visualization that runs on top of SUMO.
It uses TraCI to pull simulation state into the browser and renders
roads, vehicles, people and buildings in 3D.

You can find full setup instructions on GitHub
 but, if you already
have Python 3.6 and SUMO installed, it should be as simple as:

   pip3 install sumo-web3d
   sumo-web3d

   # or: sumo-web3d -c path/to/your/scenario.sumocfg

There are a few screenshots below. You can also check out this video

to see it in action:
​
acosta video.mov


​
We've tested this on quite a few scenarios and we hope it works with
yours! But if it doesn't, please file an issue
. Also feel
free to tell us if it works great :)

SUMO-Web3D is licensed under the Eclipse Public License v2.0, same
as SUMO. We plan to fix issues that come up with user's scenarios,
but the long-term plan is to donate this to the SUMO developers and
the Eclipse foundation.

Best,
   - Dan

Inline image 1

Inline image 2
Inline image 4

Inline image 3



___
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


___
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] error with e2 detectors

2018-05-29 Thread Menno van der Woude

Hey Pablo,

ok, is there a quick fix, how to avoid this? Ie. can I do something 
manually to correct the position of detectors in SUMO-GUI?


And/or is there a time path for a fix?

Thanks!
Regards, Menno

On 29-5-2018 12:53, pablo.alvarezlo...@dlr.de wrote:

Hi Meno,

Yes, it's a known bug related with the relative positions of additionals over 
lanes.

Regards

-Ursprüngliche Nachricht-
Von: sumo-user-boun...@eclipse.org [mailto:sumo-user-boun...@eclipse.org] Im 
Auftrag von Menno van der Woude
Gesendet: Dienstag, 29. Mai 2018 12:04
An: sumo-user@eclipse.org
Betreff: Re: [sumo-user] error with e2 detectors

Hi Pablo,

thank you for looking into this. Given the wiki is down, where can I
find the latest snapshot?

Another thing I have notices is that for some e2 detectors, their
position in SUMO-GUI is considerably different from that in NETEDIT. The
detectors in case 'move' closer the stopline. Is this a known bug?

Regards, Menno

On 24-5-2018 12:41, pablo.alvarezlo...@dlr.de wrote:

Hi Meno,

I'm working in a solution for this problem in a separate Branch. Today or 
Tomorrow will be integrated into master.

Regards

-Ursprüngliche Nachricht-
Von: sumo-user-boun...@eclipse.org [mailto:sumo-user-boun...@eclipse.org] Im 
Auftrag von Menno van der Woude
Gesendet: Donnerstag, 24. Mai 2018 12:40
An: sumo-user@eclipse.org
Betreff: [sumo-user] error with e2 detectors

Hello,

using the latest nightly build, when I save an additionals file with E2
detectors, and then load the network in SUMO-GUI, I get these errors:

Error: Attribute 'freq' is missing in definition of e2Detector 'r34a'.

After adding the freq attribute, all is fine. Note that in NETEDIT, freq
seems to have a value (100).

Kind regards, Menno

___
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
___
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


___
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
___
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


___
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] error with e2 detectors

2018-05-29 Thread Menno van der Woude

Hi Pablo,

thank you for looking into this. Given the wiki is down, where can I 
find the latest snapshot?


Another thing I have notices is that for some e2 detectors, their 
position in SUMO-GUI is considerably different from that in NETEDIT. The 
detectors in case 'move' closer the stopline. Is this a known bug?


Regards, Menno

On 24-5-2018 12:41, pablo.alvarezlo...@dlr.de wrote:

Hi Meno,

I'm working in a solution for this problem in a separate Branch. Today or 
Tomorrow will be integrated into master.

Regards

-Ursprüngliche Nachricht-
Von: sumo-user-boun...@eclipse.org [mailto:sumo-user-boun...@eclipse.org] Im 
Auftrag von Menno van der Woude
Gesendet: Donnerstag, 24. Mai 2018 12:40
An: sumo-user@eclipse.org
Betreff: [sumo-user] error with e2 detectors

Hello,

using the latest nightly build, when I save an additionals file with E2
detectors, and then load the network in SUMO-GUI, I get these errors:

Error: Attribute 'freq' is missing in definition of e2Detector 'r34a'.

After adding the freq attribute, all is fine. Note that in NETEDIT, freq
seems to have a value (100).

Kind regards, Menno

___
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
___
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


___
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


[sumo-user] error with e2 detectors

2018-05-24 Thread Menno van der Woude

Hello,

using the latest nightly build, when I save an additionals file with E2 
detectors, and then load the network in SUMO-GUI, I get these errors:


Error: Attribute 'freq' is missing in definition of e2Detector 'r34a'.

After adding the freq attribute, all is fine. Note that in NETEDIT, freq 
seems to have a value (100).


Kind regards, Menno

___
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


[sumo-user] Hiding S and E circles for edges in NETEDIT

2018-05-17 Thread Menno van der Woude

Hello,

the latest version of NETEDIT shows circles with S and E in them for 
edges that are connected to juntions. A very nice feature, however, when 
there are many, they block from view some short edges.


Is there a way to hide or shrink these circles? I have not found an 
option for this, but maybe I am looking in the right place.


Thanks a lot, kind regards,

Menno van der Woude
___
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] routing vehicles over large roundabout

2018-04-19 Thread Menno van der Woude

Hello Jakob,

the path is indeed reddish, however, it changes a lot between red and 
green (and so do all edges). I set the adaptation-steps option, but the 
color of the edges still changes as before (and routing seem 
unaffacted). Is it correct that I can add




to the sumocfg file to enable this option?

Greets, Menno

On 19-4-2018 12:12, Jakob Erdmann wrote:

Hello,
when loading trips, vehicles always take the fastest route according to 
averaged travel times.

My guess is that these times are inappropriate.
You can check this by setting the edge coloring to 'by routing device 
assumed speed' and see if the straight path is colored reddish.
This could occur when the averaging algorithm does not smooth out the 
traffic light cycle.

Try setting the option --device.rerouting.adaptation-steps yourTLSCycleTime
(see http://sumo.dlr.de/wiki/Demand/Automatic_Routing#Edge_weights)

regards,
Jakob

2018-04-19 11:27 GMT+02:00 Menno van der Woude <mailto:me...@codingconnected.eu>>:


Hello,

while simulating a large roundabout I am running into trouble with
the routes vehicles choose. The roundabout has four arms. Many
vehicles want to go "straight", i.e. they want to take the first
exit after entering the roundabout. SUMO however sends these
vehicles for a trip all around the roundabout, which leads to
congestion as the traffic light program is not equipped for this (it
would also be odd in reality).

I am using OD2TRIPS to generate trips files that I feed into SUMO
via the  attribute in the sumocfg file.

Given this scenario, is there a way to force (all) vehicles to
choose the shortest route?

Thanks, greets,

Menno

___
sumo-user mailing list
sumo-user@eclipse.org <mailto: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
<https://dev.eclipse.org/mailman/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


___
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


[sumo-user] routing vehicles over large roundabout

2018-04-19 Thread Menno van der Woude

Hello,

while simulating a large roundabout I am running into trouble with the 
routes vehicles choose. The roundabout has four arms. Many vehicles want 
to go "straight", i.e. they want to take the first exit after entering 
the roundabout. SUMO however sends these vehicles for a trip all around 
the roundabout, which leads to congestion as the traffic light program 
is not equipped for this (it would also be odd in reality).


I am using OD2TRIPS to generate trips files that I feed into SUMO via 
the  attribute in the sumocfg file.


Given this scenario, is there a way to force (all) vehicles to choose 
the shortest route?


Thanks, greets,

Menno

___
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] e2 detector inside junction?

2018-04-18 Thread Menno van der Woude

Hello,

thanks, it worked now. Before, I think I did not open the network with 
internal lanes in SUMO. Now I was able to place a detector inside the 
junction!


Greets, Menno

On 18-4-2018 12:13, Jakob Erdmann wrote:

Hello,
in order to place detectors within junctions your network must be built 
with internal lanes 
(http://sumo.dlr.de/wiki/Simulation/Intersections#Internal_links).


- you can show the internal edge ids by setting 'show internal edge 
name' in the junction visualization settings (lanes have the suffix '_n' 
where n = 0 refers to the rightmost lane of the internal edge).
- if you disbable 'draw junction shape' in the junction visualization 
settings you can see the internal lanes and right-click them to get their id
- it helps to draw lanes at reduced width as explained here: 
http://sumo.dlr.de/wiki/SUMO-GUI#Investigating_internal_edges_and_lanes


regards,
Jakob


2018-04-18 10:14 GMT+02:00 Menno van der Woude <mailto:me...@codingconnected.eu>>:


Hello Jakob,

thanks for the info. I'd like to try this, but have trouble finding
the internal lane IDs.

Checking "show internal edge name" in View Settings (in SUMO-GUI)
has no (visible) effect. Checking "show lane to lane connections"
shows some straight lines, though not all connections are drawn.
Also, the connections cannot be selected, and hovering over them
does not show an ID.

I also noticed that in the network file, all junctions have this:
intLanes="". Also, at the top of the file it says
"". This seems to be an implicit
settings, at this option was not checked in the Processing Options
window (F10). After checking is, saving, then unchecking and saving
again, the intLanes property is filled with data.
I am however still unable to view them in SUMO-GUI. Using the IDs
that show up in the network file does not seem to work (also I don't
know which is which).

Am I missing something?

Greets, Menno

On 16-4-2018 15:43, Jakob Erdmann wrote:

Hello,
you can place detectors on so-called internal lanes.
This should be considered experimental and there is currently no
support for this in netedit.
You must obtain the lane id corresponding from sumo-gui as
explained here:
http://sumo.dlr.de/wiki/SUMO-GUI#Investigating_internal_edges_and_lanes

<http://sumo.dlr.de/wiki/SUMO-GUI#Investigating_internal_edges_and_lanes>
Note, that for left-turns the connection may consist of two
    consecutive lanes.
regards,
Jakob



2018-04-16 12:44 GMT+02:00 Menno van der Woude
mailto:me...@codingconnected.eu>
<mailto:me...@codingconnected.eu
<mailto:me...@codingconnected.eu>>>:

     Hello all,

     for an intersection I'd like to simulate, I need to have E2
type
     detectors inside a junction (ie. on a connection). Is this
somehow
     possible? (Preferably with netedit...)

     Alternatively, also helpful would be to be able to place a
traffic
     light stop line at an arbitrary position on an edge
connected to a
     controller junction. That way, I could have a detector
after the
     stop line.

     Thanks for any help,

     Greets, Menno

     ___
     sumo-user mailing list
sumo-user@eclipse.org <mailto:sumo-user@eclipse.org>
<mailto:sumo-user@eclipse.org <mailto: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
<https://dev.eclipse.org/mailman/listinfo/sumo-user>
     <https://dev.eclipse.org/mailman/listinfo/sumo-user
<https://dev.eclipse.org/mailman/listinfo/sumo-user>>




___
sumo-user mailing list
sumo-user@eclipse.org <mailto: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
<https://dev.eclipse.org/mailman/listinfo/sumo-user>

___
sumo-user mailing list
sumo-user@eclipse.org <mailto: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
<https://dev.eclipse.org/mailman/listinfo/sumo-user>




___
sumo-user ma

Re: [sumo-user] e2 detector inside junction?

2018-04-18 Thread Menno van der Woude

Hello Jakob,

thanks for the info. I'd like to try this, but have trouble finding the 
internal lane IDs.


Checking "show internal edge name" in View Settings (in SUMO-GUI) has no 
(visible) effect. Checking "show lane to lane connections" shows some 
straight lines, though not all connections are drawn. Also, the 
connections cannot be selected, and hovering over them does not show an ID.


I also noticed that in the network file, all junctions have this: 
intLanes="". Also, at the top of the file it says "value="true"/>". This seems to be an implicit settings, at this option 
was not checked in the Processing Options window (F10). After checking 
is, saving, then unchecking and saving again, the intLanes property is 
filled with data.
I am however still unable to view them in SUMO-GUI. Using the IDs that 
show up in the network file does not seem to work (also I don't know 
which is which).


Am I missing something?

Greets, Menno

On 16-4-2018 15:43, Jakob Erdmann wrote:

Hello,
you can place detectors on so-called internal lanes.
This should be considered experimental and there is currently no support 
for this in netedit.

You must obtain the lane id corresponding from sumo-gui as explained here:
http://sumo.dlr.de/wiki/SUMO-GUI#Investigating_internal_edges_and_lanes
Note, that for left-turns the connection may consist of two consecutive 
lanes.

regards,
Jakob



2018-04-16 12:44 GMT+02:00 Menno van der Woude <mailto:me...@codingconnected.eu>>:


Hello all,

for an intersection I'd like to simulate, I need to have E2 type
detectors inside a junction (ie. on a connection). Is this somehow
possible? (Preferably with netedit...)

Alternatively, also helpful would be to be able to place a traffic
light stop line at an arbitrary position on an edge connected to a
controller junction. That way, I could have a detector after the
stop line.

Thanks for any help,

Greets, Menno

___
sumo-user mailing list
sumo-user@eclipse.org <mailto: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
<https://dev.eclipse.org/mailman/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


___
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


[sumo-user] e2 detector inside junction?

2018-04-16 Thread Menno van der Woude

Hello all,

for an intersection I'd like to simulate, I need to have E2 type 
detectors inside a junction (ie. on a connection). Is this somehow 
possible? (Preferably with netedit...)


Alternatively, also helpful would be to be able to place a traffic light 
stop line at an arbitrary position on an edge connected to a controller 
junction. That way, I could have a detector after the stop line.


Thanks for any help,

Greets, Menno

___
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] Starting a simulation with already populated streets

2018-02-23 Thread Menno van der Woude

Hi Aboozar,

depending on why you want this, you could also add a period of say 10 
minutes to the start of the simulation, where you already send in 
traffic, but which you ignore for for example analysis or presentation.
Of course, the network would then still be empty at the start of the 
simulation.


If you have other reasons than analysis for wanting a full network from 
the start, you can use TraCI to add vehicles to the network (ie. 
http://sumo.dlr.de/wiki/TraCI/Change_Vehicle_State#add_.280x80.29).


Greets,

Menno van der Woude

Op 23-2-2018 om 19:42 schreef Aboozar Roosta:

Hi all,
I would like to start a simulation with streets already populated with a 
desired amount of cars in each street. Is this possible? Please guide me.

Thanks
*Aboozar Roosta
*
Msc. Student of Electrical Engineering - Control
School of Electrical and Computer Engineering,
Tarbiat Modares University (TMU), Tehran, Iran.
2017


___
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


___
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


[sumo-user] multiple junctions as one traffic light

2017-12-19 Thread Menno van der Woude

Hello,

a question regarding traffic lights in SUMO: is it possible to have a 
single traffic light that has/controls links in multiple junctions?


Background: I have an actuated controller, of which state will be set 
via TraCI. As far as the external controller is concerned, there is a 
single intersection. However, in SUMO it consists of two junctions 
connected with edges.


The wiki mentions internal edges, which might be suitable, but I am 
unsure how to add/edit those: is it possible to add/edit them in 
NETEDIT? To add them by hand an get the location right would be somewhat 
too arduous.


It would be nice to be able set the state of the traffic light as a 
whole via TraCI in a single call. Of course, I can work around this by 
mapping the two intersections in SUMO to the appropriate lights in my 
(native c) TraCI application, if that is the best option.


Thanks, kind regards,

Menno van der Woude
CodingConnected e.U. (Wien - Österreich)
E me...@codingconnected.eu
W www.codingconnected.eu
___
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] Using the output of tools\createVehTypeDistribution.py

2017-12-13 Thread Menno van der Woude

Hey Mirko,

thank you, this works!
I'd be curious if there exist some accepted standards to use for 
generating such distrutions. Or maybe it just differs considerably per 
situation, and generic numbers would make little sense...


Kind regards,
Menno

Op 13-12-2017 om 19:14 schreef Mirko Barthauer:

Hi Menno,

please use "vClass" instead of "class". I have updated the wiki page 
http://sumo.dlr.de/wiki/Tools/Misc#createVehTypeDistributions.py which 
also mentioned the non-exisitng attribute "class".


Regards
Mirko

Am 12.12.2017 um 09:41 schrieb Menno van der Woude via sumo-user:

Hello,

while trying to add randomization to a simulation, I get the following 
error with using the output of createVehTypeDistribution.py: Error: 
attribute 'class' is not declared for element 'vType'


I tried using the output of the tool as an addition file as-is, tried 
adding the output to my trips.xml file, and tried replacing the trips 
with the output of the tool. The above error appears in all cases.


What would be the right way to use the output of this tool?

Up until now, I am using OD2TRIPS to generate my trips file, using 
multiple input files to generate a single trips.xml for all 
modalities. I think this is not really the way this is meant to be 
done, but it works. I have to manually add my vehicle types to the 
trips.xml file after using OD2TRIP. SUMO does complain that 
"vClass=pedestrian should only be used for persons", but pedestrians 
nonetheless enter the network.
I am looking for a (relatively) easy way to add randomness to my 
simulation (ideally also painting cars in different colors...). There 
seem to be many ways to accomplish this, I am unsure what is the best 
way, given that I am working with OD2TRIPS.


Any help appreciated!

Kind regards,

Menno van der Woude

-- 


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


___
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

___
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


[sumo-user] Using the output of tools\createVehTypeDistribution.py

2017-12-12 Thread Menno van der Woude via sumo-user

Hello,

while trying to add randomization to a simulation, I get the following 
error with using the output of createVehTypeDistribution.py: Error: 
attribute 'class' is not declared for element 'vType'


I tried using the output of the tool as an addition file as-is, tried 
adding the output to my trips.xml file, and tried replacing the trips 
with the output of the tool. The above error appears in all cases.


What would be the right way to use the output of this tool?

Up until now, I am using OD2TRIPS to generate my trips file, using 
multiple input files to generate a single trips.xml for all modalities. 
I think this is not really the way this is meant to be done, but it 
works. I have to manually add my vehicle types to the trips.xml file 
after using OD2TRIP. SUMO does complain that "vClass=pedestrian should 
only be used for persons", but pedestrians nonetheless enter the network.
I am looking for a (relatively) easy way to add randomness to my 
simulation (ideally also painting cars in different colors...). There 
seem to be many ways to accomplish this, I am unsure what is the best 
way, given that I am working with OD2TRIPS.


Any help appreciated!

Kind regards,

Menno van der Woude

--
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