Skip to content

Setup (Local)

manx52 edited this page Nov 29, 2024 · 77 revisions

Prerequisites

  • Ubuntu 20 Installed

Main setup

Setup your ssh-keys

Run in terminal

ssh-keygen # Then keep pressing the enter button, don't set a password
cd ~/.ssh &&  cat id_rsa.pub # Get contents of public key

on github > Settings > SSH and GPG Keys > New SSH Key, paste the key

Verify ssh key with ssh -T [email protected]

Run setup

Run the command below in terminal.

Answer the prompt to what you want to install

sudo apt install -y curl
curl -fsSL https://raw.githubusercontent.com/utra-robosoccer/soccerbot/refs/heads/master/tools/setup/setup.sh > /tmp/setup.sh
bash /tmp/setup.sh

If you run it multiple times, maybe open it up and continue from where it stopped.

Setup Docker (Optional)

Look at Setup (Docker)

Setup Pycharm

Look at Setup (Pycharm)

Building and Running

# Running the build (can be done from anywhere in the workspace
catkin build soccerbot

Running the software locally (for docker look at Setup (Docker))

source ~/.bashrc
roslaunch soccerbot soccerbot_multi.launch

Other Instructions

  • Sometimes you need to source ~/.bashrc in a terminal to get it to work
  • To exit gazebo quicker run
# For noetic
sudo gedit /opt/ros/noetic/lib/python3/dist-packages/roslaunch/nodeprocess.py

change these 2 lines

_TIMEOUT_SIGINT  = 1.0 #seconds
_TIMEOUT_SIGTERM = 1.0 #seconds

MAC

Install pycharm, install homebrew: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"