mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
[wpimath] Optimize 2nd derivative of quintic splines (#3292)
Co-authored-by: Tyler Veness <calcmogul@gmail.com>
This commit is contained in:
committed by
GitHub
parent
4fcf0b25a1
commit
51eecef2bd
@@ -121,8 +121,8 @@ Trajectory TrajectoryGenerator::GenerateTrajectory(
|
||||
|
||||
std::vector<SplineParameterizer::PoseWithCurvature> points;
|
||||
try {
|
||||
points = SplinePointsFromSplines(
|
||||
SplineHelper::QuinticSplinesFromWaypoints(newWaypoints));
|
||||
points = SplinePointsFromSplines(SplineHelper::OptimizeCurvature(
|
||||
SplineHelper::QuinticSplinesFromWaypoints(newWaypoints)));
|
||||
} catch (SplineParameterizer::MalformedSplineException& e) {
|
||||
ReportError(e.what());
|
||||
return kDoNothingTrajectory;
|
||||
|
||||
Reference in New Issue
Block a user