< >
Home » Nano入门教程软件篇 » Nano入门教程软件篇-安装ROS melodic 版本

Nano入门教程软件篇-安装ROS melodic 版本

Nano入门教程软件篇-安装ROS melodic 版本

说明:

  • 介绍如何在nano安装ROS melodic

步骤:

  • 新建脚本
$ mkdir -p ~/AiROS
$ cd ~/AiROS
$ vim installROS.sh
  • 因为nano的镜像默认是18.04,需要安装melodic版本
  • 脚本内容如下:
#!/bin/bash
# Install Robot Operating System (ROS) on NVIDIA Jetson TX2
# Maintainer of ARM builds for ROS is http://answers.ros.org/users/1034/ahendrix/
# Information from:
# http://wiki.ros.org/melodic/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-melodic-desktop-full -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-melodic-PACKAGE
# e.g.
# sudo apt-get install ros-melodic-navigation
#
# To find available packages:
# apt-cache search ros-melodic
# 
# Initialize rosdep
sudo apt-get install python-rosdep -y

# Initialize rosdep
sudo rosdep init
# To find available packages, use:
rosdep update
# Environment Setup
echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
source ~/.bashrc
# Install rosinstall
sudo apt-get install python-rosinstall -y
  • 执行安装
$ ./installROS.sh
  • 安装结束,则完成ROS的melodic版本

  • 验证成功

roscore

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

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


标签: nano入门教程软件篇