Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] R: TraCI4Matlab: commands to obtain the Leader-Vehicleposition and speed

Thanks Jakob,

 

I‘m already using traci.vehicle.getLeader (or its subscription), but this command allows to get only the distance information between ego-vehicle and leader-vehicle. Is there no TraCI command to directly obtain the leader vehicle speed starting from the ego-vehicle ID?

 

Thanks again,

 

Francesco

 

Da: Jakob Erdmann
Inviato: martedì 22 giugno 2021 07:44
A: Sumo project User discussions
Oggetto: Re: [sumo-user] TraCI4Matlab: commands to obtain the Leader-Vehicleposition and speed

 

You can use traci.vehicle.getLeader.

 

For increased efficiency (when not using libsumo), see

traci.vehicle.subscribeLeader

 

regards,

Jakob

 

Am Mo., 21. Juni 2021 um 22:12 Uhr schrieb Francesco Zambolin <francesco.zambolin@xxxxxxxxxxxxxxxxxx>:

Hi everyone,

 

 

I’m using TraCI4Matlab to implement a driver model (IDM) which works in real time on SUMO simulation by updating, at each time-step, the Ego-vehicle speed.

 

In this regard, I’m looking for TraCI commands that give access to the position and speed of the Leader-vehicle, which changes during the simulation.

 

At the moment, I’m trying to use TraCI commands of the “vehicle” domain but I have not found anything for my purpose.

 

I would be very grateful for suggestions.

 

 

Waiting for your kind reply, I appreciate the opportunity to extend cordial greetings.

 

Francesco.

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

 


Back to the top