-
public class DeadWheelsKinematics
-
-
Constructor Summary
Constructors Constructor Description DeadWheelsKinematics(ILogger logger, DeadWheelsKinematicsParams params)Constructs a new instance of the DeadWheelsKinematics class.
-
Method Summary
Modifier and Type Method Description PoseAndVelocitygetPositionVelocity()Gets the current position and velocity. voidupdate(int positionLeft, int positionRight, int positionCenter)Updates the position and velocity based on the new encoder positions. voidupdateAndReset(int positionLeft, int positionRight, int positionCenter, Pose2D pose)Updates the encoder positions and resets the current pose and velocity values. -
-
Constructor Detail
-
DeadWheelsKinematics
DeadWheelsKinematics(ILogger logger, DeadWheelsKinematicsParams params)
Constructs a new instance of the DeadWheelsKinematics class.
-
-
Method Detail
-
getPositionVelocity
PoseAndVelocity getPositionVelocity()
Gets the current position and velocity.
-
update
void update(int positionLeft, int positionRight, int positionCenter)
Updates the position and velocity based on the new encoder positions. This method should be called periodicallywith the most recent encoder positions.
- Parameters:
positionLeft- encoder position left.positionRight- encoder position right.positionCenter- encoder position center.
-
updateAndReset
void updateAndReset(int positionLeft, int positionRight, int positionCenter, Pose2D pose)
Updates the encoder positions and resets the current pose and velocity values.
- Parameters:
positionLeft- encoder position left.positionRight- encoder position right.positionCenter- encoder position center.pose- new tracker pose.
-
-
-
-