install script updates

This commit is contained in:
2026-01-09 19:22:35 +00:00
parent 225604ada4
commit f8c3bab861
4 changed files with 62 additions and 57 deletions

View File

@@ -213,7 +213,7 @@ if [ -d "$HOME/ardupilot_gazebo/build" ]; then
fi
echo ""
echo "Ready! Run: python standalone_simulation.py"
echo "Ready! See README.md for usage instructions."
EOF
chmod +x "$PROJECT_ROOT/activate.sh"
@@ -241,8 +241,8 @@ if [ "$INSTALL_ARDUPILOT" = true ]; then
echo ""
echo "[INFO] Installing ArduPilot SITL..."
if [ -f "$SCRIPT_DIR/install_ardupilot.sh" ]; then
bash "$SCRIPT_DIR/install_ardupilot.sh"
if [ -f "$SCRIPT_DIR/setup/install_ardupilot.sh" ]; then
bash "$SCRIPT_DIR/setup/install_ardupilot.sh"
else
echo "[ERROR] install_ardupilot.sh not found!"
fi
@@ -253,16 +253,23 @@ echo "=============================================="
echo " Installation Complete!"
echo "=============================================="
echo ""
echo "Quick start:"
echo " source activate.sh"
echo " python standalone_simulation.py"
echo "Quick start (3 terminals):"
echo ""
echo "With Gazebo (2 terminals):"
echo " Terminal 1: ros2 launch gazebo/launch/drone_landing.launch.py"
echo " Terminal 2: python run_gazebo.py --pattern circular"
echo "Terminal 1 - Start Gazebo:"
echo " cd ~/RDC_Simulation"
echo " ./scripts/run_ardupilot_sim.sh runway"
echo ""
echo "Terminal 2 - Start ArduCopter SITL:"
echo " source ~/venv-ardupilot/bin/activate"
echo " sim_vehicle.py -v ArduCopter -f gazebo-iris --model JSON --console"
echo ""
echo "Terminal 3 - Run Controller:"
echo " source ~/venv-ardupilot/bin/activate"
echo " cd ~/RDC_Simulation"
echo " python scripts/run_ardupilot.py --pattern square"
echo ""
if [ "$INSTALL_ARDUPILOT" != true ]; then
echo "For ArduPilot SITL:"
echo "For ArduPilot SITL (required for flight):"
echo " ./setup/install_ardupilot.sh"
echo ""
fi