This is the second story of the 3-part series: ROS on Raspberry PI. I have divided the topic in 3 parts as below:
Create new file: /etc/udev/rules.d/99-camera.rules on the host raspberry pi and paste below line in it:
Make sure that your host rpi has picamera installed as per the picamera instructions. All the picamera and raspistill dependencies are in /opt/vc folder on your host rpi. We can use -v /opt/vc:/opt/vc command to mount/share this folder on the docker container. We would also need to…
This is the third story of the 3-part series: ROS on Raspberry PI. I have divided the topic in 3 parts as below:
Create a dockerfile using ROS image as base image.
The docker container get the
hostname during boot time and it can not be changed later. Use
-h option to provide the hostname. If you are planning to connect to the docker container from outside (e.g. remote ROS node) then one of the workaround is to use same hostname as host.
Download and install Raspberry PI Imager for your appropriate for your operating system. Select Raspberry Pi OS Lite (32-bit) Operating System, select your SD card and click on Write.
Once write is complete the Imager will eject your card automatically. Remove and insert your card again. You will notice that the SD card is now mounted as ‘boot’ (on macOs /Volumes/boot). Before we install the card on RPI we need to perform few steps.
Enable SSH by creating a empty file called
ssh on the sd card.
$ touch /Volumes/boot ssh
This setup might be slightly different for different PI’s…
This is the first story of the 3-part series: ROS on Raspberry PI. I have divided the topic in 3 parts as below:
SSH to RPI and Install docker. For this tutorial I used latest RPI4 with 8GB ram.
# Install prerequisites
$ sudo apt-get update
$ sudo apt-get install apt-transport-https ca-certificates software-properties-common -y
$ curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh
If you get an error (E: Sub-process /usr/bin/dpkg returned an error code (1)) while running the above command then use below command…
Jupyter notebooks and jupyter labs are preferred workbenches for many data science projects. For IoT projects, it’s always not possible to connect to the Raspberry PI desktop to access the notebooks. We can access Raspberry PI via console using SSH but for some applications especially for the Computer Vision, we still need some graphical user interface.
In this article, I wish to share some of the techniques I found to run the Jupyterlab on a raspberry PI and access it from a remote machine.
Connect to your Raspberry PI using SSH. Install all the dependencies. …
Data Science, IoT