There are several possibilities: - you can call getTypeID (persons and vehicles should have distinct types) - or with the typeID you can call vehicletype.getVehicleClass - you can compare the object id against a list of persons in the simulation (person.getIDList) - you can call vehicle.getVehicleClass with the id and catch the exception if it isn't a vehicle
regards, Jakob Am Fr., 15. Feb. 2019 um 14:20 Uhr schrieb <christian.damdjow...@zf.com>: > Hello Sumo Community, > > i want to know if we can have a possibility to get the class of pedestrian > online. I mean how can we do a classification of pedestrian during the > simulation. My question is because the variable (VAR_VEHICLECLASS) is just > supported for every object excepted pedestrian. And I don’t, how I can > properly do an case differentiation of every vehicle object. In Case that > these objects are all located in the same vector. With the variable > VAR_TYPE which is available for every objects including person as well, > just give me the objects name. > > Could I have some hint on this part. > > > > Br > > > > Christian > > > _______________________________________________ > sumo-user mailing list > sumo-user@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user >
_______________________________________________ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user