36template <
size_t NumModules>
39 wpi::array<SwerveModulePosition, NumModules>> {
64 modulePositions, initialPose,
65 {0.1, 0.1, 0.1, 0.1}, {0.9, 0.9, 0.9, 0.9}} {
92 kinematics, m_odometryImpl, stateStdDevs, visionMeasurementStdDevs),
93 m_odometryImpl{kinematics, gyroAngle, modulePositions, initialPose} {
94 this->ResetPose(initialPose);
102 SwerveDrivePoseEstimator3d<4>;
#define WPILIB_DLLEXPORT
Definition SymbolExports.h:36
#define EXPORT_TEMPLATE_DECLARE(export)
Definition SymbolExports.hpp:92
Represents a 3D pose containing translational and rotational elements.
Definition Pose3d.h:28
This class wraps odometry to fuse latency-compensated vision measurements with encoder measurements.
Definition PoseEstimator3d.h:49
A rotation in a 3D coordinate frame represented by a quaternion.
Definition Rotation3d.h:29
Helper class that converts a chassis velocity (dx, dy, and dtheta components) into individual module ...
Definition SwerveDriveKinematics.h:54
Class for swerve drive odometry.
Definition SwerveDriveOdometry3d.h:35
This class wraps Swerve Drive Odometry to fuse latency-compensated vision measurements with swerve dr...
Definition SwerveDrivePoseEstimator3d.h:39
SwerveDrivePoseEstimator3d(SwerveDriveKinematics< NumModules > &kinematics, const Rotation3d &gyroAngle, const wpi::array< SwerveModulePosition, NumModules > &modulePositions, const Pose3d &initialPose)
Constructs a SwerveDrivePoseEstimator3d with default standard deviations for the model and vision mea...
Definition SwerveDrivePoseEstimator3d.h:58
SwerveDrivePoseEstimator3d(SwerveDriveKinematics< NumModules > &kinematics, const Rotation3d &gyroAngle, const wpi::array< SwerveModulePosition, NumModules > &modulePositions, const Pose3d &initialPose, const wpi::array< double, 4 > &stateStdDevs, const wpi::array< double, 4 > &visionMeasurementStdDevs)
Constructs a SwerveDrivePoseEstimator3d.
Definition SwerveDrivePoseEstimator3d.h:85
This class is a wrapper around std::array that does compile time size checking.
Definition array.h:26