From 6db5602a5a289810ec114ae055d4efc3b462cbd3 Mon Sep 17 00:00:00 2001 From: Dmitrii Okoneshnikov <39788810+MagicWinnie@users.noreply.github.com> Date: Mon, 27 Jul 2020 16:50:14 +0700 Subject: [PATCH] Fix for errors occurred while running catkin_make (#255) * Fix errors occurred while running catkin_make * docs: Fix formatting, add reason for patching Co-authored-by: Alexey Rogachevskiy --- docs/en/simulation_native.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/en/simulation_native.md b/docs/en/simulation_native.md index 650587af..efeb2df3 100644 --- a/docs/en/simulation_native.md +++ b/docs/en/simulation_native.md @@ -52,13 +52,25 @@ You may want to skip installing the ARM toolchain if you're not planning on comp sudo ./ubuntu.sh --no-nuttx ``` +## Patch Gazebo plugins + +The `sitl_gazebo` package containing required Gazebo plugins needs patching due to recent changes in MAVLink. These patches are already preapplied in the [virtual machine image](simulation_vm.md) and are stored in the VM repository. Run the following commands to download and apply the patches: + +```bash +cd ~/catkin_ws/src/Firmware/Tools/sitl_gazebo +wget https://raw.githubusercontent.com/CopterExpress/clover_vm/master/assets/patches/sitl_gazebo.patch +patch -p1 < sitl_gazebo.patch +rm sitl_gazebo.patch +``` + ## Install geographiclib datasets `mavros` requires geographiclib datasets to be present: ```bash cd ~ -wget https://raw.githubusercontent.com/mavlink/mavros/6f5bd5a1a67c19c2e605f33de296b1b1be9d02fc/mavros/scripts/install_geographiclib_datasets.sh +wget https://raw.githubusercontent.com/mavlink/mavros/6f5bd5a1a67c19c2e605f33de296b1b1be9d02fc/mavros/scripts/install_geographiclib_datasets.sh +chmod +x ./install_geographiclib_datasets.sh sudo ./install_geographiclib_datasets.sh rm ./install_geographiclib_datasets.sh ```