Raspberry pi Setup:
- Install Ubuntu Server on SD card. Configure the user as pisaBot and the ssh keys.
- Configure the network:
- Run this for the sd card
wpa_passphrase "Other network name" password | sudo tee -a mnt/sd_card/etc/netplan/50-cloud-init.yaml - Then reformat the to match the above link. i.e.
access-points: "SSID1": password: "pass1" "SSID2": password: "pass2"
- Run this for the sd card
- Boot the pi up with the sd card and ssh in.
sudo apt update- Install ROS (ros-noetic-desktop)
- Configure your Ubuntu repositories:
To check that this worked:
$ sudo add-apt-repository universe $ sudo add-apt-repository multiverse $ sudo add-apt-repository restricted$ grep ^deb /etc/apt/sources.list
- Configure your Ubuntu repositories:
- In a separate terminal clone jshen, and pisaBot. Use
git submodule update --initto clone submodules after clone. - Add
jshen/src/machine/pisaBot.bash:#!/bin/bash source $HOME/pisaBot/devel/setup.bash - Get MPU-6050 working:
sudo apt-get install libi2c-dev i2c-tools libi2c0 - Get gpio raspberry pi working:
sudo pip install RPi.GPIO- sudo adduser jordan gpio
catkin_makein piasBot.