Discussion:
[sumo-user] TraCI setColor and vehicle colors
Defya Simga
2011-11-17 02:48:48 UTC
Permalink
Hello all,

I'm been trying to change vehicle colors with TraCI and does not work. I've
already used "traci.vehicle.setColor(id,[255,0,0,255])" but nothing changes
(visualizing with SUMO-GUI). I've also tried to define vehicle colors
directly on the routes file by adding the attribute color="1,0,0" (red),
and nothing happens... the vehicles are always yellow.

Thank you for your help.
Eric Gamess
2011-11-17 19:01:03 UTC
Permalink
Hi Defya,

In "sumo-gui", you have a circle with color
which allow you to open a window called
"View Settings". In this window, select
"Vehicles" (on your left) and then
"given/assigned vehicle color" (in "Color by").
Then your vehicles will have the color you
assigned to them.

Eric.
Daniel Krajzewicz
2011-11-22 11:37:51 UTC
Permalink
Hello Defya,

After setting the visualisation options, you may save them into a file by
pressing the floppy disc icon. You may then include the file in your
configuration file, the option name is "gui-settings-file". It will be then
loaded and the view/colors you have previously defined are used from the
simulation's begin. See:
http://sumo.sourceforge.net/doc/current/docs/SUMO-GUI.html#Configuration_Files

sincerely,
Daniel
Post by Eric Gamess
Hi Defya,
In "sumo-gui", you have a circle with color
which allow you to open a window called
"View Settings". In this window, select
"Vehicles" (on your left) and then
"given/assigned vehicle color" (in "Color by").
Then your vehicles will have the color you
assigned to them.
Eric.
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
sumo-user mailing list
https://lists.sourceforge.net/lists/listinfo/sumo-user
Loading...