Getting started with ROS and ArduPilot
This page will help you understand how to operate ROS 2 and ArduPilot
Disclaimer
This project uses ROS 2 and not ROS 1. I use Iron for the demo and Ubuntu 22.04 Jammy
Installing ROS 2
Steps
1. Updating your package index
sudo apt update && sudo apt upgrade -y2. Installing ROS 2 dependencies
sudo apt install -y python3-colcon-common-extensions python3-vcstool3. Adding ROS 2
sudo sh -c 'echo "deb [arch=amd64,arm64] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" > /etc/apt/sources.list.d/ros2.list'4.Setting up your environment
sudo apt install -y curlcurl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -sudo apt update5.Installing ROS 2
Please install any of the following options, I prefer desktop
sudo apt install -y ros-iron-desktopPossible options
- ros-humble-ros-base
- ros-dev-tools
6. Initializing
source /opt/ros/iron/setup.bashAlternatively you can add it to your .bashrc/.zshrc