Thank you Jakob ,

This makes a lot of sense. It works.

Good day

François
________________________________________
De : Jakob Erdmann [[email protected]]
Date d'envoi : 4 mars 2015 01:57
À : François Vaudrin
Cc : [email protected]
Objet : Re: [sumo-user] Vizualisation, vehicle type and flow tags

Hello,
you misunderstood the purpose of the <flow> attribute 'id'. This is an 
identifier which must be unique to each flow. To assign a <vType> to a flow you 
must use the 'type' attribute with the id of the <vtype>. The 'guiShape' 
attribute can only be used inside a <vType> definition. Make sure to switch on 
the visualization of vehicle shapes in the gui. By default only triangles are 
drawn. See 
http://sumo.dlr.de/wiki/SUMO-GUI#Changing_the_appearance.2Fvisualisation_of_the_simulation

<vType id="myType" guiShape="truck"/>
<flow id="flow1" type="myType" .../>
<flow id="flow2" type="myType" .../>

regards,
Jakob

2015-03-04 1:45 GMT+01:00 François Vaudrin 
<[email protected]<mailto:[email protected]>>:

Hello,

1- Vizualisation

In the wiki Definition of Vehicles, Vehicle Types, and Routes
http://sumo.dlr.de/wiki/Definition_of_Vehicles,_Vehicle_Types,_and_Routes#Stops
Visualization in section I understand that it is possible to change the 
appearance of the vehicles. I added the attribute "truck" and made other tests 
"bus" SUMO but does not seem to reflect that.

<Flow id = "For A" from = "M1" to = "M30" number = "400" color = "0,1,0" 
guiShape = "truck" />


2- vType and flow

I use also tags vtype and flow. SUMO handle properly the flow of vehicles as 
long as each car id is different. Otherwise, it shows an error message.

 Error: Another route for vehicle  'Car A' exists.
Quitting (on error).

It seems not taking into account vehicle definition vType as it does when 
describing the trip in full with route tag.

<routes>

  <vType id = "Car A" accel = "3.0" decel = "6.0"  length = "5.0" minGap = 
"100" maxSpeed ​​= "50.0" sigma = "0.5" color = "0,1,0" />

  <flows>

    <interval begin = "0" end = "3600">

        <Flow id = "Car A" from = "M1" to = "M30" number = "400" color = 
"0,1,0" guiShape = "truck" />
        <Flow id = "Car A" from = "M1" to = "- S40" number = "100" />

...

I do not understand why it is necessary that each flow should be for different 
type of vehicles ?

Greetings


François Vaudrin, ing, MBA
Laboratoire ERICAE
Faculté des Sciences et de Génie
Université Laval, CANADA
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
sumo-user mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/sumo-user

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to