Ardupilot Setup
Requirements :
Dependencies for building packages
sudo apt install python3-rosinstall python3-rosinstall-generator python3-wstool build-essentialMAVROS installation :
Configure your Ubuntu repositories
sudo apt-get install ros-noetic-mavros ros-noetic-mavros-extras
cd ~/
wget https://raw.githubusercontent.com/mavlink/mavros/master/mavros/scripts/install_geographiclib_datasets.sh
sudo chmod a+x install_geographiclib_datasets.sh
sudo ./install_geographiclib_datasets.shFor ease of use on a desktop computer, please also install RQT
Install catkin tools
Environment setup and configuration :
SETP 1 - SITL Ardupilot installation :
Clone ArduPilot repository
Install some required packages
Finalize and test the installation
Updating MAVProxy and pymavlink
SETP 2 - Ardupilot gazebo plugin installation :
Clone ArduPilot repository
Set environment variables
Test installation
SETP 3 - Gazebo ROS plugin (roscam) :
Clone Gazebo roscam integrated mdodel repository
SETP 4 - Connect ArduPilot to ROS using MAVROS :
Setup MAVROS
Test
Run it all
Launch Gazebo
Launch SITL Ardupilot
Subscribe to the virtual roscam feed
Final notes and comments
Troubleshooting
1. udp0: sendto: Invalid argument mavros
2. link 1 down, even after launching ardupilot_gazebo
3. Could not find a package configuration file provided by "mavros" with any of the following names: mavrosConfig.cmake mavros-config.cmake
Last updated
Was this helpful?