UAT 322 Artificial Intelligence and Autonomous Unmanned Aircraft Systems Integration Laboratory
Worksheet 3 Obstacle avoidance in SITL
Objective
Plan paths with A*, test PX4 avoidance, compare stopping distance with theory, evaluate a trajectory and conclude a safe speed
Equipment and materials
- Computer with Python and PX4 SITL with a simulated range sensor
- Module 3 example code
- Trajectory data set from the lecturer
- Lab notebook
Safety
- Simulation only; no real flights
- The concluded speed is a proposal only and must pass the test ladder before real use
Steps
- Add a narrow gap to the Example 1 map; try 0, 1 and 2 cells of inflation
- Record when the path changes or cannot be found
- Enable Collision Prevention in SITL, set CP_DIST and fly at a wall in Position mode
- Record the real stopping point at several speeds
- Vary speed and latency in the stopping formula and compare with SITL
- Compute ATE RMSE from the trajectory set, explain the alignment, and conclude the highest safe speed with assumptions
Record of results
| Map (original or gap, how many cells wide) | Inflation (cells) | Path found? | Path length (m) | Cells expanded |
|---|---|---|---|---|
| Speed (m/s) | Latency used (s) | Formula stopping distance (m) | Distance from wall when stopped (m) | CP_DIST (m) | Notes |
|---|---|---|---|---|---|
Questions
From Table 1, at least how many cells wide must a gap be to stay passable with 1 cell of inflation, and with 2? Write it as a general rule.
In Table 2, how does the real SITL stopping distance differ from the formula? Explain the likely causes (Collision Prevention speed limiting, real latency, real deceleration).
If latency rises from 0.25 to 0.5 s, how much does the highest speed that still stops within an 8 m sensor range change, and why must the proposed speed still allow extra margin?
What does your ATE RMSE say about SLAM error along the path, and why must the alignment method always be stated?
Check before you hand in
What to hand in
- A* path plots for each case
- Real against formula stopping distances
- ATE RMSE and alignment method
- Safe-speed conclusion with assumptions