我是靠谱客的博主 无奈小懒虫,最近开发中收集的这篇文章主要介绍Ubuntu18.04编译安装ROS工具包MoveIt,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

官方安装教程请点击https://moveit.ros.org/install/source/

最简单的安装方式是apt安装

sudo apt install ros-melodic-moveit

编译安装时,笔者在这一步遇到问题,

sudo apt install python3-wstool python3-catkin-tools clang-format-10 python3-rosdep

出现如下报错

The following packages have unmet dependencies:
 python3-rosdep : Depends: python3-catkin-pkg but it is not going to be installed
                  Depends: python3-rosdistro but it is not going to be installed
                  Depends: python3-rospkg but it is not going to be installed
                  Depends: python3-rosdep-modules (>= 0.21.0) but it is not going to be installed

用apt安装python3-catkin-pkg时,会卸载掉很多ros包,原因好像是python2和python3的冲突问题。于是跳过了这条命令,一直到catkin build,在catkin build的过程中,报了很多依赖问题

CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "warehouse_ros"
  with any of the following names:

    warehouse_rosConfig.cmake
    warehouse_ros-config.cmake

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

笔者一条条解决,最终编译通过,将其中所需的ros包汇总如下

sudo apt install ros-melodic-eigen-stl-containers ros-melodic-object-recognition-msgs ros-melodic-random-numbers* ros-melodic-octomap-msgs ros-melodic-graph-msgs ros-melodic-pybind11-catkin ros-melodic-ompl* ros-melodic-warehouse-ros ros-melodic-eigenpy ros-melodic-rosparam-shortcuts

即在catkin build前安装上述这些包

最后

以上就是无奈小懒虫为你收集整理的Ubuntu18.04编译安装ROS工具包MoveIt的全部内容,希望文章能够帮你解决Ubuntu18.04编译安装ROS工具包MoveIt所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(48)

评论列表共有 0 条评论

立即
投稿
返回
顶部