![]() |
- 3.0.2 optimal control module.
|
The spline implementation for the zero order hold spliner. More...
#include <ZeroOrderHoldSpliner.h>
Public Types | |
| typedef Eigen::Matrix< SCALAR, T::DIM, T::DIM > | matrix_t |
| typedef std::vector< vector_t, Eigen::aligned_allocator< vector_t > > | vector_array_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 | |
| ZeroOrderHoldSpliner ()=delete | |
| ZeroOrderHoldSpliner (std::shared_ptr< tpl::TimeGrid< SCALAR >> grid) | |
| Custom constructor. More... | |
| ~ZeroOrderHoldSpliner () 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 spline implementation for the zero order hold spliner.
| T | The vector type to be splined |
| typedef Eigen::Matrix<SCALAR, T::DIM, T::DIM> ct::optcon::ZeroOrderHoldSpliner< T, SCALAR >::matrix_t |
| typedef std::vector<vector_t, Eigen::aligned_allocator<vector_t> > ct::optcon::ZeroOrderHoldSpliner< T, SCALAR >::vector_array_t |
|
delete |
|
inline |
Custom constructor.
| [in] | grid | The DMS timegrid |
References grid(), and ct::optcon::ZeroOrderHoldSpliner< T, SCALAR >::~ZeroOrderHoldSpliner().
|
overridedefault |
|
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::ZeroOrderHoldSpliner< T, SCALAR >::vector_t |