UAT 366 Indoor Autonomous and Multi-Unmanned Aircraft Systems

Worksheet 2 Fusion and loop closure

Lab 12 hAssesses CLO1

Objective

Fuse IMU and UWB with a Kalman filter on real data, compare with EKF2 and correct drift with loop closure

Equipment and materials

  • PX4 training drone with UWB and VIO
  • The lab's SLAM system (e.g. ORB-SLAM3)
  • Python and the module 2 example code
  • Trajectory evaluation tools from UAT 322

Safety

  • Fly in the netted room at low speed with a pilot ready to take over
  • No people in the flight area
  • Data analysis is desk work

Steps

  1. Log IMU and UWB position while flying along the lab corridor
  2. Run Example 1 on the real data; tune SIGMA_A and SIGMA_Z and note effects on velocity and variance
  3. Compare with EKF2 in the PX4 log and explain differences
  4. Fly a closed loop on VIO, measure closure error and correct the path with Example 2
  5. Compare with the lab SLAM system using the UAT 322 trajectory evaluation

Record of results

Table 1 Effect of SIGMA_A and SIGMA_Z on the filter
SIGMA_A (m/s²)SIGMA_Z (m)Velocity estimate at 1 s / 3 s (m/s)Final sigma_p (m)Final sigma_v (m/s)Observation
Table 2 Group filter versus EKF2 and the lab SLAM system
Quantity comparedGroup filterEKF2 in logSLAM systemReason for the difference
Table 3 Path correction by loop closure
NodeCumulative distance (m)Odometry position x, y (m)Fraction s/s_totalCorrected position x, y (m)

Questions

  1. From Table 1, when SIGMA_Z is set below the real UWB error, what sigma_p does the filter report, and why is that dangerous even if the plot looks smooth?

  2. The filter never measures velocity directly. How does its velocity estimate approach the true value? Use the 1 s and 3 s values in Table 1.

  3. From Table 3, what percentage of the distance is the loop-closure error, which node moves the most, and why?

  4. If the system matched a loop closure to the wrong place, what would happen to the path in Table 3, and how could the group check before trusting the result?

Check before you hand in

What to hand in

  • Log files
  • Filter plots at different settings versus EKF2
  • Loop closure error before and after correction
  • Comparison table with the SLAM system

CLO1 Configure navigation in GNSS-denied areas. (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