Skip to main content

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

1) yes. you need to use sumolib to get the 3d coordinates.
2) see http://sumo.dlr.de/wiki/Definition_of_Vehicles,_Vehicle_Types,_and_Routes#Using_existing_types

regards,
Jakob

2018-08-03 12:32 GMT+02:00 Timothée Corsini via sumo-user <sumo-user@xxxxxxxxxxxxxxxxxxxxx>:
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


Back to the top