if isinstance(veh_id, list):
return [self.__sumo_observations[vehID][tc.VAR_ROAD_ID] for vehID in veh_id]
elif veh_id == "all":
return [self.__sumo_observations[vehID][tc.VAR_ROAD_ID] for vehID in self.__ids]
else:
return self.__sumo_observations[veh_id][tc.VAR_ROAD_ID]
After Change
if isinstance(veh_id, list):
return [self.get_edge(vehID) for vehID in veh_id]
elif veh_id == "all":
return [self.get_edge(vehID) for vehID in self.__ids]
// perform the value retrieval for a specific vehicle
try: