Tutorial: Installing Ubuntu, Xenomi, ROS in Raspberry PI 3 - lesc-utfpr/misc GitHub Wiki
Author: Evandro Sestrem
This is a brief tutorial on how to install and run the Robot Operating System (ROS) (versions 1 and 2) on a Raspberry PI 3 model B running Ubuntu 16.04 with Xenomai 3.06. The tutorial includes the installation and setup of Ubuntu 16.04, Xenomai 3.06 and ROS. Some of these steps are well described in other places (we indicated the links we followed when we created this tutorial).
1- download the Ubuntu Image for Raspberry PI: https://ubuntu-mate.org/download/
- sudo apt-get install subversion
- svn checkout https://github.com/thanhtam-h/rpi23-4.9.80-xeno3/trunk/prebuilt
- cd prebuilt
- chmod +x deploy.sh
- ./deploy.sh (your Raspberry can reboot automatically here)
- cd /usr/src/linux-headers-4.9.80-v7-xeno3+/
- sudo make -i modules_prepare
- sudo nano /boot/cmdline.txt
- Add below texts to the end of single-line in /boot/cmdline.txt file:
isolcpus=0,1 xenomai.supported_cpus=0x3
To install ROS 1, follow the path described in: http://wiki.ros.org/kinetic/Installation/Ubuntu
At the time this tutorial was written, ROS 2 must be compiled manually in order to install it on Raspberry PI. The Rasberry PI3 does not have enough memory to compile, to avoid this problem:
- reboot your Raspberry PI
- add swap memory with a pen-drive
- plug in USB drive to your raspberry pi3
- check device name using: sudo fdisk -l (you may see your usb device as /dev/sda1)
- sudo mkswap /dev/sda1
- sudo swapon /dev/sda1
- Follow the path described in https://github.com/ros2/ros2/wiki/Linux-Development-Setup Before starting the compilation step (i.e. colcon build --symlink-install), to save memory, close all applications that are not needed, such as browser or another terminal windows.
http://www.simplerobot.net/search/label/rpi23
https://hackmd.io/s/BysaB355-