Class ResetPoseCommand
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
frc.alotobots.library.subsystems.vision.oculus.commands.ResetPoseCommand
- All Implemented Interfaces:
Sendable
Command that resets the Oculus system's pose estimation to a specified target pose. This is
useful for initializing or correcting the robot's position tracking.
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj2.command.Command
Command.InterruptionBehavior
-
Constructor Summary
ConstructorDescriptionResetPoseCommand
(OculusSubsystem oculus, Pose2d targetPose) Creates a new ResetPoseCommand. -
Method Summary
Methods inherited from class edu.wpi.first.wpilibj2.command.Command
addRequirements, addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineFor, deadlineWith, end, execute, finallyDo, finallyDo, getInterruptionBehavior, getName, getRequirements, getSubsystem, handleInterrupt, hasRequirement, ignoringDisable, initSendable, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, runsWhenDisabled, schedule, setName, setSubsystem, unless, until, withInterruptBehavior, withName, withTimeout, withTimeout
-
Constructor Details
-
ResetPoseCommand
Creates a new ResetPoseCommand.- Parameters:
oculus
- The Oculus subsystem to resettargetPose
- The desired pose to reset to
-
-
Method Details
-
initialize
public void initialize()- Overrides:
initialize
in classCommand
-
isFinished
public boolean isFinished()- Overrides:
isFinished
in classCommand
-