UAT 461 Autonomous Navigation and Multi-UAV Systems
Worksheet 2 Set R by fix type and check NIS on real data
Objective
Write an EKF that sets R by fix type, check consistency with NIS on real data, and define the supervisor modes
Equipment and materials
- Data from worksheet 1 or sample data prepared by the lecturer
- A computer with Python and the example code at /downloads/uat-461/
- A GNSS receiver for 5 minutes standing still on a point of known coordinates (if available)
Safety
- If standing outdoors, watch for sun and rain and do not block pedestrian paths
- The rest is desk work with no real flight or driving
Steps
- Use the data logged in the module 1 lab (time, fix type, position, wheel distance) and add gyro data if available
- Write the EKF with state [x, y, θ, s] as in Example 2 adapted to read real data; set R by fix type using sigma values measured from 5 minutes standing still
- Compute the mean NIS per fix type against the 95% bounds as in Example 3 and adjust R until every type is inside
- If a tape-measured check point exists, compute the true error there and compare it with the filter's reported sigma
- Try a single R for every type and compare NIS and error with step 3
- Define c and m of the lane on the group's field, compute σ_max and count the share of time in each supervisor mode
Record of results
| Fix type | Samples | East SD (m) | North SD (m) | Sigma used in R (m) |
|---|---|---|---|---|
| Fix type / R setting | Samples n | Mean NIS | 95% bounds | Verdict (low, ok, high) |
|---|---|---|---|---|
| R setting | σ_max (m) | Green (%) | Amber (%) | Red (%) | Mean speed (m/s) |
|---|---|---|---|---|---|
Questions
With one R for every fix type (step 5), was the NIS of single fixes above or below the bounds? What does that say about the filter's confidence, and why can accuracy alone not tell whether the filter is usable?
If the mean NIS of float fixes is 8 while the expected value is 2, by what factor should the float sigma be multiplied? Explain why, then compare with how your group actually adjusted R.
At the tape-measured check point, was the true error within twice the sigma the filter reported? If not, what does that mean?
On your field, what percentage of the time was the supervisor red, and what way out should the robot have when red instead of standing still forever?
Check before you hand in
What to hand in
- Table of sigma by fix type
- EKF code
- NIS table before and after adjusting R against the bounds
- Share of time in each supervisor mode