public class Drive
Abstraction for generic robot drive motion and localization. Robot poses are specified in a coordinate system with positive x pointing forward, positive y pointing left, and positive heading measured counter-clockwise from the x-axis.
| Constructor and Description |
|---|
Drive()
Abstraction for generic robot drive motion and localization. Robot poses are specified in a coordinate system with
positive x pointing forward, positive y pointing left, and positive heading measured counter-clockwise from the
x-axis.
|
| Modifier and Type | Method and Description |
|---|---|
Localizer |
getLocalizer()
Localizer used to determine the evolution of
Drive.getPoseEstimate. |
Pose2d |
getPoseEstimate()
The robot's current pose estimate.
|
void |
setLocalizer(Localizer p)
Localizer used to determine the evolution of
Drive.getPoseEstimate. |
void |
setPoseEstimate(Pose2d value)
The robot's current pose estimate.
|
void |
setVelocity(Pose2d poseVelocity)
Sets the poseVelocity of the robot.
|
void |
updatePoseEstimate()
Updates
Drive.getPoseEstimate with the most recent positional change. |
public Drive()
Abstraction for generic robot drive motion and localization. Robot poses are specified in a coordinate system with positive x pointing forward, positive y pointing left, and positive heading measured counter-clockwise from the x-axis.
public Localizer getLocalizer()
Localizer used to determine the evolution of Drive.getPoseEstimate.
Drive.getPoseEstimatepublic void setLocalizer(Localizer p)
Localizer used to determine the evolution of Drive.getPoseEstimate.
Drive.getPoseEstimatepublic Pose2d getPoseEstimate()
The robot's current pose estimate.
public void setPoseEstimate(Pose2d value)
The robot's current pose estimate.
public void updatePoseEstimate()
Updates Drive.getPoseEstimate with the most recent positional change.
Drive.getPoseEstimatepublic void setVelocity(Pose2d poseVelocity)
Sets the poseVelocity of the robot.