[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
leave out constants.VAR_IDList. the surrounding vehicle ids are part of the result object implicitly.
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/
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user