Class SmoothPath


  • public class SmoothPath
    extends Path
    A smoothed path
    • Constructor Detail

      • SmoothPath

        public SmoothPath​(double weight,
                          double smoothing,
                          double tolerance,
                          Translation2d... waypoints)
        Create a Smooth Path
        Parameters:
        weight - Weight of smoothing
        smoothing - How smooth the path is
        tolerance - How much the path is allowed to change
        waypoints - 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 meters
        weight - Weight of smoothing
        smoothing - How smooth the path is
        tolerance - How much the path is allowed to change
        waypoints - Path waypoints to follow