public class PurePursuitCommand extends CommandBase
Pathm_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, setSubsystemclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitalongWith, andThen, asProxy, beforeStarting, cancel, deadlineWith, hasRequirement, interruptOn, isScheduled, perpetually, raceWith, runsWhenDisabled, schedule, schedule, whenFinished, withTimeoutpublic PurePursuitCommand(MecanumDrive drive, OdometrySubsystem odometry, Waypoint... waypoints)
public void initialize()
Commandpublic void addWaypoint(Waypoint waypoint)
public void addWaypoints(Waypoint... waypoints)
public void removeWaypointAtIndex(int index)
public void execute()
public void end(boolean interrupted)
Commandinterrupted - whether the command was interrupted/canceledpublic boolean isFinished()
Command