UAT 314 Automation, Robotics and Intelligent Control Systems
Worksheet 4 Planning a path and testing in simulation
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
- Implement grid A* in Python and move the obstacles
- Compare expanded nodes with Dijkstra
- Use an overestimating heuristic such as 2h and check whether the path is still shortest
- Design fuzzy rules to slow down near obstacles
- Discuss the safeguards an AI avoidance system needs before real flight, citing the SITL unit
Record of results
| Obstacle layout | Method | Path length (steps) | Nodes expanded | Shortest? |
|---|---|---|---|---|
| Distance to obstacle e (m) | μ near | μ far | Commanded speed u (m/s) |
|---|---|---|---|
Questions
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.
Was your A* with 2h shortest on every layout? If it was on some layouts, can you conclude that 2h is safe to use?
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?
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