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

Hello Jakob,

Thank you for the hint. Based on the example in the link:  http://sumo.dlr.de/wiki/TraCI/Interfacing_TraCI_from_Python#Context_Subscriptions .

 

I wrote the same in Matlab using:

 

“traci.junction.subscribeContext('5', traci.constants.CMD_GET_VEHICLE_VARIABLE, 42, {traci.constants.VAR_SPEED, traci.constants.VAR_WAITING_TIME})”

 

But it’s still the same issue that we had since the last version of SUMO.

You can see this issue in the picture bellow. I want to know If it’s with the new version of SUMO until impossible to use TRACIMATLAB? It’s also the same behavior by using TRACI-C++.

Do you have any idea to Work around that issue?

 

Br

 

Christian

 

 

 

Von: sumo-user-bounces@xxxxxxxxxxx [mailto:sumo-user-bounces@xxxxxxxxxxx] Im Auftrag von Jakob Erdmann
Gesendet: Donnerstag, 13. September 2018 15:47
An: Sumo project User discussions
Betreff: 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