Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] device to check the distance of one vehicle relative to other one in a define radius

You can efficiently retrieve all vehicles around the ego vehicle in a given radius via TraCI: http://sumo.dlr.de/wiki/TraCI/Object_Context_Subscription#Client_library_methods

2018-09-13 15:41 GMT+02:00 <christian.damdjowabo@xxxxxx>:

Hello Jakob, hello sumo people,

 

I have a question relative to the device in SUMO. What I want to do is to check the relative distance from my ego-car with in other one inside a define radius. For that reason I have basically the possibility to use Traci function, perform the calculation of all vehicle in the network and just take the one, which the value is lower than a define value. But to be able to run the simulation quickly, that’s not the best way to do that. For this reason I want to know if we have in SUMO some device, which enable me to have the relative distance from the ego-car with traffic car, which is inside a define radius.  By using the ssm.device, we just have this information inside a conflict area.

 

Thank you very much

 

Bt

 

Christian


_______________________________________________
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