uci-uav-forge / uavf_2024

Flight software for Student Unmanned Aerial Systems 2024 competition
MIT License
4 stars 0 forks source link

Use Kalman Filter to fuse DroneID and Vision information to object's 3D state in ENU frame #173

Open Vince-C156 opened 7 months ago

Vince-C156 commented 7 months ago

Use Drone ID info docs and camera information to get the best estimate of the object of interest.

EricPedley commented 7 months ago

Just making notes for myself on this thread: Right now I'm using a very simple test case where the drone just stays in the same spot and gets a single bounding box every frame in the same spot and size. The goal is for the filter to just converge on a state where the other drone is the appropriate size and distance away. When I had a linear motion model in the UKF, the covariance of the position was going up to really high numbers like in the hundreds of meters, but without the motion model, the covariance stays around 1-2 meters.

With motion model: image

Without motion model: image

EricPedley commented 7 months ago

After switching to use a particle filter (still one per track), the covariance actually converges even when adding a motion model, but it isn't always converging the position to (0,0). The filter shouldn't be doing this for the simple test-case I'm running so there's still more work to do. At first, the particle filter had similarly bad performance until I removed the part that ran the initialization step (uniform distribution of radii) every update step.

image

EricPedley commented 7 months ago

At this point I've completely removed all assumptions that were hand-tuned to this specific test-case and the filter still converges to a value that's physically feasible so I think I can start expanding test cases now. Although, for the one I already have I need to change the definition of success because with all assumptions off, the filter also accounts for the possibility that the drone is smaller and circling the origin instead of just stationary at the origin.

Remaining TODOs:

Vince-C156 commented 7 months ago

suiiiiiiiiiii