cmakelist 中这么写
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
geometry_msgs
orocos_kdl
)
会报找不到orocos_kdl
Could not find a package configuration file provided by "orocos_kdl" with
any of the following names:
orocos_kdlConfig.cmake
orocos_kdl-config.cmake
Add the installation prefix of "orocos_kdl" to CMAKE_PREFIX_PATH or set
"orocos_kdl_DIR" to a directory containing one of the above files. If
"orocos_kdl" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
CMakeLists.txt:10 (find_package)
解决办法:加上 find_package(orocos_kdl REQUIRED)
总结起来cmakelist中需要
find_package(Eigen3 REQUIRED)
find_package(orocos_kdl REQUIRED)
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
geometry_msgs
#orocos_kdl
kdl_parser
rll_kinematics
robot_data
utils
)