< >
Home » TX1入门教程软件篇 » TX1入门教程软件篇-安装ROS kinetic

TX1入门教程软件篇-安装ROS kinetic

TX1入门教程软件篇-安装ROS kinetic

说明:

  • 介绍如何在TX1安装ROS kinetic

步骤:

  • 下载安装脚本:
$ git clone https://github.com/jetsonhacks/installROSTX1.git
$ cd installROSTX1
$ vim installROS.sh
  • 脚本内容如下:
#!/bin/bash
# Install Robot Operating System (ROS) on NVIDIA Jetson TX1
# Maintainer of ARM builds for ROS is http://answers.ros.org/users/1034/ahendrix/
# Information from:
# http://wiki.ros.org/kinetic/Installation/UbuntuARM

# Setup Locale
# sudo update-locale LANG=C LANGUAGE=C LC_ALL=C LC_MESSAGES=POSIX
# Setup sources.lst
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
# Setup keys
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 0xB01FA116
# Installation
sudo apt-get update
sudo apt-get install ros-kinetic-ros-base -y
# Add Individual Packages here
# You can install a specific ROS package (replace underscores with dashes of the package name):
# sudo apt-get install ros-kinetic-PACKAGE
# e.g.
# sudo apt-get install ros-kinetic-navigation
#
# To find available packages:
# apt-cache search ros-kinetic
# 
# Initialize rosdep
sudo apt-get install python-rosdep -y
# ssl certificates can get messed up on TX1 for some reason
sudo c_rehash /etc/ssl/certs
# Initialize rosdep
sudo rosdep init
# To find available packages, use:
rosdep update
# Environment Setup
echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
source ~/.bashrc
# Install rosinstall
sudo apt-get install python-rosinstall -y
  • 安装的是ros-kinetic-ros-base,更改为:ros-kinetic-desktop-full

  • 执行安装

$ ./installROS.sh
  • 安装结束,则完成ROS的kinetic版本
  • 检查是否成功,运行:
roscore

参考:

  • https://github.com/jetsonhacks/installROSTX1/blob/master/installROS.sh
  • http://www.jetsonhacks.com/2016/10/12/robot-operating-system-ros-on-nvidia-jetson-tx1/

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

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


标签: tx1入门教程软件篇