Follow this Ubuntu 20.04 Full Installation Walkthrough by LearnLinuxTV.
This process includes creating partitions for Ubuntu, installing the OS, and modifying the bootloader.
ROS version is dependant on Ubuntu version as:
- ROS Melodic - Ubuntu 18.04
- ROS Noetic - Ubuntu 20.04
Follow this link http://wiki.ros.org/ROS/Installation for a detailed installation guide.
- Setup sources and keys
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt install curl
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
- Installation, replace <distro> with melodic or noetic
sudo apt update
sudo apt install ros-<distro>-desktop-full
source /opt/ros/<distro>/setup.bash
echo "source /opt/ros/<distro>/setup.bash" >> ~/.bashrc
- Finishing up
sudo apt install python3-rosdep python3-rosinstall python3-rosinstall-generator python3-wstool build-essential
sudo rosdep init
rosdep update
- Setup Catkin Build
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu `lsb_release -sc` main" > /etc/apt/sources.list.d/ros-latest.list'
wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get install python3-catkin-tools
A device can be registered as a trusted device in your GitHub Account through an SSH key, allowing easy pull and push actions without entering a password every time.
- Keep pressing Enter key for subsequent steps after running the command below to complete SSH setup with default settings.
ssh-keygen -t ed25519 -C "[email protected]"
-
Navigate to your GitHub Account -> Settings -> SSH and GPG Keys -> New SSH Key.
-
Enter any title (your PC name preferably) and copy & paste the generated lines from the terminal using the command below.
cat ~/.ssh/id_ed25519.pub
cd ~/ && mkdir tiburon_ws # creates a new workspace in home directory
cd tiburon_ws && mkdir src # creates a src folder in tiburon_ws
catkin build # builds all packages in the workspace
echo "source ~/tiburon_ws/devel/setup.bash" >> ~/.bashrc # automatically source the workspace
source ~/.bashrc # source bashrc to apply changes