之前安装不成功是因为校园网无法访问源的问题。

Ubuntu ARM install of ROS Indigo

There are currently builds of ROS for Ubuntu Trusty armhf. These builds include most but not all packages, and save a considerable amount of time compared to doing a full source-based installation.

Supported/Tested Platforms

If this install works for your platform, please list it here:

Installation

Configure your Ubuntu repositories

Configure your Ubuntu repositories to allow "restricted," "universe," and "multiverse." You can follow
the Ubuntu guide
for instructions on doing this.

Set your Locale

Boost and some of the ROS tools require that the system locale be set. You can set it with:

  • sudo update-locale LANG=C LANGUAGE=C LC_ALL=C LC_MESSAGES=POSIX

Setup your sources.list

Setup your computer to accept software from the ARM mirror on packages.ros.org.

Due to limited resources, there are only active builds for Trusty armhf (14.04), since this is the stable, long-term Ubuntu release and is the most-requested distribution in conjunction with ROS Indigo.

  • Ubuntu 14.04 (Trusty armhf)

    • sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu trusty main" > /etc/apt/sources.list.d/ros-latest.list'

Set up your keys

  • wget https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -O - | sudo apt-key add -

Installation

First, make sure your Debian package index is up-to-date:

  • sudo apt-get update

There are many different libraries and tools in ROS - not all compile fully on ARM. You can also install ROS packages individually.

  • ROS-Base: (Bare Bones) ROS package, build, and communication libraries. No GUI tools.

    • sudo apt-get install ros-indigo-ros-base

Add Individual Packages

  • You can install a specific ROS package (replace underscores with dashes of the package name):

    • sudo apt-get install ros-indigo-PACKAGE
      • e.g.
      sudo apt-get install ros-indigo-navigation

To find available packages, use:

apt-cache search ros-indigo

The Ubuntu ARM package status is available here

Install Sizes

Base Package

Total Install Size

407 MB

572 MB

Initialize rosdep

Before you can use ROS, you will need to install and initialize rosdeprosdep enables you to easily install system dependencies for source you want to compile and is required to run some core components in ROS.

sudo apt-get install python-rosdep
sudo rosdep init
rosdep update

Environment setup

It's convenient if the ROS environment variables are automatically added to your bash session every time a new shell is launched:

echo "source /opt/ros/indigo/setup.bash" >> ~/.bashrc
source ~/.bashrc

If you have more than one ROS distribution installed, ~/.bashrc must only source the setup.bash for the version you are currently using.

If you just want to change the environment of your current shell, you can type:

source /opt/ros/indigo/setup.bash

If you use zsh instead of bash you need to run the following commands to set up your shell:

echo "source /opt/ros/indigo/setup.zsh" >> ~/.zshrc
source ~/.zshrc

Getting rosinstall

rosinstall is a frequently used command-line tool in ROS that is distributed separately. It enables you to easily download many source trees for ROS packages with one command.

To install this tool on Ubuntu, run:

sudo apt-get install python-rosinstall

Verifying OS name

Make sure your OS name defined at /etc/lsb-release is as the following. Since ros does not recognize Linaro as an OS, this is necessary. The following is for Ubuntu 14.04, trusty. Modify the release number and name as per your target.

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04"

Build farm status

The packages that you installed were built by ROS build farm. You can check the status of individual packages here.

Tutorials

Now, to test your installation, please proceed to the ROS Tutorials.

Obtain source code of the installed packages

If you know the location of the repository of each package, you know you can obtain all the code there. But it's often hard even for experienced developers to reach the correct maintained repository of certain packages. Also, in some situations you just want to get the source of the released, installed version of a package. The methods described here the best for these cases.

  • In earlier days of ROS (supposedly electric or earlier) you can obtain by the way noted in this question.

  • Now just apt-get source (sudo not needed) as following. You don't even need to explicitly specify deb-src entry etc. This downloads from the server all the files in the released version of the package (i.e. things not installed in the installation rule (e.g. CMakeLists.txt) are also included).

    $ apt-get source ros-hydro-laser-pipeline

    Drawback might be that you have to specifify a single, exact package name (asterisk doesn't work).

Using RVIZ

It is not recommended to run rviz on most ARM-based CPUs. They're generally too slow, and the version of OpenGL that is provided by the software (mesa) libraries it not new enough to start rviz.

'IF' you have a powerful board with a GPU and vendor-supplied OpenGL libraries, it might be possible to run rviz. The IFC6410 and the NVidia Jetson TK1 are two such boards where rviz will run, although neither is fast enough for graphics-heavy tasks such as displaying pointclouds.

Note that rviz will segfault if you have the GTK_IM_MODULE environment variable set, so it's best to unset it in your ~/.bashrc:

 

最新文章

  1. javascript 闭包
  2. 一个 -100.01 的double 在内存中怎么存储的. 一个中文String 在内存中占多少直接 utf-8 / GBK
  3. 401. Binary Watch
  4. 北京大学信息科学技术学院计算机专业课程大纲选摘--JAVA
  5. angularjs 获取地址传参
  6. ASP.NET 大文件上传的简单处理
  7. bzoj1833 digit
  8. phantomjs
  9. Codeforces Round #338 (Div. 2) B. Longtail Hedgehog dp
  10. 查看语句运行时间异常的原因(SQLServer)
  11. Codeforces Gym 100425H H - Football Bets 构造
  12. BZOJ 3533 sdoi 2014 向量集
  13. tomcat之负载均衡(apache反响代理tomcat)
  14. ssh框架的搭建
  15. 将前台input中的数据异步传到后台并存入数据库
  16. cocos2d 判断旋转矩形是否包含某个点
  17. .NET并行计算和并发11:并发接口 IProducerConsumerCollection
  18. fiddler软件测试——Fiddler抓取https设置详解(图文)
  19. eclipse配置tomcat后出现:java virtual machine launcher Error:Could not ……,Program will exit.
  20. spring boot 部署

热门文章

  1. Java用通配符 获得泛型的协变和逆变
  2. iOS开发之 在release版本禁止输出NSLog内容
  3. form属性method="get/post
  4. overridePendingTransition动画只设置一个
  5. Oracle一个用户查询另一个用户的表数据
  6. C# Socket编程(2)识别网络主机
  7. Windows不重启就使环境变量修改生效
  8. 显示win7桌面网络.reg
  9. appium支持中文输入
  10. c语言数据结构:01背包问题-------动态规划