Ardupilot Install Script Fix
This commit is contained in:
@@ -56,17 +56,21 @@ source ~/.bashrc
|
||||
```
|
||||
|
||||
**Installs:**
|
||||
- Micro-XRCE-DDS-Gen (required for DDS)
|
||||
- ArduPilot SITL
|
||||
- ardupilot_gz (Gazebo integration)
|
||||
- MAVProxy
|
||||
- MAVProxy (`~/.local/bin/mavproxy.py`)
|
||||
|
||||
**Run:**
|
||||
**Run (2 terminals):**
|
||||
|
||||
Terminal 1:
|
||||
```bash
|
||||
# Terminal 1
|
||||
source ~/ardu_ws/install/setup.bash
|
||||
ros2 launch ardupilot_gz_bringup iris_runway.launch.py
|
||||
```
|
||||
|
||||
# Terminal 2
|
||||
Terminal 2:
|
||||
```bash
|
||||
mavproxy.py --console --map --master=:14550
|
||||
```
|
||||
|
||||
@@ -96,21 +100,16 @@ source activate.sh
|
||||
python standalone_simulation.py
|
||||
```
|
||||
|
||||
**Note:** ROS 2 and Gazebo not supported on macOS. Use standalone mode.
|
||||
**Note:** ROS 2 and Gazebo not supported. Use standalone mode.
|
||||
|
||||
---
|
||||
|
||||
## Manual Install
|
||||
|
||||
```bash
|
||||
# Create virtual environment
|
||||
python3 -m venv venv
|
||||
source venv/bin/activate
|
||||
|
||||
# Install packages
|
||||
pip install -r requirements.txt
|
||||
|
||||
# Run
|
||||
python standalone_simulation.py
|
||||
```
|
||||
|
||||
@@ -123,3 +122,42 @@ python -c "import pybullet; print('PyBullet OK')"
|
||||
python -c "import cv2; print('OpenCV OK')"
|
||||
python -c "from pymavlink import mavutil; print('pymavlink OK')"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
### MAVProxy not found
|
||||
|
||||
```bash
|
||||
# Install
|
||||
pip3 install --user mavproxy
|
||||
|
||||
# Add to PATH
|
||||
echo 'export PATH=$PATH:~/.local/bin' >> ~/.bashrc
|
||||
source ~/.bashrc
|
||||
|
||||
# Verify
|
||||
which mavproxy.py
|
||||
```
|
||||
|
||||
### microxrceddsgen not found
|
||||
|
||||
```bash
|
||||
# Install (needed for ArduPilot DDS)
|
||||
git clone --recurse-submodules https://github.com/eProsima/Micro-XRCE-DDS-Gen.git ~/Micro-XRCE-DDS-Gen
|
||||
cd ~/Micro-XRCE-DDS-Gen
|
||||
./gradlew assemble
|
||||
|
||||
# Add to PATH
|
||||
echo 'export PATH=$PATH:~/Micro-XRCE-DDS-Gen/scripts' >> ~/.bashrc
|
||||
source ~/.bashrc
|
||||
```
|
||||
|
||||
### Build errors
|
||||
|
||||
```bash
|
||||
# Rebuild with override flag
|
||||
cd ~/ardu_ws
|
||||
colcon build --packages-up-to ardupilot_gz_bringup --allow-overriding ros_gz_bridge ros_gz_sim sdformat_urdf
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user