Hello,
when using randomTrips, the best way to add random colors is to decleare a
"type" (
http://sumo.dlr.de/wiki/Tools/Trip#generating_vehicles_with_additional_parameters)
and then define a vTypeDistribution with that type name (
http://sumo.dlr.de/wiki/Definition_of_Vehicles,_Vehicle_Types,_and_Routes#Route_and_vehicle_type_distributions)
you can then define various types with different colors in that
distribution.

Alternatively, the latest svn-version has an option for coloring
pedestrians randomly via the gui coloring dialog (
http://sumo.dlr.de/wiki/ChangeLog#Enhancements_2).

regards,
Jakob



2014-12-18 20:11 GMT+01:00 Anand <[email protected]>:

> Dear all,
>
> I was trying to generate a pedestrian model and a vehicle model using the
> randomtrips.py which I am am able to and then was able to merge these two
> models using the duarouter tool.
>
> My query is related to assigning different colors to the vehicles and
> passengers. I think using the additional file option I can add colors to
> the vehicles. So I have two questions
>
>    - Can the colors be assigned randomly ? If yes then please guide me how
>    to achieve it.
>    - Is it possible to assign colors to passengers as well. ?
>
> Thanks
> -Ashish
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
>
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> sumo-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to