Ardupilot Update
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
# =============================================================================
|
||||
# Installs PyBullet and Python dependencies
|
||||
# ROS 2 requires AUR (optional - not needed for standalone mode)
|
||||
# ArduPilot SITL can be built from source (optional)
|
||||
#
|
||||
# Usage: ./install_arch.sh
|
||||
# =============================================================================
|
||||
@@ -153,6 +154,7 @@ echo "Checking Python packages:"
|
||||
python -c "import pybullet; print(' PyBullet: OK')" || echo " PyBullet: FAILED"
|
||||
python -c "import numpy; print(' NumPy: OK')" || echo " NumPy: FAILED"
|
||||
python -c "from PIL import Image; print(' Pillow: OK')" || echo " Pillow: FAILED"
|
||||
python -c "from pymavlink import mavutil; print(' pymavlink: OK')" || echo " pymavlink: FAILED"
|
||||
|
||||
echo ""
|
||||
echo "=============================================="
|
||||
@@ -185,4 +187,28 @@ echo "After installing, use:"
|
||||
echo " ign gazebo gazebo/worlds/drone_landing.sdf # Terminal 1"
|
||||
echo " python run_gazebo.py --pattern circular # Terminal 2"
|
||||
echo ""
|
||||
echo "=============================================="
|
||||
echo " Optional: Install ArduPilot SITL"
|
||||
echo "=============================================="
|
||||
echo ""
|
||||
echo "For realistic flight controller simulation:"
|
||||
echo ""
|
||||
echo " # Clone and build ArduPilot"
|
||||
echo " git clone --recurse-submodules https://github.com/ArduPilot/ardupilot.git ~/ardupilot"
|
||||
echo " cd ~/ardupilot"
|
||||
echo " pip install -r Tools/environment_install/requirements.txt"
|
||||
echo ""
|
||||
echo " # Clone and build ArduPilot Gazebo plugin"
|
||||
echo " git clone https://github.com/ArduPilot/ardupilot_gazebo.git ~/ardupilot_gazebo"
|
||||
echo " cd ~/ardupilot_gazebo && mkdir build && cd build"
|
||||
echo " cmake .. && make -j$(nproc)"
|
||||
echo ""
|
||||
echo " # Add to environment"
|
||||
echo " export ARDUPILOT_HOME=~/ardupilot"
|
||||
echo " export PATH=\$PATH:\$ARDUPILOT_HOME/Tools/autotest"
|
||||
echo " export GZ_SIM_SYSTEM_PLUGIN_PATH=~/ardupilot_gazebo/build:\$GZ_SIM_SYSTEM_PLUGIN_PATH"
|
||||
echo ""
|
||||
echo "Then run:"
|
||||
echo " python run_ardupilot.py --pattern circular"
|
||||
echo ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user