Splines
A spline is a smooth curve through your waypoints. EasyStack uses quintic Hermite splines, which match the position, the direction and the curvature at each waypoint. TrajectoryGenerator uses them internally, so most teams never touch them directly.
#QuinticHermiteSpline
A spline between two poses:
QuinticHermiteSpline spline = QuinticHermiteSpline.fromPoses(
new Pose2d(0, 0, 0),
new Pose2d(36, 24, Math.toRadians(45)));
PoseWithCurvature point = spline.getPoint(0.5);fromPoses(start, end): builds the spline from two poses.getPoint(t): the point at t between 0 and 1.QuinticHermiteSpline(xInitial, xFinal, yInitial, yFinal): builds it from the x and y coefficients, for advanced use.
#PoseWithCurvature
A point of the curve. It has a pose and a curvature. The curvature is how sharply the path bends there. A straight line has a curvature of zero.
#SplineParameterizer
Samples a spline into a list of points. The three tolerances decide how many points you get:
List<PoseWithCurvature> points = SplineParameterizer.parameterize(
spline, 0.5, 0.05, Math.toRadians(5));- maxDx: the maximum distance between two points on the x axis.
- maxDy: the maximum distance on the y axis.
- maxDtheta: the maximum change of heading between two points, in radians.
Smaller values give a smoother path with more points.
#Time Parameterization
TrajectoryParameterizer.timeParameterize turns the list of points into a trajectory with time, velocity and acceleration. It respects the maximum velocity and acceleration of the config and every constraint. TrajectoryGenerator calls it for you.
Last updated 2026-11-16