How to setup Robot Operating System (ROS) in Armbian Orange Pi [ QUICK GUIDE]

Developing robot is an interesting and challenging project. Ever since the idea of robot got in to the mainstream, mankind has made a significant development in developing robot or even humanoid robot. In todays context anyone can develop a robot with a limitd knowledge in electronics, software and mechanics. With this idea in mind, I started exploring robotics to develop different types of robot and to interact between them using some framework. After several search I found this project ROS to be the most advanced framework for developing robot of any size for both hobby or professional purpose.  We will see how to install ROS in Armbian Orange Pi zero.

Hardware required:

The links mentioned below are my affiliate links. If you buy using the links, it supports my work.

Banggood links

Orange Pi Zero

https://www.banggood.com/Orange-Pi-Zero-Expansion-Board-Interface-Board-Development-Board-p-1115982.html?p=W214159476515201703B

Orange Pi Zero Interfaceboard

https://www.banggood.com/Orange-Pi-Zero-H2-Quad-Core-Open-source-512MB-Development-Board-p-1110210.html?p=W214159476515201703B

SD Card

https://www.banggood.com/8GB-MicroSD-TF-Memory-Card-For-RC-Quadcopter-Camera-p-68888.html?p=W214159476515201703B

USB TTL

https://www.banggood.com/USB-To-TTL-Debug-Serial-Port-Cable-For-Raspberry-Pi-3B-2B-COM-Port-p-1055396.html?p=W214159476515201703B

Amazon links

Orange Pi Zero

http://amzn.to/2hPq6FS

Orange Pi Zero Interfaceboard

http://amzn.to/2hPCsxH

SD Card

http://amzn.to/2zpUEY4

USB TTL

http://amzn.to/2zqgOYa

Refer to this link If you are looking for setting up orange pi zero 


echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" >ros-latest.list
sudo cp ros-latest.list /etc/apt/sources.list.d/

sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116

After that make an update of the package list and start installing the base package of the ros.

sudo apt-get update
sudo apt-get install ros-kinetic-ros-base

Here I installed the base package, if you want to install the complete package, then instead of ros-kinectic-ros-base install ros-kinetic-desktop or ros-kinetic-desktop-full

Before you can use ROS, you will need to 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.


code@orangepizero:~$ sudo rosdep init
 Wrote /etc/ros/rosdep/sources.list.d/20-default.list
 Recommended: please run

rosdep update

code@orangepizero:~$ rosdep update
 reading in sources list data from /etc/ros/rosdep/sources.list.d
 Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml
 Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
 Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
 Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
 Hit https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml
 Query rosdistro index https://raw.githubusercontent.com/ros/rosdistro/master/index.yaml
 Add distro "groovy"
 Add distro "hydro"
 Add distro "indigo"
 Add distro "jade"
 Add distro "kinetic"
 Add distro "lunar"
 updated cache in /home/code/.ros/rosdep/sources.cache

For installaing individual package try like given below.


sudo apt-get install ros-kinetic-PACKAGE

e.g.

sudo apt-get install ros-kinetic-slam-gmapping

 


code@orangepizero:~$ echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
 code@orangepizero:~$ source ~/.bashrc

 

Dependencies for building packages

Working with ROS requires to setup workspaces and there are many tools and software packages that are required to be installed. This is handled by rosinstall command and we need to install it along with other helper packages for getting started with our hello worlds and other projects.

sudo apt-get install -y python-rosdep python-rosinstall-generator python-wstool python-rosinstall build-essential cmake

So far we covered just the basic installation soon more project will be coming here.

Feature Photo by Alex Knight on Unsplash

2 thoughts on “How to setup Robot Operating System (ROS) in Armbian Orange Pi [ QUICK GUIDE]

Leave a Reply

Your email address will not be published. Required fields are marked *