install script updates
This commit is contained in:
@@ -149,13 +149,14 @@ $activateBat = Join-Path $ProjectRoot "activate.bat"
|
||||
@"
|
||||
@echo off
|
||||
REM Drone Simulation - Environment Activation (Windows CMD)
|
||||
REM Note: Full ArduPilot simulation requires WSL2 (Linux)
|
||||
|
||||
call "%~dp0venv\Scripts\activate.bat"
|
||||
|
||||
echo.
|
||||
echo [OK] Environment ready!
|
||||
echo [OK] Python environment ready!
|
||||
echo.
|
||||
echo Run: python standalone_simulation.py
|
||||
echo Note: ArduPilot SITL requires WSL2. See docs/installation.md
|
||||
echo.
|
||||
"@ | Out-File -FilePath $activateBat -Encoding ASCII
|
||||
|
||||
@@ -163,6 +164,7 @@ echo.
|
||||
$activatePs1 = Join-Path $ProjectRoot "activate.ps1"
|
||||
@"
|
||||
# Drone Simulation - Environment Activation (Windows PowerShell)
|
||||
# Note: Full ArduPilot simulation requires WSL2 (Linux)
|
||||
# Usage: . .\activate.ps1
|
||||
|
||||
`$ScriptDir = Split-Path -Parent `$MyInvocation.MyCommand.Path
|
||||
@@ -171,9 +173,9 @@ $activatePs1 = Join-Path $ProjectRoot "activate.ps1"
|
||||
& "`$ScriptDir\venv\Scripts\Activate.ps1"
|
||||
|
||||
Write-Host ""
|
||||
Write-Host "[OK] Environment ready!" -ForegroundColor Green
|
||||
Write-Host "[OK] Python environment ready!" -ForegroundColor Green
|
||||
Write-Host ""
|
||||
Write-Host "Run: python standalone_simulation.py" -ForegroundColor White
|
||||
Write-Host "Note: ArduPilot SITL requires WSL2. See docs/installation.md" -ForegroundColor Yellow
|
||||
Write-Host ""
|
||||
"@ | Out-File -FilePath $activatePs1 -Encoding UTF8
|
||||
|
||||
@@ -214,18 +216,13 @@ Write-Host "==============================================" -ForegroundColor Cy
|
||||
Write-Host " Installation Complete!" -ForegroundColor Cyan
|
||||
Write-Host "==============================================" -ForegroundColor Cyan
|
||||
Write-Host ""
|
||||
Write-Host "Quick start:" -ForegroundColor Yellow
|
||||
Write-Host " . .\activate.ps1" -ForegroundColor White
|
||||
Write-Host " python standalone_simulation.py" -ForegroundColor White
|
||||
Write-Host ""
|
||||
Write-Host "With moving rover:" -ForegroundColor Yellow
|
||||
Write-Host " python standalone_simulation.py --pattern circular --speed 0.3" -ForegroundColor White
|
||||
Write-Host "Note: ArduPilot SITL simulation requires WSL2 (Linux)." -ForegroundColor Yellow
|
||||
Write-Host ""
|
||||
Write-Host "======================================================" -ForegroundColor Cyan
|
||||
Write-Host " Want ROS 2 + Gazebo + ArduPilot? Use WSL2" -ForegroundColor Cyan
|
||||
Write-Host " Full Simulation: Use WSL2 (Linux)" -ForegroundColor Cyan
|
||||
Write-Host "======================================================" -ForegroundColor Cyan
|
||||
Write-Host ""
|
||||
Write-Host "For the full simulation with Gazebo and ArduPilot:" -ForegroundColor Gray
|
||||
Write-Host "ArduPilot + Gazebo simulation requires Linux:" -ForegroundColor Gray
|
||||
Write-Host ""
|
||||
Write-Host "Step 1: Install WSL2" -ForegroundColor Yellow
|
||||
Write-Host " wsl --install -d Ubuntu-24.04" -ForegroundColor White
|
||||
@@ -236,9 +233,10 @@ Write-Host " cd /mnt/c/path/to/RDC_Simulation" -ForegroundColor White
|
||||
Write-Host " ./setup/install_ubuntu.sh --with-ardupilot" -ForegroundColor White
|
||||
Write-Host " source ~/.bashrc" -ForegroundColor White
|
||||
Write-Host ""
|
||||
Write-Host "Step 3: Run simulation (2 terminals)" -ForegroundColor Yellow
|
||||
Write-Host "Step 3: Run simulation (3 terminals)" -ForegroundColor Yellow
|
||||
Write-Host " Terminal 1: ./scripts/run_ardupilot_sim.sh runway" -ForegroundColor White
|
||||
Write-Host " Terminal 2: ./scripts/run_ardupilot_controller.sh" -ForegroundColor White
|
||||
Write-Host " Terminal 2: sim_vehicle.py -v ArduCopter -f gazebo-iris --model JSON --console" -ForegroundColor White
|
||||
Write-Host " Terminal 3: python scripts/run_ardupilot.py --pattern square" -ForegroundColor White
|
||||
Write-Host ""
|
||||
Write-Host "GPU Acceleration in WSL:" -ForegroundColor Yellow
|
||||
Write-Host " - Windows 11: WSLg auto-enabled (no setup needed)" -ForegroundColor DarkGray
|
||||
|
||||
Reference in New Issue
Block a user