Reset Pose From Vision
Command to reset the robot's pose estimation using vision measurements.
This command uses the best available vision pose estimate to reset the robot's odometry. Useful for re-localizing the robot at the start of autonomous or after significant pose drift.
Usage Example:
val resetPoseCommand = ResetPoseFromVision(
swerveDrive = drive,
visionSystem = visionSystem
).apply {
configure {
minTargetsRequired = 2
requireStableEstimate = true
stableReadingsRequired = 5
}
}
// Use in autonomous initialization
SequentialCommandGroup(
resetPoseCommand,
followTrajectoryCommand
).schedule()Content copied to clipboard
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Configures the reset command using a DSL-style configuration block.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Schedule this command when the provided condition is true.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard