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:

Orange Pi Zero

Orange Pi Zero Interfaceboard

SD Card


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

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

sudo apt-key adv --keyserver hkp:// --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
 Query rosdistro index
 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


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 *