UAT 322 Artificial Intelligence and Autonomous Unmanned Aircraft Systems Integration Laboratory

Worksheet 3 Obstacle avoidance in SITL

Lab 12 hAssesses CLO1, CLO3

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

  1. Add a narrow gap to the Example 1 map; try 0, 1 and 2 cells of inflation
  2. Record when the path changes or cannot be found
  3. Enable Collision Prevention in SITL, set CP_DIST and fly at a wall in Position mode
  4. Record the real stopping point at several speeds
  5. Vary speed and latency in the stopping formula and compare with SITL
  6. Compute ATE RMSE from the trajectory set, explain the alignment, and conclude the highest safe speed with assumptions

Record of results

Table 1 A* results with different inflation
Map (original or gap, how many cells wide)Inflation (cells)Path found?Path length (m)Cells expanded
Table 2 Real stopping distance in SITL against the formula
Speed (m/s)Latency used (s)Formula stopping distance (m)Distance from wall when stopped (m)CP_DIST (m)Notes
ATE RMSE, alignment method, and the highest safe speed with assumptions (sensor range, latency, braking, margin)

Questions

  1. 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.

  2. 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).

  3. 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?

  4. 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

CLO1 Integrate control, navigation and sensors. CLO3 Test safely in simulation and the field. (CLOs are a web-team draft; the course owner sets the final ones.)

Instructors: answers and teaching notes for this worksheet are in the teaching pack