UAT 366 Indoor Autonomous and Multi-Unmanned Aircraft Systems
Worksheet 2 Fusion and loop closure
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
- Log IMU and UWB position while flying along the lab corridor
- Run Example 1 on the real data; tune SIGMA_A and SIGMA_Z and note effects on velocity and variance
- Compare with EKF2 in the PX4 log and explain differences
- Fly a closed loop on VIO, measure closure error and correct the path with Example 2
- Compare with the lab SLAM system using the UAT 322 trajectory evaluation
Record of results
| 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 |
|---|---|---|---|---|---|
| Quantity compared | Group filter | EKF2 in log | SLAM system | Reason for the difference |
|---|---|---|---|---|
| Node | Cumulative distance (m) | Odometry position x, y (m) | Fraction s/s_total | Corrected position x, y (m) |
|---|---|---|---|---|
Questions
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?
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.
From Table 3, what percentage of the distance is the loop-closure error, which node moves the most, and why?
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