《ROS机器人高效编程》安装遇到的问题

按照书第2.4节创建工作空间,并进行编译,出现以下问题:

问题1:

CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
  Could not find a package configuration file provided by "move_base_msgs"
  with any of the following names:

    move_base_msgsConfig.cmake
    move_base_msgs-config.cmake

  Add the installation prefix of "move_base_msgs" to CMAKE_PREFIX_PATH or set
  "move_base_msgs_DIR" to a directory containing one of the above files.  If
  "move_base_msgs" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  ros_book/chapter6_tutorials/CMakeLists.txt:4 (find_package)


-- Could not find the required component 'move_base_msgs'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "move_base_msgs"
  with any of the following names:

    move_base_msgsConfig.cmake
    move_base_msgs-config.cmake

  Add the installation prefix of "move_base_msgs" to CMAKE_PREFIX_PATH or set
  "move_base_msgs_DIR" to a directory containing one of the above files.  If
  "move_base_msgs" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  ros_book/chapter6_tutorials/CMakeLists.txt:4 (find_package)
解决方法:

sudo apt-get install ros-kinetic-navigation

问题2、

CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
  Could not find a package configuration file provided by "dynamixel_msgs"
  with any of the following names:

    dynamixel_msgsConfig.cmake
    dynamixel_msgs-config.cmake

  Add the installation prefix of "dynamixel_msgs" to CMAKE_PREFIX_PATH or set
  "dynamixel_msgs_DIR" to a directory containing one of the above files.  If
  "dynamixel_msgs" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  ros_book/chapter8_tutorials/CMakeLists.txt:7 (find_package)


-- Could not find the required component 'dynamixel_msgs'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "dynamixel_msgs"
  with any of the following names:

    dynamixel_msgsConfig.cmake
    dynamixel_msgs-config.cmake

  Add the installation prefix of "dynamixel_msgs" to CMAKE_PREFIX_PATH or set
  "dynamixel_msgs_DIR" to a directory containing one of the above files.  If
  "dynamixel_msgs" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  ros_book/chapter8_tutorials/CMakeLists.txt:7 (find_package)

解决办法:

sudo apt-get -y install ros-kinetic-dynamixel-controllers ros-kinetic-dynamixel-driver ros-kinetic-dynamixel-msgs ros-kinetic-dynamixel-motor ros-kinetic-moveit-visual-tools ros-kinetic-simple-grasping


问题3、

CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
  Could not find a package configuration file provided by
  "moveit_simple_grasps" with any of the following names:

    moveit_simple_graspsConfig.cmake
    moveit_simple_grasps-config.cmake

  Add the installation prefix of "moveit_simple_grasps" to CMAKE_PREFIX_PATH
  or set "moveit_simple_grasps_DIR" to a directory containing one of the
  above files.  If "moveit_simple_grasps" provides a separate development
  package or SDK, be sure it has been installed.
Call Stack (most recent call first):
  ros_book/chapter7_tutorials/rosbook_arm_pick_and_place/CMakeLists.txt:5 (find_package)


-- Could not find the required component 'moveit_simple_grasps'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by
  "moveit_simple_grasps" with any of the following names:

    moveit_simple_graspsConfig.cmake
    moveit_simple_grasps-config.cmake

  Add the installation prefix of "moveit_simple_grasps" to CMAKE_PREFIX_PATH
  or set "moveit_simple_grasps_DIR" to a directory containing one of the
  above files.  If "moveit_simple_grasps" provides a separate development
  package or SDK, be sure it has been installed.
Call Stack (most recent call first):
  ros_book/chapter7_tutorials/rosbook_arm_pick_and_place/CMakeLists.txt:5 (find_package)

解决办法:

下载moveit-simple-grasps GitHub - davetcoleman/moveit_simple_grasps: Generate basic grasp poses for simple objects such as blocks or cylinders

解压到文件夹~/dev/catkin_ws/src

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值