Got a Raspberry Pi 3 or 4? Let’s use it to drive a robot running Ubuntu! This video walks you through installing Ubuntu so we can later install ROS.

Check out the Ubuntu Robotics team at https://ubuntu.com/robotics to find more exiting information about robots running Ubuntu!

What you need to do this installation:
– a Rasperry Pi 3 or 4 (not 2 or earlier, not zero–possible, not covered here)
– an SD card, 4 or 8GB (more for ROS)

Download images from https://ubuntu.com/download/raspberry-pi, or for a more comprehensive list of Ubuntu images see http://cdimage.ubuntu.com/releases/.

Why do you sometimes have to reboot before your pi will connect to the wireless network? Because there’s an open issue with cloud-init booting from wifi. This also prevents you from configuring other network-based cloud-init items on first boot. See https://launchpad.net/bugs/1870346 and watch for an update.

This is the sample network-config used in this video:

version: 2
ethernets:
eth0:
dhcp4: true
optional: true
wifis:
wlan0:
addresses:
– 10.168.1.21/24
gateway4: 10.168.1.1
nameservers:
addresses: [10.168.1.1, 8.8.8.8]
access-points:
robotnet:
password: “robotnet-password”

This configuration file:
– Leaves the ethernet adapter enabled with dhcp
– Assigns a static IP address of 10.168.1.21, netmask 255.255.255.0 (/24), and a default gateway of 10.168.1.1
– Assigns DNS servers 10.168.1.1 and 8.8.8.8
– Connects to the access point named “robotnet” with the WPA2 Personal password “robotnet-password”

––––––––––––––––––––––––––––––
Soundtrack:
Breathe by Axl & Arth https://soundcloud.com/axlarth
Creative Commons — Attribution-ShareAlike 3.0 Unported— CC BY-SA 3.0
Free Download / Stream: https://bit.ly/breathe-feat-dimi-marc
Music promoted by Audio Library https://youtu.be/Bod2YAK6J4A

source