This readme will describe how to setup various things.
Take the following steps to get started.
- Install necessary packages (skip this if you're using a removable drive provided by the club)
$ sudo apt update -y && sudo apt install -y git ansible python3-pip vim
- Create an SSH key if you don't have one already.
Use the default location, set a password if you like.
$ ssh-keygen -t ed25519
- Copy and paste your public key into GitHub
$ cat ~/.ssh/id_ed25519.pub
- Check out this repository into your home directory.
$ cd $ git clone git@github.com:CabrilloRoboticsClub/cabrillo_rov_2023.git $ cd ~/cabrillo_rov_2023 $ git submodule init $ git submodule update
- Use
make
to install ROS2 and all the necessary packages.This will take a while!$ make devbox-install
- Put ROS on your path
echo 'if [ -z "$ROS_DISTRO"]; then source /opt/ros/humble/setup.bash; fi' >> ~/.bashrc
- Start a new shell and build the repository
$ make
Start by creating a bootable SD card image:
- On your local computer download and install Raspberry Pi Imager
- Attach a Micro SD card to your local computer
- Open Raspberry Pi Imager
CHOOSE OS
>Other general-purpose OS
>Ubuntu
>Ubuntu Server 22.04 LTS (64-bit)
- Choose the Micro SD card as the storage and hit
WRITE
- Unplug the Micro SD card from your local computer, plug it back in to your local computer.
- Copy the
user-data
file fromsetup/image
into thesystem-boot
volume that shows up (overwrite the existing file). - Install the SD card into the Raspberry Pi
- Connect the Pi to an ethernet connection with internet access
- Plug the power cable in to the Pi.
The Pi will boot, then reboot. Give it 10 minutes or so. The hostname and passwords are now set. SSH is enabled. You can connect with:
$ ssh -A ubuntu@seahawk.local
Once you have SSHed into the new Pi image run the ROV specific playbooks:
- Check out this repository into your home directory.
$ cd $ git clone git@github.com:CabrilloRoboticsClub/cabrillo_rov_2023.git $ cd ~/cabrillo_rov_2023 $ git submodule init $ git submodule update
- Install make and Ansible command
$ sudo apt install make ansible
- Use
make
to install ROS2 and all the necessary packages.This will take a long, long time! 30 minutes or more.$ make rov-install
- Reboot the Pi
$ sudo reboot
- Disable the building of the
seahawk_description
package$ touch src/seahawk_description/COLCON_IGNORE
- Put ROS on your path
echo 'if [ -z "$ROS_DISTRO"]; then source /opt/ros/humble/setup.bash; fi' >> ~/.bashrc
- Start a new shell and build the repository
$ make