mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-20 15:48:29 -04:00
updated ardupilot_gazebo source and dependencies
This commit is contained in:
parent
3a85f1152b
commit
20550d42a9
@ -250,15 +250,16 @@ fi
|
|||||||
|
|
||||||
if maybe_prompt_user "Add ardupilot_gazebo to your home folder [N/y]?" ; then
|
if maybe_prompt_user "Add ardupilot_gazebo to your home folder [N/y]?" ; then
|
||||||
if [ ! -d $AP_GZ_ROOT ]; 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
|
pushd $AP_GZ_ROOT
|
||||||
mkdir build
|
mkdir build && pushd build
|
||||||
pushd build
|
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
||||||
cmake ..
|
|
||||||
make -j4
|
make -j4
|
||||||
sudo make install
|
|
||||||
popd
|
popd
|
||||||
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
|
else
|
||||||
heading "${red}ardupilot_gazebo already exists, skipping...${reset}"
|
heading "${red}ardupilot_gazebo already exists, skipping...${reset}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user