UAT 461 Autonomous Navigation and Multi-UAV Systems
Worksheet 4 Dodge, smooth and track in simulation
Objective
Test a local planner, VFH, a velocity obstacle, a minimum-snap trajectory and three trackers in a 2D simulation
Equipment and materials
- A computer with Python (numpy, scipy) and the example code at /downloads/uat-461/
- The group's simulated scene with an obstacle pile and a walker
Safety
- Desk and simulator work with no real flight or driving
- Use assumed data or data the group recorded; do not use data of outsiders
Steps
- Build a 2D simulated lane with an obstacle pile, a global path with at least two waypoints and a walker who appears after a few seconds
- Adapt Example 1: run DWA straight and along the global path; change the three score weights and report clearance and time
- Feed one scan to the Example 2 code, change the threshold and minimum valley width, and report the chosen direction
- Apply Example 3 to the walker's position and speed, draw the velocity obstacle and state the closest safe velocity with and without turning
- Run Example 4 on the group's waypoints and limits and report the stretch factor, the final time and the binding limit
- Run Example 5 with the group robot's wheelbase, speed and steering lag; report RMS and largest error and recommend one controller
Record of results
| Run | Weights α β γ | Result (reached or stuck) and time (s) | Minimum clearance (m) | Peak acceleration (m/s²) |
|---|---|---|---|---|
| Threshold | Minimum width (deg) | Blocked bins (of 72) | Chosen direction (deg) | Away from the target (deg) |
|---|---|---|---|---|
| Controller | Settles within 5 cm (s) | Straight RMS (m) | Straight largest (m) | Bend RMS (m) | Bend largest (m) |
|---|---|---|---|---|---|
Questions
Why did the potential field command accelerations of tens of m/s² and get stuck at the U-shaped pile, while DWA never exceeded its own limit yet still got stuck when driving straight at the goal?
From the velocity obstacle of the walker in your scene, what are the closest safe velocities with and without turning? Why is turning behind the walker better than turning away from where the walker is now?
What stretch factor did your group get, which limit binds, and would the binding limit change if the acceleration limit were halved? Show the calculation.
From Table 3, which controller does your group recommend for its robot? Give reasons from the bend errors and the information that controller needs.
Check before you hand in
What to hand in
- Table of three DWA runs
- Histogram plot and the chosen direction
- Velocity-obstacle plot and safe velocity
- Stretch factor and the RMS and largest-error table for three controllers