You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove python_orocos_kdl env-hooks, support devel-space build of python_orocos_kdl and invoke catkin_package()
Macro catkin_package() takes care of installing package.xml and setup scripts.
Usually it also installs cmake and pkg-config configuration files, but we skip this because
orocos_kdl already provides its own configuration and the Python bindings do not require it.
If the Python module is built in the correct path inside the devel-space, pointed to
by PYTHON_INSTALL_DIR and CATKIN_GLOBAL_PYTHON_DESTINATION, and also installed to this
directory, no env-hooks are required to update the PYTHONPATH and python_orocos_kdl even works
in devel-space.
This patch also allows to build orocos_kinematics_dynamics with colcon and colcon-ros (for ROS 1),
because python_orocos_kdl is correctly detected as a catkin package and colcon will add the
necessary hooks to update the PYTHONPATH, too.
set(PYTHON_SITE_PACKAGES_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/dist-packages")# This might be overridden below if built with catkin.
message(DEPRECATION "PyKDL has been moved to PyBind11. PyKDL based on SIP might become depracted in the (near) future. To keep using the SIP based version set 'BUILD_PYKDL_PYBIND11' to OFF.")
26
37
27
38
option(BUILD_PYKDL_PYBIND11 "Use PyBind11 instead of SIP"ON)
0 commit comments