using pybind11 along with catkin
Hi,
I am trying to create a python wrapper over a library generated in a catkin package.
This library links against libraries generated by other catkin packages and imported via :
find_package(catkin REQUIRED COMPONENTS <...> )
I am trying to use pybind11.
Either when using the cmake method:
https://github.com/pybind/cmake_example
or using the python method
https://github.com/pybind/python_example
I end up wither with an error that catkin_package is unknown or the linkage to the other catkin package libraries not working.
I looked everywhere for an example of a catkin_package using pybind11, but failed to find one.
please include the actual error text in your question instead of paraphrasing it.
Also: show us what you tried. We cannot guess what you did.
I am not sure that would help, I tried many things for hours, and there would be pages of cmake/python codes and logs of errors. I had no clue what I was doing. I do not know how to relate the content of ${catkin_LIBRARIES} and ${catkin_INCLUDE_DIRS} to either setup.py or to pybind11_add_module.
Then I'm not sure readers here will be able to help you.
this is one of the example using pybind11 with ros package: https://github.com/IntelRealSense/librealsense/tree/master/wrappers/python