public class PathFollower
Generic class Path follower for time-independent pose reference tracking.
class Path| Constructor and Description |
|---|
PathFollower(NanoClock clock)
Generic
class Path follower for time-independent pose reference tracking. |
PathFollower()
Generic
class Path follower for time-independent pose reference tracking. |
| Modifier and Type | Method and Description |
|---|---|
void |
followPath(Path path)
Follow the given path.
|
NanoClock |
getClock()
clock
|
Pose2d |
getLastError()
Robot pose error computed in the last
PathFollower.update call. |
Path |
getPath() |
boolean |
isFollowing()
Returns true if the current path has finished executing.
|
void |
setLastError(Pose2d p)
Robot pose error computed in the last
PathFollower.update call. |
void |
setPath(Path p) |
void |
update(Pose2d currentPose)
Run a single iteration of the path follower.
|
public PathFollower(NanoClock clock)
Generic class Path follower for time-independent pose reference tracking.
clock - clockclock - clockclass Pathpublic PathFollower()
Generic class Path follower for time-independent pose reference tracking.
class Pathpublic Path getPath()
public void setPath(Path p)
public Pose2d getLastError()
Robot pose error computed in the last PathFollower.update call.
PathFollower.updatepublic void setLastError(Pose2d p)
Robot pose error computed in the last PathFollower.update call.
PathFollower.updatepublic void followPath(Path path)
Follow the given path.
public boolean isFollowing()
Returns true if the current path has finished executing.
public void update(Pose2d currentPose)
Run a single iteration of the path follower.
currentPose - current robot posepublic NanoClock getClock()
clock