Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] moveToXY

Hi Jakob,

Thank you very much for your quick response.

I want to retrieve the vehicle IDs of the surrounding vehicles and for that
my code is as follows:

traci.vehicle.subscribeContext('1100',
traci.constants.CMD_GET_VEHICLE_VARIABLE,250 {traci.constants.VAR_IDList,
traci.constants.VAR_SPEED});
traci.vehicle.addSubscriptionFilterLeadFollow('1');
[M] = traci.vehicle.getContextSubscriptionResults('1100');

I am just getting the count of vehicles as output.

How to get the list of vehicle IDs?

I am eagerly waiting for your response.

Thank you very much in advance.





--
Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/


Back to the top