Could not find a package configuration file provided by “orocos_kdl“ 找不到的解决方法

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

utils

)

另外如果自己编译orocos-kdl然后系统中也有orocos-kdl,调用kdl相关的函数的时候就会出现stack smashing detected

所以不要自己编译orocos-kdl,直接用系统自带的,否则就坑了

 

Guess you like

Origin blog.csdn.net/dbdxnuliba/article/details/113727729