robotoc
robotoc - efficient ROBOT Optimal Control solvers
|
Solution interpolator. More...
#include <solution_interpolator.hpp>
Public Member Functions | |
SolutionInterpolator (const InterpolationOrder order=InterpolationOrder::Linear) | |
Constructor. More... | |
~SolutionInterpolator ()=default | |
Default destructor. More... | |
SolutionInterpolator (const SolutionInterpolator &)=default | |
Default copy constructor. More... | |
SolutionInterpolator & | operator= (const SolutionInterpolator &)=default |
Default copy assign operator. More... | |
SolutionInterpolator (SolutionInterpolator &&) noexcept=default | |
Default move constructor. More... | |
SolutionInterpolator & | operator= (SolutionInterpolator &&) noexcept=default |
Default move assign operator. More... | |
void | setInterpolationOrder (const InterpolationOrder order) |
void | store (const TimeDiscretization &time_discretization, const Solution &solution) |
Stores the current time discretization and solution. More... | |
void | interpolate (const Robot &robot, const TimeDiscretization &time_discretization, Solution &solution) const |
Interpolates the solution. More... | |
bool | hasStoredSolution () const |
Check if this has a stored solution. More... | |
Solution interpolator.
robotoc::SolutionInterpolator::SolutionInterpolator | ( | const InterpolationOrder | order = InterpolationOrder::Linear | ) |
Constructor.
[in] | order | Order of the interpolation. |
|
default |
Default destructor.
|
default |
Default copy constructor.
|
defaultnoexcept |
Default move constructor.
|
inline |
Check if this has a stored solution.
void robotoc::SolutionInterpolator::interpolate | ( | const Robot & | robot, |
const TimeDiscretization & | time_discretization, | ||
Solution & | solution | ||
) | const |
Interpolates the solution.
[in] | robot | Robot model. |
[in] | time_discretization | Time discretization. |
[out] | solution | Solution. |
|
default |
Default copy assign operator.
|
defaultnoexcept |
Default move assign operator.
void robotoc::SolutionInterpolator::setInterpolationOrder | ( | const InterpolationOrder | order | ) |
void robotoc::SolutionInterpolator::store | ( | const TimeDiscretization & | time_discretization, |
const Solution & | solution | ||
) |
Stores the current time discretization and solution.
[in] | time_discretization | Time discretization. |
[out] | solution | Solution. |