![]() |
WPILibC++ 2027.0.0-alpha-4
|
Represents a hermite spline of degree 5. More...
#include <wpi/math/spline/QuinticHermiteSpline.hpp>
Public Member Functions | |
| QuinticHermiteSpline (wpi::util::array< double, 3 > xInitialControlVector, wpi::util::array< double, 3 > xFinalControlVector, wpi::util::array< double, 3 > yInitialControlVector, wpi::util::array< double, 3 > yFinalControlVector) | |
| Constructs a quintic hermite spline with the specified control vectors. | |
| Matrixd< 6, 6 > | Coefficients () const override |
| Returns the coefficients matrix. | |
| const ControlVector & | GetInitialControlVector () const override |
| Returns the initial control vector that created this spline. | |
| const ControlVector & | GetFinalControlVector () const override |
| Returns the final control vector that created this spline. | |
| Public Member Functions inherited from wpi::math::Spline< 5 > | |
| constexpr | Spline ()=default |
| constexpr Spline & | operator= (const Spline &)=default |
| virtual constexpr | ~Spline ()=default |
| std::optional< PoseWithCurvature > | GetPoint (double t) const |
| Gets the pose and curvature at some point t on the spline. | |
Additional Inherited Members | |
| Public Types inherited from wpi::math::Spline< 5 > | |
| using | PoseWithCurvature |
| Static Protected Member Functions inherited from wpi::math::Spline< 5 > | |
| static constexpr Eigen::Vector2d | ToVector (const Translation2d &translation) |
| Converts a Translation2d into a vector that is compatible with Eigen. | |
| static constexpr Translation2d | FromVector (const Eigen::Vector2d &vector) |
| Converts an Eigen vector into a Translation2d. | |
Represents a hermite spline of degree 5.
|
inline |
Constructs a quintic hermite spline with the specified control vectors.
Each control vector contains into about the location of the point, its first derivative, and its second derivative.
| xInitialControlVector | The control vector for the initial point in the x dimension. |
| xFinalControlVector | The control vector for the final point in the x dimension. |
| yInitialControlVector | The control vector for the initial point in the y dimension. |
| yFinalControlVector | The control vector for the final point in the y dimension. |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Returns the final control vector that created this spline.
Implements wpi::math::Spline< 5 >.
|
inlineoverridevirtual |
Returns the initial control vector that created this spline.
Implements wpi::math::Spline< 5 >.