I think you can catch the exception. SUMO should continue working.

Am Fr., 15. Feb. 2019 um 14:49 Uhr schrieb <christian.damdjow...@zf.com>:

> Hello Jakob,
>
>
>
> Thank you very much for your answer.
>
>
>
> -        The first idea, in this case you have to define an already
> properly input file. Because the Type is depend on your input parameter.
> For me it would be better to have something, which don’t have any
> dependency with the input file, So that one would not care about how my
> input parameter is define.
>
> -        For the third possibility, I done that in the past, but I wanted
> to just use subscriptioncontext and no traci functions.
>
> -        I think this fourth possibility is good for me. But I think
> using subscriptioncontext with the variable VAR_VEHICLECLASS for person
> would give you automatically an error. You wouldn’t have the possibility to
> catch the exception, or I’m wrong?
>
>
>
> Br
>
>
>
> Christian
>
>
>
> *Von:* sumo-user-boun...@eclipse.org <sumo-user-boun...@eclipse.org> *Im
> Auftrag von *Jakob Erdmann
> *Gesendet:* Freitag, 15. Februar 2019 14:29
> *An:* Sumo project User discussions <sumo-user@eclipse.org>
> *Betreff:* Re: [sumo-user] question about pedestrian in SUMO
>
>
>
> 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
>
_______________________________________________
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

Reply via email to