Complete Raspberry Pi ROS Melodic Desktop Image Based on Ubuntu Mate 18.04

0x00 Image Overview

Many users have reported that the previously released Raspberry Pi ROS image based on Raspbian cannot use apt to install ROS packages, which is very inconvenient. All packages need to be compiled from source, and many users are not familiar with compiling ROS packages from source, so it is strongly recommended to release Raspberry Pi images using Ubuntu.

Therefore, this time I created a Raspberry Pi ROS image based on the latest version of Ubuntu Mate 18.04. Initially, I used the 32-bit Ubuntu Mate 18.04 system to create the image but found that the system was very slow and laggy. Later, I switched to the 64-bit Ubuntu Mate 18.04 system and found that the system was much smoother.

I have been adapting Ubuntu Mate 18.04 to the newly released Raspberry Pi 4, but there are too many modifications needed, and I have not yet successfully adapted it. Therefore, the image here can only run on Raspberry Pi boards below version 4, such as Raspberry Pi 3B+, Raspberry Pi 3, etc.

However, there is no need to worry about running on Raspberry Pi 3B+/3 being laggy because this is a 64-bit system, and I feel that running ROS is still very smooth. Basically, the performance is the same as running on Raspberry Pi 4, and it may even feel better (the 32-bit system runs on Raspberry Pi 4).

Complete Raspberry Pi ROS Melodic Desktop Image Based on Ubuntu Mate 18.04

Check System Version
Complete Raspberry Pi ROS Melodic Desktop Image Based on Ubuntu Mate 18.04

Ubuntu Mate Page

0x01 Image Download

Since compiling and testing the system consumes a lot of time and energy, in order to support me in continuously maintaining and releasing the Raspberry Pi ROS image, the download of the image requires a fee. Of course, if you are a VIP user of our website, the download is free.

You can download it from the official ROS Classroom website:

https://www.corvin.cn/1760.html

As usual, the first thing to do after downloading the image is to verify the integrity of the file. Here we use md5sum for verification, and the correct checksum is: b25348dc938298a940c999a9a1ab431a. It is also very simple to get the checksum; just execute the following command in the directory where the downloaded image is stored:

md5sum raspi_ubuntuMate1804_arm64_ros_melodic_desktop_v1_0.img.xz

If the checksum is different, it may be a network issue causing the downloaded file to be incomplete, and you need to download it again. When the obtained checksum matches the one above, it indicates that the image is complete. Next, you can decompress it, and the complete decompression command is as follows:

xz -dkv raspi_ubuntuMate1804_arm64_ros_melodic_desktop_v1_0.img.xz

After decompression, we will get an image file ending with .img. Finally, we can use the Etcher software to write the image to the SD card. If you don’t know how to operate, you can refer to the articles published earlier to learn how to use this software to write the image; it is very simple to use.

0x02 Boot the System

Once we have used the Etcher software to write the img image to the microSD card, we can insert it into the Raspberry Pi and power it on to boot the system. If you do not have a Raspberry Pi screen, that’s fine because I have already configured ssh and vnc-server in the Raspberry Pi system. This way, we can easily perform remote connections. You will need an Ethernet cable to connect your computer to the Raspberry Pi’s network port. Note that you need to configure your computer’s network port in advance to share the IP with other computers.

Complete Raspberry Pi ROS Melodic Desktop Image Based on Ubuntu Mate 18.04

Configure Computer Network Port for IP Sharing

Next, we can use the nmap (Network Mapper) tool to scan the network. It can scan all active hosts and their open ports connected to the current computer network. Here, we only need to use the following command to scan the connected Raspberry Pi’s IP address and port:

nmap 10.42.0.1/24
Complete Raspberry Pi ROS Melodic Desktop Image Based on Ubuntu Mate 18.04

Scan Raspberry Pi IP Address

Next, you can use VNC-Viewer for remote desktop connection. After starting, it may prompt that there is insufficient disk space. This is quite simple; we can use the raspi-config tool to expand it. Below we can take a look at the video operation, so we understand the entire process:

Remote Connection to the System

After we connect remotely to the system, we can proceed to testing. Let’s see how the ROS system performs and experience running a 64-bit system on Raspberry Pi 3B+:

Test ROS Performance
Complete Raspberry Pi ROS Melodic Desktop Image Based on Ubuntu Mate 18.04

ROS Test Screenshot

0x03 Notes

[1]. This image currently cannot run on Raspberry Pi 4 and can only run on Raspberry Pi 3B+, 3B, 2B, and other Raspberry Pi boards.
[2]. After the system starts, the default username is corvin, and the password is also corvin. The password for the root user is also corvin. You can modify it as needed.
[3]. The system has the ssh-server on port 22 and the vnc-server on port 5900 enabled by default, allowing for convenient ssh and vnc remote desktop connections.
[4]. This system is installed with ROS using the latest official Ubuntu Mate 18.04, so you can conveniently use apt to install all ROS Melodic related packages.
[5]. This image cannot be used with our Raspberry Pi AI voice board because the driver porting has not been completed.

0x04 References

[1]. Nmap Chinese Manual Website.
http://www.nmap.com.cn/doc/manual.shtm
[2]. Official Raspberry Pi Ubuntu Mate Website.
https://ubuntu-mate.org/raspberry-pi/

0x05 Feedback

If you have any questions while following the tutorial, you can leave a message at the end of the article or follow the official WeChat account of ROS Classroom and send me a message to provide feedback. I basically handle messages in the WeChat account every day! Of course, if you would like to give a tip to ROS Classroom, I would be very grateful. A tip of 30 yuan will also invite you to join the ROS Classroom WeChat group to learn and communicate with more like-minded partners!

Leave a Comment

×