|
| ALIGATOR_DYNAMIC_TYPEDEFS (Scalar) |
|
template<typename U, typename = std::enable_if_t<!is_polymorphic_of_v<Manifold, U>>> |
| StateOrControlErrorResidual (const int ndx, U &&uspace, const ConstVectorRef &target) |
| Constructor using the state space dimension, control manifold and control target.
|
|
| StateOrControlErrorResidual (const int ndx, const xyz::polymorphic< Manifold > &uspace, const ConstVectorRef &target) |
|
| StateOrControlErrorResidual (const int ndx, const int nu) |
|
| StateOrControlErrorResidual (const int ndx, const ConstVectorRef &target) |
| Constructor using state space and control space dimensions, the control space is assumed to be Euclidean.
|
|
void | evaluate (const ConstVectorRef &, const ConstVectorRef &u, Data &data) const override |
| Evaluate the function.
|
|
void | computeJacobians (const ConstVectorRef &, const ConstVectorRef &u, Data &data) const override |
| Compute Jacobians of this function.
|
|
| ALIGATOR_DYNAMIC_TYPEDEFS (Scalar) |
|
| StageFunctionTpl (const int ndx, const int nu, const int nr) |
|
virtual void | computeVectorHessianProducts (const ConstVectorRef &x, const ConstVectorRef &u, const ConstVectorRef &lbda, Data &data) const |
| Compute the vector-hessian products of this function.
|
|
virtual | ~StageFunctionTpl ()=default |
|
virtual shared_ptr< Data > | createData () const |
| Instantiate a Data object.
|
|
template<typename _Scalar, unsigned int arg>
struct aligator::detail::StateOrControlErrorResidual< _Scalar, arg >
Residual \(r(z) = z \ominus z_{tar} \).
The arg parameter decides with respect to which the error computation operates – state x
or control u
.. We use SFINAE to enable or disable the relevant constructors.
Definition at line 69 of file state-error.hpp.
template<typename _Scalar, unsigned int arg>
template<typename U, typename = std::enable_if_t<!is_polymorphic_of_v<Manifold, U>>>
Constructor using the state space dimension, control manifold and control target.
Definition at line 85 of file state-error.hpp.
template<typename _Scalar, unsigned int arg>
Compute Jacobians of this function.
This computes the Jacobians \( (\frac{\partial f}{\partial x},
\frac{\partial f}{\partial u},
\frac{\partial f}{\partial x'})
\)
- Parameters
-
x | Current state. |
u | Controls. |
y | Next state. |
data | Data holding struct. |
Implements aligator::StageFunctionTpl< _Scalar >.
Definition at line 125 of file state-error.hpp.