WPILibC++ 2024.3.2
|
Represents a hermite spline of degree 5. More...
#include <frc/spline/QuinticHermiteSpline.h>
Public Member Functions | |
QuinticHermiteSpline (wpi::array< double, 3 > xInitialControlVector, wpi::array< double, 3 > xFinalControlVector, wpi::array< double, 3 > yInitialControlVector, wpi::array< double, 3 > yFinalControlVector) | |
Constructs a quintic hermite spline with the specified control vectors. More... | |
Matrixd< 6, 6 > | Coefficients () const override |
Returns the coefficients matrix. More... | |
const ControlVector & | GetInitialControlVector () const override |
Returns the initial control vector that created this spline. More... | |
const ControlVector & | GetFinalControlVector () const override |
Returns the final control vector that created this spline. More... | |
Public Member Functions inherited from frc::Spline< 5 > | |
Spline ()=default | |
Spline (const Spline &)=default | |
Spline (Spline &&)=default | |
Spline & | operator= (const Spline &)=default |
Spline & | operator= (Spline &&)=default |
virtual | ~Spline ()=default |
PoseWithCurvature | GetPoint (double t) const |
Gets the pose and curvature at some point t on the spline. More... | |
virtual Matrixd< 6, Degree+1 > | Coefficients () const=0 |
Returns the coefficients of the spline. More... | |
virtual const ControlVector & | GetInitialControlVector () const=0 |
Returns the initial control vector that created this spline. More... | |
virtual const ControlVector & | GetFinalControlVector () const=0 |
Returns the final control vector that created this spline. More... | |
Additional Inherited Members | |
Public Types inherited from frc::Spline< 5 > | |
using | PoseWithCurvature = std::pair< Pose2d, units::curvature_t > |
Static Protected Member Functions inherited from frc::Spline< 5 > | |
static Eigen::Vector2d | ToVector (const Translation2d &translation) |
Converts a Translation2d into a vector that is compatible with Eigen. More... | |
static Translation2d | FromVector (const Eigen::Vector2d &vector) |
Converts an Eigen vector into a Translation2d. More... | |
Represents a hermite spline of degree 5.
frc::QuinticHermiteSpline::QuinticHermiteSpline | ( | wpi::array< double, 3 > | xInitialControlVector, |
wpi::array< double, 3 > | xFinalControlVector, | ||
wpi::array< double, 3 > | yInitialControlVector, | ||
wpi::array< double, 3 > | yFinalControlVector | ||
) |
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 frc::Spline< 5 >.
|
inlineoverridevirtual |
Returns the initial control vector that created this spline.
Implements frc::Spline< 5 >.