What problem does it solve?
Building a UAV simulation in MATLAB requires correctly wiring together uavScenario, terrain and building meshes, platforms, and sensors, where small mistakes like wrong coordinate frames, missing color arguments, or incorrect read outputs cause silent failures or errors.
Core Features & Use Cases
- Scenario Construction: Create a uavScenario with a reference location, then import GMTED2010 or DTED terrain and OSM buildings using addMesh with geographic or local ENU coordinates.
- Platform and Sensor Setup: Add uavPlatform objects with waypoint trajectories and quadrotor meshes, then bind GPS and INS sensors through the uavSensor adaptor pattern.
- Simulation and Visualization: Run the setup/advance/updateSensors loop, read sensor and platform states, and animate flight with show3D including trajectory trails and body-frame markers.
- Use Case: Simulate a quadrotor flying a waypoint mission over Boston terrain with GPS and IMU readings, visualizing the flight path in 3D.
Quick Start
Create a UAV scenario over Boston with GMTED2010 terrain, add a quadrotor platform following a waypoint trajectory, attach a GPS sensor, and run the simulation with 3D visualization.