mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[wpimath] Fix docs for pose estimator local measurement models (#4558)
This commit is contained in:
@@ -49,7 +49,8 @@ import java.util.function.BiConsumer;
|
||||
* left, front right, rear left, and rear right wheels.
|
||||
*
|
||||
* <p><strong> y = [x, y, theta]ᵀ </strong> from vision containing x position, y position, and
|
||||
* heading; or <strong> y = [theta]ᵀ </strong> containing gyro heading.
|
||||
* heading; or <strong> y = [theta, s_fl, s_fr, s_rl, s_rr]ᵀ </strong> containing gyro heading,
|
||||
* followed by the distance driven by the front left, front right, rear left, and rear right wheels.
|
||||
*/
|
||||
public class MecanumDrivePoseEstimator {
|
||||
private final UnscentedKalmanFilter<N7, N7, N5> m_observer;
|
||||
|
||||
@@ -43,14 +43,15 @@ import java.util.function.BiConsumer;
|
||||
* <p>The state-space system used internally has the following states (x), inputs (u), and outputs
|
||||
* (y):
|
||||
*
|
||||
* <p><strong> x = [x, y, theta, s_0, ... s_n]ᵀ </strong> in the field coordinate system containing
|
||||
* <p><strong> x = [x, y, theta, s_0, ..., s_n]ᵀ </strong> in the field coordinate system containing
|
||||
* x position, y position, and heading, followed by the distance travelled by each wheel.
|
||||
*
|
||||
* <p><strong> u = [v_x, v_y, omega, v_0, ... v_n]ᵀ </strong> containing x velocity, y velocity, and
|
||||
* angular rate in the field coordinate system, followed by the velocity measured at each wheel.
|
||||
*
|
||||
* <p><strong> y = [x, y, theta]ᵀ </strong> from vision containing x position, y position, and
|
||||
* heading; or <strong> y = [theta]ᵀ </strong> containing gyro heading.
|
||||
* heading; or <strong> y = [theta, s_0, ..., s_n]ᵀ </strong> containing gyro heading, followed by
|
||||
* the distance travelled by each wheel.
|
||||
*/
|
||||
public class SwerveDrivePoseEstimator<States extends Num, Inputs extends Num, Outputs extends Num> {
|
||||
private final UnscentedKalmanFilter<States, Inputs, Outputs> m_observer;
|
||||
|
||||
Reference in New Issue
Block a user