-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Projector cannot be instantiated from Python #242
Comments
The |
The reason why is that we are trying to do a custom forward/reverse. Namely, we need to write a new class either inheriting the projector or wrap on top of it. Neither seems working. If I do a new class inheriting Projector, the error is as follows:
|
Okay, makes sense. Supporting classes inherited in python is some more effort: https://www.boost.org/doc/libs/1_78_0/libs/python/doc/html/reference/high_level_components/boost_python_wrapper_hpp.html#high_level_components.boost_python_wrapper_hpp.introduction So either you'd have to add that, or implement your custom projection in cpp. |
Right. I think maybe we can add a default projector under the projector for the purpose (, and bind it to python). |
Makes sense, see also #244 for an example, maybe you can even contribute your projector |
I ended up with following the PR your recommended to write my own projector and bind to python to have my problem solved! Thanks for the great suggestions @m-naumann |
It seems the Projector cannot be instantiated from Python. To reproduce it:
Is it because this class is not bind? I have no issue with UTMProjector tho.
It looks like already bind-ed:
Lanelet2/lanelet2_python/python_api/projection.cpp
Lines 16 to 17 in cc81502
The text was updated successfully, but these errors were encountered: