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.
Orange Pi Zero
Orange Pi Zero Interfaceboard
Refer to this line If you are looking for setting up orange pi zero
echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" &gt;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 rosdep. rosdep 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.