Package me.wobblyyyy.pathfinder.config
Class PathfinderOptions
java.lang.Object
me.wobblyyyy.pathfinder.config.PathfinderOptions
public class PathfinderOptions
extends java.lang.Object
Abstraction of the
PathfinderConfig
class designed to make life a
little bit easier and those parameters a little bit less grouped together.- Since:
- 0.3.0
- Author:
- Colin Robertson
-
Field Summary
Fields Modifier and Type Field Description private PathfinderConfig
config
-
Constructor Summary
Constructors Constructor Description PathfinderOptions()
Create a new PathfinderOptions instance. -
Method Summary
Modifier and Type Method Description PathfinderConfig
build()
void
setDrive(Drive drive)
void
setFieldX(double x)
void
setFieldY(double y)
void
setFollowerType(Followers follower)
void
setGapX(double x)
void
setGapY(double y)
void
setMap(Map map)
void
setOdometry(Odometry odometry)
void
setRobotProfile(RobotProfile profile)
void
setRobotX(double x)
void
setRobotY(double y)
void
setSpeed(double speed)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
config
-
-
Constructor Details
-
PathfinderOptions
public PathfinderOptions()Create a new PathfinderOptions instance.All of the options are configured using the provided methods in this class, NOT right here. You can put these methods in an anonymous class initializer - very epic!
-
-
Method Details
-
setRobotX
public void setRobotX(double x) -
setRobotY
public void setRobotY(double y) -
setFieldX
public void setFieldX(double x) -
setFieldY
public void setFieldY(double y) -
setMap
-
setRobotProfile
-
setOdometry
-
setDrive
-
setFollowerType
-
setSpeed
public void setSpeed(double speed) -
setGapX
public void setGapX(double x) -
setGapY
public void setGapY(double y) -
build
-