public class PurePursuitCommand extends CommandBase
Path
m_name, m_requirements, m_subsystem
Constructor and Description |
---|
PurePursuitCommand(MecanumDrive drive,
OdometrySubsystem odometry,
Waypoint... waypoints) |
Modifier and Type | Method and Description |
---|---|
void |
addWaypoint(Waypoint waypoint) |
void |
addWaypoints(Waypoint... waypoints) |
void |
end(boolean interrupted)
The action to take when the command ends.
|
void |
execute()
Call this in a loop
|
void |
initialize()
The initial subroutine of a command.
|
boolean |
isFinished()
Whether the command has finished.
|
void |
removeWaypointAtIndex(int index) |
addRequirements, getName, getRequirements, getSubsystem, setName, setSubsystem
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
alongWith, andThen, asProxy, beforeStarting, cancel, deadlineWith, hasRequirement, interruptOn, isScheduled, perpetually, raceWith, runsWhenDisabled, schedule, schedule, whenFinished, withTimeout
public PurePursuitCommand(MecanumDrive drive, OdometrySubsystem odometry, Waypoint... waypoints)
public void initialize()
Command
public void addWaypoint(Waypoint waypoint)
public void addWaypoints(Waypoint... waypoints)
public void removeWaypointAtIndex(int index)
public void execute()
public void end(boolean interrupted)
Command
interrupted
- whether the command was interrupted/canceledpublic boolean isFinished()
Command