UAT 314 Automation, Robotics and Intelligent Control Systems

Worksheet 4 Planning a path and testing in simulation

Analysis activity 4 hAssesses CLO2, CLO3

Objective

Implement and compare A* with Dijkstra, design fuzzy rules and analyse the safeguards of an AI avoidance system

Equipment and materials

  • Computer with Python
  • The SITL knowledge unit in the drone knowledge base

Safety

  • Desk and simulation work only; no flying

Steps

  1. Implement grid A* in Python and move the obstacles
  2. Compare expanded nodes with Dijkstra
  3. Use an overestimating heuristic such as 2h and check whether the path is still shortest
  4. Design fuzzy rules to slow down near obstacles
  5. Discuss the safeguards an AI avoidance system needs before real flight, citing the SITL unit

Record of results

Table 1 Comparing Dijkstra, A* and A* with 2h (8×8 grid, S = (4, 0), G = (4, 7))
Obstacle layoutMethodPath length (steps)Nodes expandedShortest?
Table 2 Fuzzy controller slowing near obstacles
Distance to obstacle e (m)μ nearμ farCommanded speed u (m/s)
Box 1 Protection layers for an AI avoidance system before real flight

Questions

  1. Why does A* expand far fewer nodes than Dijkstra yet find a path of the same length? Explain with f(n) = g(n) + h(n) and the numbers in Table 1.

  2. Was your A* with 2h shortest on every layout? If it was on some layouts, can you conclude that 2h is safe to use?

  3. Compare your fuzzy rules with a single-threshold rule, such as 2 m/s closer than 5 m and 8 m/s beyond. Which suits a camera drone doing survey work better, and why?

  4. From Box 1, which protection layers do not depend on AI at all, and why does a system trained in simulation need such layers before real flight?

Check before you hand in

What to hand in

  • A* code and comparison table
  • Heuristic conclusion
  • Fuzzy rule set
  • Safeguard summary

CLO2 Analyse intelligent control for aircraft. CLO3 Relate robotics to UAS applications. (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