- 3.0.2 optimal control module.
|
The linear spline implementation. More...
#include <LinearSpliner.h>
Public Types | |
typedef std::vector< vector_t, Eigen::aligned_allocator< vector_t > > | vector_array_t |
typedef Eigen::Matrix< SCALAR, T::DIM, T::DIM > | matrix_t |
Public Types inherited from ct::optcon::SplinerBase< T, SCALAR > | |
typedef T | vector_t |
typedef Eigen::Matrix< SCALAR, T::DIM, T::DIM > | matrix_t |
typedef std::vector< vector_t, Eigen::aligned_allocator< vector_t > > | vector_array_t |
Public Member Functions | |
LinearSpliner ()=delete | |
LinearSpliner (std::shared_ptr< tpl::TimeGrid< SCALAR >> grid) | |
Custom constructor. More... | |
~LinearSpliner () override=default | |
void | computeSpline (const vector_array_t &points) override |
Updates the vector on the shots. More... | |
vector_t | evalSpline (const SCALAR time, const size_t shotIdx) override |
Depending on the spline type, this method evaluates the control input between the shots. More... | |
vector_t | splineDerivative_t (const SCALAR time, const size_t shotIdx) const override |
Returns the spline derivatives with respect to time. More... | |
vector_t | splineDerivative_h_i (const SCALAR time, const size_t shotIdx) const override |
Returns the spline derivatives with respect to the time segment between the shots. More... | |
matrix_t | splineDerivative_q_i (const SCALAR time, const size_t shotIdx) const override |
Return the spline derivative with respect to the control input at shot i. More... | |
matrix_t | splineDerivative_q_iplus1 (const SCALAR time, const size_t shotIdx) const override |
Returns the spline derivative with respect to the control input at shot i+1. More... | |
Public Member Functions inherited from ct::optcon::SplinerBase< T, SCALAR > | |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW | SplinerBase ()=default |
Default constructor. More... | |
virtual | ~SplinerBase ()=default |
Destructor. More... | |
Public Attributes | |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef T | vector_t |
The linear spline implementation.
T | The vector type to be splined |
typedef std::vector<vector_t, Eigen::aligned_allocator<vector_t> > ct::optcon::LinearSpliner< T, SCALAR >::vector_array_t |
typedef Eigen::Matrix<SCALAR, T::DIM, T::DIM> ct::optcon::LinearSpliner< T, SCALAR >::matrix_t |
|
delete |
|
inline |
Custom constructor.
[in] | grid | The dms timegrid |
References grid(), and ct::optcon::LinearSpliner< T, SCALAR >::~LinearSpliner().
|
overridedefault |
Referenced by ct::optcon::LinearSpliner< T, SCALAR >::LinearSpliner().
|
inlineoverridevirtual |
Updates the vector on the shots.
[in] | points | Updated vector array |
Implements ct::optcon::SplinerBase< T, SCALAR >.
|
inlineoverridevirtual |
Depending on the spline type, this method evaluates the control input between the shots.
[in] | time | The evaluation time |
[in] | shotIdx | The shot number |
Implements ct::optcon::SplinerBase< T, SCALAR >.
|
inlineoverridevirtual |
Returns the spline derivatives with respect to time.
[in] | time | The evaluation time |
[in] | shotIdx | The shot number |
Implements ct::optcon::SplinerBase< T, SCALAR >.
|
inlineoverridevirtual |
Returns the spline derivatives with respect to the time segment between the shots.
[in] | time | The evaluation time |
[in] | shotIdx | The shot number |
Implements ct::optcon::SplinerBase< T, SCALAR >.
|
inlineoverridevirtual |
Return the spline derivative with respect to the control input at shot i.
[in] | time | The evaluation time |
[in] | shotIdx | The shot number |
Implements ct::optcon::SplinerBase< T, SCALAR >.
|
inlineoverridevirtual |
Returns the spline derivative with respect to the control input at shot i+1.
[in] | time | The evaluation time |
[in] | shotIdx | The shot number |
Implements ct::optcon::SplinerBase< T, SCALAR >.
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef T ct::optcon::LinearSpliner< T, SCALAR >::vector_t |