< >
Home » TX2入门教程软件篇 » TX2入门教程软件篇-安装Turtlebot

TX2入门教程软件篇-安装Turtlebot

Turtlebot入门教程-安装Turtlebot(ubuntu16.04+kinetic)

说明

  • 介绍TX2安装ubuntu16.04+kinetic之后

turtlebot安装

  • 安装准备
$ sudo apt-get install python-rosdep python-wstool ros-kinetic-ros
$ sudo apt-get install pyqt5-dev-tools
$ sudo rosdep init
$ rosdep update
  • 分别建立三个工作空间rocon,kobuki,turtlebot,下载和编译源码
  • 建立rocon目录,下载和编译,rocon都有对应的kinetic版本
$ mkdir ~/rocon
$ cd ~/rocon
$ wstool init -j5 src https://raw.github.com/robotics-in-concert/rocon/release/kinetic/rocon.rosinstall
$ source /opt/ros/kinetic/setup.bash
$ rosdep install --from-paths src -i -y
$ catkin_make
  • 建立kobuki目录,下载和编译.
$ mkdir ~/kobuki
$ cd ~/kobuki
$ wstool init -j5 src https://raw.githubusercontent.com/yujinrobot/yujin_tools/kinetic-devel/rosinstalls/kinetic/kobuki.rosinstall
$ source ~/rocon/devel/setup.bash
$ rosdep install --from-paths src -i -y
$ catkin_make
  • 建立turtlebot目录,下载和编译.
$ mkdir ~/turtlebot
$ cd ~/turtlebot
$ wstool init -j5 src https://raw.github.com/yujinrobot/yujin_tools/kinetic-devel/rosinstalls/kinetic/turtlebot.rosinstall
$ source ~/kobuki/devel/setup.bash
$ rosdep install --from-paths src -i -y
$ catkin_make

添加工作空间到bashrc文件

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

启用新环境:

source ~/.bashrc

测试环境生效:

roscd turtlebot 
  • 能正常进入到目录就说明成功

生成kobuki别名

$ rosrun kobuki_ftdi create_udev_rules

安装kinect驱动

$ sudo apt-get install ros-kinetic-openni-* ros-kinetic-openni2-* ros-kinetic-freenect-*

测试turtlebot

纠错,疑问,交流: 请进入讨论区点击加入Q群

获取最新文章: 扫一扫右上角的二维码加入“创客智造”公众号


标签: tx2入门教程软件篇