Class Smoothing
- java.lang.Object
-
- io.github.frc5024.purepursuit.util.Smoothing
-
public class Smoothing extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.ArrayList<Translation2d>
smooth(java.util.ArrayList<Translation2d> positions, double weight_data, double weight_smooth, double tolerance)
This is an algorithm taken from team 2168 to smooth paths
-
-
-
Method Detail
-
smooth
public static java.util.ArrayList<Translation2d> smooth(java.util.ArrayList<Translation2d> positions, double weight_data, double weight_smooth, double tolerance)
This is an algorithm taken from team 2168 to smooth paths- Parameters:
positions
- an array list of positions to smoothweight_data
- changes the amount of smoothingweight_smooth
- the larger this is the smoother the path istolerance
- amount the path will change- Returns:
- a smoothed path
-
-