Package frc.team_8840_lib.pathing
Class PathMovement
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
edu.wpi.first.wpilibj2.command.CommandBase
frc.team_8840_lib.pathing.PathMovement
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable
public class PathMovement
extends edu.wpi.first.wpilibj2.command.CommandBase
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj2.command.Command
edu.wpi.first.wpilibj2.command.Command.InterruptionBehavior -
Field Summary
Fields inherited from class edu.wpi.first.wpilibj2.command.Command
m_requirements -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRotationGoal(edu.wpi.first.math.geometry.Rotation2d angleGoal) doubleedu.wpi.first.math.geometry.Pose2dedu.wpi.first.math.geometry.Pose2dedu.wpi.first.math.geometry.Pose2dgetPose()edu.wpi.first.math.geometry.Rotation2dbooleanvoidbooleanstatic PathMovementedu.wpi.first.math.geometry.Pose2dvoidreset()voidupdateTimePoints(TimePoint[] points) Methods inherited from class edu.wpi.first.wpilibj2.command.Command
addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, 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
-
Constructor Details
-
PathMovement
-
PathMovement
public PathMovement()
-
-
Method Details
-
loadPath
- Throws:
IOException
-
updateTimePoints
-
addRotationGoal
-
hasRotationGoal
public boolean hasRotationGoal() -
getRotationGoal
public edu.wpi.first.math.geometry.Rotation2d getRotationGoal() -
initialize
public void initialize()- Overrides:
initializein classedu.wpi.first.wpilibj2.command.Command
-
reset
public void reset() -
getLastPose
public edu.wpi.first.math.geometry.Pose2d getLastPose() -
getFinalPose
public edu.wpi.first.math.geometry.Pose2d getFinalPose() -
getPose
public edu.wpi.first.math.geometry.Pose2d getPose() -
getAtTime
public double getAtTime() -
moveToNext
public edu.wpi.first.math.geometry.Pose2d moveToNext() -
getAllPoints
-
isFinished
public boolean isFinished()- Overrides:
isFinishedin classedu.wpi.first.wpilibj2.command.Command
-