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
    Constructor
    Description
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    addRotationGoal(edu.wpi.first.math.geometry.Rotation2d angleGoal)
     
     
    double
     
    edu.wpi.first.math.geometry.Pose2d
     
    edu.wpi.first.math.geometry.Pose2d
     
    edu.wpi.first.math.geometry.Pose2d
     
    edu.wpi.first.math.geometry.Rotation2d
     
    boolean
     
    void
     
    boolean
     
    loadPath(Path path)
     
    edu.wpi.first.math.geometry.Pose2d
     
    void
     
    void
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PathMovement

      public PathMovement(TimePoint[] points)
    • PathMovement

      public PathMovement()
  • Method Details

    • loadPath

      public static PathMovement loadPath(Path path) throws IOException
      Throws:
      IOException
    • updateTimePoints

      public void updateTimePoints(TimePoint[] points)
    • addRotationGoal

      public PathMovement addRotationGoal(edu.wpi.first.math.geometry.Rotation2d angleGoal)
    • hasRotationGoal

      public boolean hasRotationGoal()
    • getRotationGoal

      public edu.wpi.first.math.geometry.Rotation2d getRotationGoal()
    • initialize

      public void initialize()
      Overrides:
      initialize in class edu.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

      public TimePoint[] getAllPoints()
    • isFinished

      public boolean isFinished()
      Overrides:
      isFinished in class edu.wpi.first.wpilibj2.command.Command