Skip to content

Commit

Permalink
updated ardupilot_gazebo source and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
snktshrma authored and rmackay9 committed Jan 6, 2023
1 parent 3a85f11 commit 20550d4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Tools/environment_install/install-ROS-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 20550d4

Please sign in to comment.