updated ardupilot_gazebo source and dependencies

This commit is contained in:
Sanket Sharma 2023-01-06 13:54:27 +05:30 committed by Randy Mackay
parent 3a85f1152b
commit 20550d42a9
1 changed files with 6 additions and 5 deletions

View File

@ -250,15 +250,16 @@ fi
if maybe_prompt_user "Add ardupilot_gazebo to your home folder [N/y]?" ; then
if [ ! -d $AP_GZ_ROOT ]; then
git clone https://github.com/khancyr/ardupilot_gazebo
sudo apt install libgz-sim7-dev rapidjson-dev
git clone https://github.com/ArduPilot/ardupilot_gazebo
pushd $AP_GZ_ROOT
mkdir build
pushd build
cmake ..
mkdir build && pushd build
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo
make -j4
sudo make install
popd
popd
echo 'export GZ_SIM_SYSTEM_PLUGIN_PATH=$AP_GZ_ROOT/build:${GZ_SIM_SYSTEM_PLUGIN_PATH}' >> ~/.bashrc
echo 'export GZ_SIM_RESOURCE_PATH=$AP_GZ_ROOT/models:$AP_GZ_ROOT/worlds:${GZ_SIM_RESOURCE_PATH}' >> ~/.bashrc
else
heading "${red}ardupilot_gazebo already exists, skipping...${reset}"
fi