Thank you, it worked !

I hope it' my final issue(s) but : I'm trying to manually control a
vehicule by using the command MoveToXY while the vehicule has always a
speed of 0. The result is a vehicule which looks like it is teleporting (my
timestep is of 100 ms).
However the vehicle disappears sometimes (probably because it reached the
end of a route I did not define) causing Traci to stop as the vehicle does
not exist anymore and I'm sending commands to it.
So, can I avoid this kind of situation (avoiding the disappearance of this
vehicle) ?

Another issue : sometimes I'm simulating a bridge over another road. So
some points in the simulation have the same x,y coordinates. When putting a
vehicle or an object around this area with moveToXY, I don't know how SUMO
choses the edge the vehicle is on. Is specifying the edgeID the only way to
chose the edge we want ?

Regards,
Timothée

Le mar. 7 août 2018 à 14:10, Jakob Erdmann <namdre.s...@gmail.com> a écrit :

> 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-u...@lists.sourceforge.net>:
>
>> 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-u...@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/sumo-user
>> _______________________________________________
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> To change your delivery options, retrieve your password, or unsubscribe
>> from this list, visit
>> https://dev.eclipse.org/mailman/listinfo/sumo-user
>>
>
>
_______________________________________________
sumo-user mailing list
sumo-user@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user

Reply via email to