Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Randomness of vehicles types, 3D coordinates of the network

Hello,

I am currently working on importing a sumo simulation into a 3D environment
by using TraciAPi. In order to create the TrafficLights, I would like to
get the 3D coordinates of the node and the lanes concerned. However,
TraciApi gives 2D position for objects different from vehicles. Do I have
to use the sumolib and/or parse the net file in order to get the
informations I need ?

Another question : I would like to create random trips into my network,
that is why I use the randomTrips.py script. But I also need to use
different vTypes. That is why I used a vTypesDistribution. (as creating
multiple trips for each vType would also require to change the ids of each
vehicles for Duarouter use)
So here is the issue : I am using the vTypes to determine the object
created in my 3D environment, that is why I have defined constant vTypes in
a file. But, by using the vTypesDistribution, I need to redefine each of
the vehicle types I use and to change their names. That means I would need
to define for each of those "new" vTypes a 3D object.

So, is there some way to create a random distribution of already defined
vTypes ?

Best regards,
Timothée
------------------------------------------------------------------------------
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-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/sumo-user

Back to the top