Class SmoothPath
- java.lang.Object
-
- io.github.frc5024.purepursuit.pathgen.Path
-
- io.github.frc5024.purepursuit.pathgen.SmoothPath
-
public class SmoothPath extends Path
A smoothed path
-
-
Field Summary
-
Fields inherited from class io.github.frc5024.purepursuit.pathgen.Path
name, pathGenStartTimeMs, pathGenTimeMs, points, waypoints
-
-
Constructor Summary
Constructors Constructor Description SmoothPath(double spacing, double weight, double smoothing, double tolerance, Translation2d... waypoints)Create a Smooth PathSmoothPath(double weight, double smoothing, double tolerance, Translation2d... waypoints)Create a Smooth Path
-
Method Summary
-
Methods inherited from class io.github.frc5024.purepursuit.pathgen.Path
beginTimingGeneration, getPathVisualization, getPoses, saveAndLogGenerationTime, toString
-
-
-
-
Constructor Detail
-
SmoothPath
public SmoothPath(double weight, double smoothing, double tolerance, Translation2d... waypoints)Create a Smooth Path- Parameters:
weight- Weight of smoothingsmoothing- How smooth the path istolerance- How much the path is allowed to changewaypoints- Path waypoints to follow
-
SmoothPath
public SmoothPath(double spacing, double weight, double smoothing, double tolerance, Translation2d... waypoints)Create a Smooth Path- Parameters:
spacing- Amount of space between "inner" points in metersweight- Weight of smoothingsmoothing- How smooth the path istolerance- How much the path is allowed to changewaypoints- Path waypoints to follow
-
-