mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Refactor TrajectoryGenerator (#1972)
This commit is contained in:
committed by
Peter Johnson
parent
73a30182c3
commit
9440edf2b5
@@ -29,8 +29,12 @@ class CubicHermiteSplineTest : public ::testing::Test {
|
||||
const auto start = std::chrono::high_resolution_clock::now();
|
||||
|
||||
// Generate and parameterize the spline.
|
||||
|
||||
const auto [startCV, endCV] =
|
||||
SplineHelper::CubicControlVectorsFromWaypoints(a, waypoints, b);
|
||||
|
||||
const auto splines =
|
||||
SplineHelper::CubicSplinesFromWaypoints(a, waypoints, b);
|
||||
SplineHelper::CubicSplinesFromControlVectors(startCV, waypoints, endCV);
|
||||
std::vector<Spline<3>::PoseWithCurvature> poses;
|
||||
|
||||
poses.push_back(splines[0].GetPoint(0.0));
|
||||
|
||||
Reference in New Issue
Block a user