Install Scripts Update
This commit is contained in:
@@ -167,12 +167,22 @@ echo "With moving rover:"
|
||||
echo " python standalone_simulation.py --pattern circular --speed 0.3"
|
||||
echo ""
|
||||
echo "=============================================="
|
||||
echo " Optional: Install ROS 2 from AUR"
|
||||
echo " Optional: Install ROS 2 + Gazebo from AUR"
|
||||
echo "=============================================="
|
||||
echo ""
|
||||
echo "If you need ROS 2 for the full simulation mode:"
|
||||
echo ""
|
||||
echo " # Install ROS 2 Humble"
|
||||
echo " yay -S ros-humble-desktop"
|
||||
echo ""
|
||||
echo " # Install Gazebo bridge"
|
||||
echo " yay -S ros-humble-ros-gz"
|
||||
echo ""
|
||||
echo "Then use simulation_host.py + ros_bridge.py + controllers.py"
|
||||
echo " # Install Gazebo Fortress (provides 'ign' command)"
|
||||
echo " yay -S ignition-fortress"
|
||||
echo ""
|
||||
echo "After installing, use:"
|
||||
echo " ign gazebo gazebo/worlds/drone_landing.sdf # Terminal 1"
|
||||
echo " python run_gazebo.py --pattern circular # Terminal 2"
|
||||
echo ""
|
||||
|
||||
|
||||
@@ -136,3 +136,14 @@ echo ""
|
||||
echo "With moving rover:"
|
||||
echo " python standalone_simulation.py --pattern circular --speed 0.3"
|
||||
echo ""
|
||||
echo "=============================================="
|
||||
echo " Want ROS 2 + Gazebo?"
|
||||
echo "=============================================="
|
||||
echo ""
|
||||
echo "ROS 2 and Gazebo are not supported on macOS."
|
||||
echo "For the full experience, use a Linux VM or Docker:"
|
||||
echo " - UTM (Apple Silicon): https://mac.getutm.app"
|
||||
echo " - Docker Desktop: docker run -it ubuntu:22.04"
|
||||
echo " - Then run: ./setup/install_ubuntu.sh"
|
||||
echo ""
|
||||
|
||||
|
||||
@@ -94,15 +94,33 @@ echo "[STEP 4/8] Installing Gazebo..."
|
||||
|
||||
if [ "$ROS_DISTRO" = "jazzy" ]; then
|
||||
GZ_VERSION="harmonic"
|
||||
GZ_PKG="gz-harmonic"
|
||||
else
|
||||
GZ_VERSION="fortress"
|
||||
GZ_PKG="gz-fortress"
|
||||
fi
|
||||
|
||||
# Install ros-gz bridge
|
||||
sudo apt-get install -y ros-${ROS_DISTRO}-ros-gz || {
|
||||
echo "[WARN] Could not install ros-gz, Gazebo simulation will not be available"
|
||||
echo "[INFO] PyBullet simulation will still work"
|
||||
echo "[WARN] Could not install ros-gz"
|
||||
}
|
||||
|
||||
# Install Gazebo itself (provides gz or ign command)
|
||||
sudo apt-get install -y $GZ_PKG || {
|
||||
echo "[WARN] Could not install $GZ_PKG"
|
||||
echo "[INFO] Trying ros-ign-gazebo..."
|
||||
sudo apt-get install -y ros-${ROS_DISTRO}-ros-ign-gazebo || true
|
||||
}
|
||||
|
||||
# Verify installation
|
||||
if command -v gz &> /dev/null; then
|
||||
echo "[INFO] Gazebo installed (gz command available)"
|
||||
elif command -v ign &> /dev/null; then
|
||||
echo "[INFO] Gazebo Fortress installed (ign command available)"
|
||||
else
|
||||
echo "[WARN] Gazebo command not found - use PyBullet instead"
|
||||
fi
|
||||
|
||||
echo "[INFO] Gazebo installation complete"
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
@@ -210,9 +210,9 @@ if ($LASTEXITCODE -eq 0) {
|
||||
}
|
||||
|
||||
Write-Host ""
|
||||
Write-Host "==============================================" -ForegroundColor Cyan
|
||||
Write-Host "==============================================" -ForegroundColor Cyan
|
||||
Write-Host " Installation Complete!" -ForegroundColor Cyan
|
||||
Write-Host "==============================================" -ForegroundColor Cyan
|
||||
Write-Host "==============================================" -ForegroundColor Cyan
|
||||
Write-Host ""
|
||||
Write-Host "Quick start:" -ForegroundColor Yellow
|
||||
Write-Host " . .\activate.ps1" -ForegroundColor White
|
||||
@@ -221,6 +221,12 @@ Write-Host ""
|
||||
Write-Host "With moving rover:" -ForegroundColor Yellow
|
||||
Write-Host " python standalone_simulation.py --pattern circular --speed 0.3" -ForegroundColor White
|
||||
Write-Host ""
|
||||
Write-Host "Note: ROS 2 and Gazebo are not supported on Windows." -ForegroundColor Gray
|
||||
Write-Host " standalone_simulation.py provides the complete experience." -ForegroundColor Gray
|
||||
Write-Host "==============================================" -ForegroundColor Cyan
|
||||
Write-Host " Want ROS 2 + Gazebo? Use WSL2" -ForegroundColor Cyan
|
||||
Write-Host "==============================================" -ForegroundColor Cyan
|
||||
Write-Host ""
|
||||
Write-Host "For the full experience with ROS 2 and Gazebo:" -ForegroundColor Gray
|
||||
Write-Host " 1. Install WSL2: wsl --install -d Ubuntu-22.04" -ForegroundColor White
|
||||
Write-Host " 2. Open Ubuntu and run: ./setup/install_ubuntu.sh" -ForegroundColor White
|
||||
Write-Host " 3. See docs/installation.md for details" -ForegroundColor White
|
||||
Write-Host ""
|
||||
|
||||
Reference in New Issue
Block a user