基于ubuntu14.04的ROS indigo的安装和卸载

运行环境:
ubuntu kylin 14.04
OpenCV 2.4.11 

一、有ROS indigo安装参考ROS的中文维基即可:

在Ubuntu中安装ROS Indigo

二、ROS indigo卸载

sudo apt-get purge ros-*
sudo rm -rf /etc/ros

如果是重装ROS下面的步骤可不执行,

删除.bashrc中的source /opt/ros/indigo/setup.bash
如果有自己建立的catkin_ws,也删除

三、编译出现问题解决

1、ROS与opencv链接不起来
错误如下:

CMake Error at /opt/ros/indigo/share/cv_bridge/cmake/cv_bridgeConfig.cmake:106 (message):
Project 'cv_bridge' specifies '/usr/include/opencv' as an include dir,
which is not found. It does neither exist as an absolute directory nor in
'/opt/ros/indigo//usr/include/opencv'
OR
Invoking "make cmake_check_build_system" failed

自己摸索,发现在/usr/include/下并没有opencv,建立了一个opencv文件夹,在github下下载了对应的indigo版本的 cv_bridge,是一个包
https://github.com/ros-perception/vision_opencv/tree/indigo),cv_bridge只是其中一部分,把cv_bridge这部分移动到新建立的opencv下即可,用到了sudo mv 路径1 路经2

这里写图片描述

参考文章:
[1] 在Ubuntu中安装ROS Indigo
[2] ROS安装与卸载教程
[3] ROS与opencv链接不起来

猜你喜欢

转载自blog.csdn.net/hzwwpgmwy/article/details/73556896