uci-uav-forge / uavf_2024

MIT License
2 stars 0 forks source link

Fix localization #190

Closed EricPedley closed 1 month ago

EricPedley commented 1 month ago

Summary

After testing localization on IRL data we found out it was totally broken, so this fixes it. The main problems were that the code wrongly assumed where the camera was facing when the rotation given was the identity, and which axis the ground was on, and didn't account for the fact that the gimbal's measured pitch isn't relative to the drone's body frame, it's relative to the world frame.

Test Plan

  1. Download data using link at the top of tests/imaging/localization_visualization.ipynb and put it in correct folder like this image
  2. Run the notebook and manually inspect output
  3. run imaging_tests.sh and verify the tests pass, except for the two that have not been passing this whole year.