WPILibC++ 2025.2.1
Loading...
Searching...
No Matches
frc::QuinticHermiteSpline Class Reference

Represents a hermite spline of degree 5. More...

#include <frc/spline/QuinticHermiteSpline.h>

Inheritance diagram for frc::QuinticHermiteSpline:
frc::Spline< 5 >

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.
 
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 frc::Spline< 5 >
constexpr Spline ()=default
 
constexpr Spline (const Spline &)=default
 
constexpr Spline (Spline &&)=default
 
constexpr Splineoperator= (const Spline &)=default
 
constexpr Splineoperator= (Spline &&)=default
 
virtual constexpr ~Spline ()=default
 
std::optional< PoseWithCurvatureGetPoint (double t) const
 Gets the pose and curvature at some point t on the spline.
 

Additional Inherited Members

- Public Types inherited from frc::Spline< 5 >
using PoseWithCurvature
 
- Static Protected Member Functions inherited from frc::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.
 

Detailed Description

Represents a hermite spline of degree 5.

Constructor & Destructor Documentation

◆ QuinticHermiteSpline()

frc::QuinticHermiteSpline::QuinticHermiteSpline ( wpi::array< double, 3 > xInitialControlVector,
wpi::array< double, 3 > xFinalControlVector,
wpi::array< double, 3 > yInitialControlVector,
wpi::array< double, 3 > yFinalControlVector )
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.

Parameters
xInitialControlVectorThe control vector for the initial point in the x dimension.
xFinalControlVectorThe control vector for the final point in the x dimension.
yInitialControlVectorThe control vector for the initial point in the y dimension.
yFinalControlVectorThe control vector for the final point in the y dimension.

Member Function Documentation

◆ Coefficients()

Matrixd< 6, 6 > frc::QuinticHermiteSpline::Coefficients ( ) const
inlineoverridevirtual

Returns the coefficients matrix.

Returns
The coefficients matrix.

Implements frc::Spline< 5 >.

◆ GetFinalControlVector()

const ControlVector & frc::QuinticHermiteSpline::GetFinalControlVector ( ) const
inlineoverridevirtual

Returns the final control vector that created this spline.

Returns
The final control vector that created this spline.

Implements frc::Spline< 5 >.

◆ GetInitialControlVector()

const ControlVector & frc::QuinticHermiteSpline::GetInitialControlVector ( ) const
inlineoverridevirtual

Returns the initial control vector that created this spline.

Returns
The initial control vector that created this spline.

Implements frc::Spline< 5 >.


The documentation for this class was generated from the following file: