A custom MAVROS for MALLARD
For Melodic:
sudo apt-get install python-catkin-tools python-rosinstall-generator -y
For Noetic:
sudo apt install python3-catkin-tools python3-rosinstall-generator python3-osrf-pycommon -y
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws
catkin init
wstool init src
For both Melodic and Noetic, we use mavlink melodic reference as it's not distro-specific and up to date.
rosinstall_generator --rosdistro melodic mavlink | tee src/.rosinstall
Open src/.rosinstall
with your desired text editor, e.g.:
gedit src/.rosinstall
Add the following lines at the end of the file.
- git:
local-name: mavros_mallard
uri: https://github.com/EEEManchester/mavros_mallard.git
version: dev
wstool update -t src -j4
rosdep install --from-paths src --ignore-src -y
sudo ./src/mavros_mallard/mavros/scripts/install_geographiclib_datasets.sh
catkin build
source devel/setup.bash
Optional, add source to bashrc to avoid manual source everytime
echo "source $HOME/devel/setup.bash" >> ~/.bashrc