[wpimath] Use Odometry for internal state in Pose Estimation (#4668)

This effectively replaces the Unscented Kalman Filter used for Pose Estimation with the Odometry model, and uses a recalculable Kalman gain matrix to update pose estimations whenever a vision measurement is added.

Notably, this change removes the need for the confusing generics used in Java, and the C++ implementation got quite a bit less complex as well.

Co-authored-by: Tyler Veness <calcmogul@gmail.com>
This commit is contained in:
Jordan McMichael
2022-12-02 11:36:10 -05:00
committed by GitHub
parent 68dba92630
commit e22d8cc343
35 changed files with 2288 additions and 1884 deletions

View File

@@ -134,6 +134,16 @@ public final class TimeInterpolatableBuffer<T> {
}
}
/**
* Grant access to the internal sample buffer. Used in Pose Estimation to replay odometry inputs
* stored within this buffer.
*
* @return The internal sample buffer.
*/
public NavigableMap<Double, T> getInternalBuffer() {
return m_pastSnapshots;
}
public interface InterpolateFunction<T> {
/**
* Return the interpolated value. This object is assumed to be the starting position, or lower