sudo sh -c '. /etc/lsb-release && echo "deb http://mirrors.ustc.edu.cn/ros/ubuntu/ $DISTRIB_CODENAME main" > /etc/apt/sources.list.d/ros-latest.list'
server for chaina 改为 china中的 ustc的
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 0xB01FA116
sudo apt-get update
ROS kinetic 也有很多版本,比如工业版,基础版,高级版,全功能版,完整版如下:
sudo apt-get install ros-kinetic-desktop-full
如果提示出错(可能python、Qt环境没有),使用aptitude查看依赖
sudo apt-get install aptitude
sudo aptitude install ros-kinetic-desktop-full
rm -rf /etc/apt/sources.list.d/ros-latest.list
vi /etc/apt/sources.list
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
注意:在使用ROS之前需要初始化rosdep
sudo rosdep init
rosdep update
echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
source ~/.bashrc
locate source ~/.bashrc
sudo apt-get install python-rosinstall python-rosinstall-generator python-wstool build-essential
roscore
Ubuntu16.04安装ROS Kinetic详细过程
sudo apt-get remove ros-kinetic-*
卸载成功的效果:就是/opt下的ROS文件夹Kinetic被删除
这些操作方法只适用于ROS Groovy及后期版本,对于ROS Fuerte及早期版本请选择rosbuild。
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/src
cd ~/catkin_ws/
catkin_make
source devel/setup.bash
echo $ROS_PACKAGE_PATH
结果 /home/youruser/catkin_ws/src:/opt/ros/kinetic/share:/opt/ros/kinetic/stacks
sudo apt-get upgrade
sudo apt-get install ros-kinetic-moveit
sudo apt-get install ros-kinetic-universal-robot
cd ~/catkin_ws/src
# retrieve the sources (replace '$DISTRO' with the ROS version you are using)
git clone -b $DISTRO-devel https://github.com/ros-industrial/universal_robot.git
cd ~/catkin_ws
# checking dependencies (replace '$DISTRO' with the ROS version you are using)
rosdep update // if already done, skip this step
rosdep install --from-paths src --ignore-src --rosdistro kinetic
# building
catkin_make
# source this workspace (careful when also sourcing others)
source ~/catkin_ws/devel/setup.bash
roslaunch ur_gazebo ur5.launch
rm /etc/ros/rosdep/sources.list.d/20-default.list
sudo rosdep init
rosdep update
1、ROS探索总结(五十)——ROS机器人实例 (Universal Robots)
2、Apriltags+Ros+Ur5项目–moveit
3、Ubuntu install of ROS Kinetic
4、ROS的安装 ubuntu14.04(indigo),ubuntu16.04(kinetic)以及shell脚本一键安装
5、ubuntu16.04环境下安装ROS Kinetic–替换为清华的软件源
6、清华大学ubuntu镜像使用帮助
7、Ubuntu16.04安装ROS Kinetic详细过程
8、ROS 不能再详细的安装教程
9、Ubuntu 16.04 安装ROS kinetic提示Depends: ros-kinetic-desktop but it is not going to be installed