2. 第二个gazebo地图需要在github上下载然后编译
git clone <a href=&#34;https://github.com/khancyr/ardupilot_gazebo&#34; target=&#34;_blank&#34;>https://github.com/khancyr/ardupilot_gazebo</a>
cd ardupilot_gazebo
mkdir build
cd build
cmake ..
make -j4
sudo make install然后,注意要把环境变量配置好,参照github上的说法如下:
echo &#39;source /usr/share/gazebo/setup.sh&#39; >> ~/.bashrc
Set Path of Gazebo Models (Adapt the path to where to clone the repo)
echo &#39;export GAZEBO_MODEL_PATH=~/ardupilot_gazebo/models&#39; >> ~/.bashrc
Set Path of Gazebo Worlds (Adapt the path to where to clone the repo)
echo &#39;export GAZEBO_RESOURCE_PATH=~/ardupilot_gazebo/worlds:${GAZEBO_RESOURCE_PATH}&#39; >> ~/.bashrc
source ~/.bashrc配置好的环境变量截图如下: