enhance installation guides, add environment setup, and expand troubleshooting for all platforms.
This commit is contained in:
@@ -177,8 +177,18 @@ elif [ -f "/opt/ros/humble/setup.bash" ]; then
|
||||
echo "[OK] ROS 2 humble"
|
||||
fi
|
||||
|
||||
# Activate Python venv
|
||||
if [ -f "$SCRIPT_DIR/venv/bin/activate" ]; then
|
||||
# Source ArduPilot environment (if installed)
|
||||
if [ -f "$HOME/.ardupilot_env" ]; then
|
||||
source "$HOME/.ardupilot_env"
|
||||
echo "[OK] ArduPilot environment"
|
||||
fi
|
||||
|
||||
# Activate ArduPilot venv (has empy and other dependencies)
|
||||
if [ -f "$HOME/venv-ardupilot/bin/activate" ]; then
|
||||
source "$HOME/venv-ardupilot/bin/activate"
|
||||
echo "[OK] ArduPilot venv"
|
||||
# Fallback to project venv
|
||||
elif [ -f "$SCRIPT_DIR/venv/bin/activate" ]; then
|
||||
source "$SCRIPT_DIR/venv/bin/activate"
|
||||
echo "[OK] Python venv"
|
||||
fi
|
||||
@@ -186,13 +196,14 @@ fi
|
||||
# Set Gazebo paths
|
||||
export GZ_SIM_RESOURCE_PATH="$SCRIPT_DIR/gazebo/models:$GZ_SIM_RESOURCE_PATH"
|
||||
|
||||
# Add ~/.local/bin to PATH (for mavproxy.py)
|
||||
# Add paths for ArduPilot tools and MAVProxy
|
||||
export PATH="$PATH:$HOME/.local/bin"
|
||||
export PATH="$PATH:$HOME/ardupilot/Tools/autotest"
|
||||
|
||||
# ArduPilot workspace
|
||||
if [ -f "$HOME/ardu_ws/install/setup.bash" ]; then
|
||||
source "$HOME/ardu_ws/install/setup.bash"
|
||||
echo "[OK] ArduPilot workspace"
|
||||
# ArduPilot Gazebo plugin
|
||||
if [ -d "$HOME/ardupilot_gazebo/build" ]; then
|
||||
export GZ_SIM_SYSTEM_PLUGIN_PATH="$HOME/ardupilot_gazebo/build:$GZ_SIM_SYSTEM_PLUGIN_PATH"
|
||||
export GZ_SIM_RESOURCE_PATH="$HOME/ardupilot_gazebo/models:$HOME/ardupilot_gazebo/worlds:$GZ_SIM_RESOURCE_PATH"
|
||||
fi
|
||||
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user