解决OpenManipulator机械臂功能包编译失败及安装方法(open_manipulator、dynamixel_workbench、dynamixel_SDK......等)
1、如果出现这样的问题再往下看
解决OpenManipulator机械臂功能包编译失败及安装方
(open_manipulator、dynamixel_workbench、dynamixel_SDK等)
基于Ubuntu16.04
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkin_workspace.cmake:95 (message):
This workspace contains non-catkin packages in it, and catkin cannot build
a non-homogeneous workspace without isolation. Try the
'catkin_make_isolated' command instead.
Call Stack (most recent call first):
CMakeLists.txt:67 (catkin_workspace)
2、解决方法
出现问题的原因:功能包中缺少CmakeLists文件(解决方法一共5步)
- 进入保存OpenManipulator相关功能包的文件夹,进入build 文件夹
- 进入catkin_generated文件夹
- 进入metapackages文件夹
- 分别复制dynamixel_workbench、open_manipulator、open_manipulator_simulations中的CMakeLists.txt
- 分别放到对应的功能包中,此处只用dynamixel_workbench举例,放置的位置如下:src/dynamixel_workbench/dynamixel_workbench
然后再重新编译就大功告成!附一张成功的图片(编写不易希望大家成功后点个赞OR关注):
-------------------------分界线成功的不用往下看(以下是如何下载安装功能包)--------------------------
3、安装OpenManipulator机械臂功能包
(open_manipulator、dynamixel_workbench、dynamixel_SDK…等)
sudo apt-get install ros-kinetic-ros-controllers ros-kinetic-gazebo* ros-kinetic-moveit* ros-kinetic-industrial-core
mkdir -p ~/openManipulator_ws/src/ && cd ~/openManipulator_ws/src/
git clone https://github.com/ROBOTIS-GIT/DynamixelSDK.git
git clone https://github.com/ROBOTIS-GIT/dynamixel-workbench.git
git clone https://github.com/ROBOTIS-GIT/dynamixel-workbench-msgs.git
git clone https://github.com/ROBOTIS-GIT/open_manipulator.git
git clone https://github.com/ROBOTIS-GIT/open_manipulator_msgs.git
git clone https://github.com/ROBOTIS-GIT/open_manipulator_simulations.git
git clone https://github.com/ROBOTIS-GIT/robotis_manipulator.git
git clone https://github.com/ROBOTIS-GIT/open_manipulator_applications.git
git clone https://github.com/ROBOTIS-GIT/open_manipulator_controls.git
cd ~/openManipulator_ws && catkin_make
echo "source ~/openManipulator_ws/devel/setup.bash" >> ~/.bashrc
source ~/.bashrc
如果下载不了出现网络问题可以参考本人另外一篇文章:ROS无法连接raw.githubusercontent.com和raw.github.com的问题