Skip to content

Production & development environment setup, maintenance

Notifications You must be signed in to change notification settings

CabrilloRoboticsClub/setup

Repository files navigation

Setup

This readme will describe how to setup various things.

Development Box Setup

Take the following steps to get started.

  1. 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 
  2. Create an SSH key if you don't have one already.
    $ ssh-keygen -t ed25519
    Use the default location, set a password if you like.
  3. Copy and paste your public key into GitHub
    $ cat ~/.ssh/id_ed25519.pub
  4. 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
  5. Use make to install ROS2 and all the necessary packages.
    $ make devbox-install
    This will take a while!
  6. Put ROS on your path
    echo 'if [ -z "$ROS_DISTRO"]; then source /opt/ros/humble/setup.bash; fi' >> ~/.bashrc 
  7. Start a new shell and build the repository
    $ make 

Raspberry Pi (ROV) Setup Procedure

Start by creating a bootable SD card image:

  1. On your local computer download and install Raspberry Pi Imager
  2. Attach a Micro SD card to your local computer
  3. 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
  4. Unplug the Micro SD card from your local computer, plug it back in to your local computer.
  5. Copy the user-data file from setup/image into the system-boot volume that shows up (overwrite the existing file).
  6. Install the SD card into the Raspberry Pi
  7. Connect the Pi to an ethernet connection with internet access
  8. 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:

  1. 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
  2. Install make and Ansible command
    $ sudo apt install make ansible
  3. Use make to install ROS2 and all the necessary packages.
    $ make rov-install
    This will take a long, long time! 30 minutes or more.
  4. Reboot the Pi
    $ sudo reboot
  5. Disable the building of the seahawk_description package
    $ touch src/seahawk_description/COLCON_IGNORE 
  6. Put ROS on your path
    echo 'if [ -z "$ROS_DISTRO"]; then source /opt/ros/humble/setup.bash; fi' >> ~/.bashrc 
  7. Start a new shell and build the repository
    $ make 

About

Production & development environment setup, maintenance

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published