源码安装turtlebot包

介绍从源码包安安装turtlebot包,其中的内容基本从ros官网里翻译过来
ros上的相应链接

sudo apt-get install python-rosdep python-wstool ros-indigo-ros
> sudo rosdep init
> rosdep update
 mkdir ~/rocon
> cd ~/rocon
> wstool init -j5 src https://raw.github.com/robotics-in-concert/rocon/release/indigo/rocon.rosinstall
> source /opt/ros/indigo/setup.bash
> rosdep install --from-paths src -i -y
> catkin_make

> mkdir ~/kobuki
> cd ~/kobuki
> wstool init src -j5 https://raw.github.com/yujinrobot/yujin_tools/master/rosinstalls/indigo/kobuki.rosinstall
> source ~/rocon/devel/setup.bash
> rosdep install --from-paths src -i -y
> catkin_make

> mkdir ~/turtlebot
> cd ~/turtlebot
> wstool init src -j5 https://raw.github.com/yujinrobot/yujin_tools/master/rosinstalls/indigo/turtlebot.rosinstall
> source ~/kobuki/devel/setup.bash
> rosdep install --from-paths src -i -y
> catkin_make

基本到这里就可以安装完成,其中注意的是安装完成后可能还是无法roscd到相应的程序包,此时需要

echo "source ~/turtlebot/devel/setup.bash" >> ~/.bashrc

或者直接进入turtlebot文件夹操作

cd ~/turtlebot
source devel/setup.bash

完成此项操作好基本就可以使用roscd命令了。

猜你喜欢

转载自blog.csdn.net/lxn9492878lbl/article/details/80349150