public class PathGenerator
extends java.lang.Object
| Constructor and Description |
|---|
PathGenerator(double spacing) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPoint(Vector point) |
void |
addPoints(Vector... points) |
Path |
generatePath()
Generates a not-reversed path
|
Path |
generatePath(boolean reverse) |
void |
setSmoothingParameters(double a,
double b,
double tolerance)
Smooths the path using gradient descent
|
void |
setVelocities(double maxVel,
double maxAccel,
double maxVelk)
Initializes the path
|
public void setSmoothingParameters(double a,
double b,
double tolerance)
a - 1-bb - smoothing factor (higher = more smooth)tolerance - convergence tolerance amount (higher = less smoothing)public void setVelocities(double maxVel,
double maxAccel,
double maxVelk)
maxVel - maximum robot velocitymaxAccel - maximum robot accelerationmaxVelk - maximum turning velocity (between 1-5)public void addPoint(Vector point)
public void addPoints(Vector... points)
public Path generatePath()
public Path generatePath(boolean reverse)