SwerveDrive4Odometry3d
- class wpimath.SwerveDrive4Odometry3d(kinematics: wpimath._wpimath.SwerveDrive4Kinematics, gyroAngle: wpimath._wpimath.Rotation3d, modulePositions: Tuple[wpimath._wpimath.SwerveModulePosition, wpimath._wpimath.SwerveModulePosition, wpimath._wpimath.SwerveModulePosition, wpimath._wpimath.SwerveModulePosition], initialPose: wpimath._wpimath.Pose3d = Pose3d(Translation3d(x=0.000000, y=0.000000, z=0.000000), Rotation3d(x=0.000000, y=0.000000, z=0.000000)))
Bases:
SwerveDrive4Odometry3dBaseClass for swerve drive odometry. Odometry allows you to track the robot’s position on the field over a course of a match using readings from your swerve drive encoders and swerve azimuth encoders.
Teams can use odometry during the autonomous period for complex tasks like path following. Furthermore, odometry can be used for latency compensation when using computer-vision systems.