utils::QuinticPolynomialBase< T > Struct Template Reference

Quintic polynomial. More...

#include <lipm_walking/utils/polynomials.h>

Inheritance diagram for utils::QuinticPolynomialBase< T >:
utils::PolynomialBase< T > utils::QuinticPolynomial< T > utils::QuinticHermitePolynomial< T >

Public Member Functions

EIGEN_MAKE_ALIGNED_OPERATOR_NEW QuinticPolynomialBase (const T &C0, const T &C1, const T &C2, const T &C3, const T &C4, const T &C5)
 Build a new curve from its monomial vector coefficients. More...
 
pos (double t) const
 Get the value of the polynomial at time t. More...
 
vel (double t) const
 Get the value of the first-order derivative (velocity) at time t. More...
 
accel (double t) const
 Get the value of the second-order derivative (acceleration) at time t. More...
 
- Public Member Functions inherited from utils::PolynomialBase< T >
tangent (double t) const
 Get the value of the tangent vector at time t. More...
 
double arcLength (double t_start, double t_end) const
 Compute the arc length between two points of the polynomial curve. More...
 
double arcLengthInverse (double t_start, double length, double t_guess=-1.) const
 Inverse of the arc length function. More...
 

Protected Attributes

C0_
 
C1_
 
C2_
 
C3_
 
C4_
 
C5_
 

Detailed Description

template<typename T>
struct utils::QuinticPolynomialBase< T >

Quintic polynomial.

Definition at line 421 of file polynomials.h.

Constructor & Destructor Documentation

template<typename T>
EIGEN_MAKE_ALIGNED_OPERATOR_NEW utils::QuinticPolynomialBase< T >::QuinticPolynomialBase ( const T &  C0,
const T &  C1,
const T &  C2,
const T &  C3,
const T &  C4,
const T &  C5 
)
inline

Build a new curve from its monomial vector coefficients.

Parameters
C0Zero-order coefficient.
C1First-order coefficient.
C2Second-order coefficient.
C3Third-order coefficient.
C4Fourth-order coefficient.
C5Fifth-order coefficient.

Definition at line 440 of file polynomials.h.

Member Function Documentation

template<typename T>
T utils::QuinticPolynomialBase< T >::accel ( double  t) const
inlinevirtual

Get the value of the second-order derivative (acceleration) at time t.

Parameters
tValue of the polynomial argument.

Implements utils::PolynomialBase< T >.

Definition at line 470 of file polynomials.h.

template<typename T>
T utils::QuinticPolynomialBase< T >::pos ( double  t) const
inlinevirtual

Get the value of the polynomial at time t.

Parameters
tValue of the polynomial argument.

Implements utils::PolynomialBase< T >.

Definition at line 450 of file polynomials.h.

template<typename T>
T utils::QuinticPolynomialBase< T >::vel ( double  t) const
inlinevirtual

Get the value of the first-order derivative (velocity) at time t.

Parameters
tValue of the polynomial argument.

Implements utils::PolynomialBase< T >.

Definition at line 460 of file polynomials.h.

Member Data Documentation

template<typename T>
T utils::QuinticPolynomialBase< T >::C0_
protected

Definition at line 476 of file polynomials.h.

template<typename T>
T utils::QuinticPolynomialBase< T >::C1_
protected

Definition at line 477 of file polynomials.h.

template<typename T>
T utils::QuinticPolynomialBase< T >::C2_
protected

Definition at line 478 of file polynomials.h.

template<typename T>
T utils::QuinticPolynomialBase< T >::C3_
protected

Definition at line 479 of file polynomials.h.

template<typename T>
T utils::QuinticPolynomialBase< T >::C4_
protected

Definition at line 480 of file polynomials.h.

template<typename T>
T utils::QuinticPolynomialBase< T >::C5_
protected

Definition at line 481 of file polynomials.h.