Hello Leo
Thank you for your answer. I do many try to port the Python Code in C++ but facing a lot of error. Maybe I don’t really understand the
traci-cpp structure. Please could you help me to extend the traci-cpp with the new SUMO Filter functionalities ?
Thank you a lot for your help.
Br
Christian
Von: sumo-user-bounces@xxxxxxxxxxx <sumo-user-bounces@xxxxxxxxxxx>
Im Auftrag von Leonhard.Luecken@xxxxxx
Gesendet: Mittwoch, 23. Januar 2019 13:27
An: sumo-user@xxxxxxxxxxx
Betreff: Re: [sumo-user] Filter Member miss in the class TraCIScopeWrapper in c++
Hi Christian,
Sorry, currently, there is no filter implementation for the C++ client. I think is not so difficult to add it, though.
For that, one should take a look at what is done in the corresponding methods of the python client (in tools/traci/_connection.py
and tools/traci/_vehicle.py – look for subscriptionFilter) and port it to the TraCIAPI::VehicleScope.
Best,
Leo
Hello Jakob,
it seem that is at the moment not possible to use the Filter functionalities via TRACI-Cpp. The Class
TraCIAPI::TraCIScopeWrapper
don’t have filter-members.
Please can you also give me an hint how these Filter have to be use in C++…. I think, it would be different as Python . Here it’s just the syntax inside Python (http://sumo.dlr.de/wiki/TraCI/Interfacing_TraCI_from_Python#Context_Subscription_Filters).
Thank you very much for your help
Br
Christian