Linear converging guidance model. More...
#include <linear.hpp>
Public Types | |
| typedef GuidanceModelAbstractTpl< Scalar > | Base |
| typedef Base::GuidanceDataAbstract | GuidanceDataAbstract |
| typedef MathBaseTpl< Scalar > | MathBase |
| typedef MathBase::MatrixXs | MatrixXs |
| typedef MathBase::VectorXs | VectorXs |
| Public Types inherited from GuidanceModelAbstractTpl< _Scalar > | |
| typedef GuidanceDataAbstractTpl< Scalar > | GuidanceDataAbstract |
| typedef MathBaseTpl< Scalar > | MathBase |
| typedef MathBase::MatrixXs | MatrixXs |
| typedef MathBase::VectorXs | VectorXs |
Public Member Functions | |
| GuidanceModelLinearTpl (const MatrixXs &gain) | |
| Initialize the model from a full gain matrix. | |
| GuidanceModelLinearTpl (const std::size_t nr, const Scalar &gain) | |
| Initialize the model from a scalar gain. | |
| GuidanceModelLinearTpl (const VectorXs &diagonal_gain) | |
| Initialize the model from a diagonal gain vector. | |
| virtual void | calc (const std::shared_ptr< GuidanceDataAbstract > &data, const Eigen::Ref< const VectorXs > &error) const override |
| Compute | |
| virtual void | calcDiff (const std::shared_ptr< GuidanceDataAbstract > &data, const Eigen::Ref< const VectorXs > &error) const override |
| Compute | |
| template<typename NewScalar> | |
| GuidanceModelLinearTpl< NewScalar > | cast () const |
| Cast the guidance model to a different scalar type. | |
| const MatrixXs & | get_gain () const |
| Return the feedback-gain matrix. | |
| virtual void | print (std::ostream &os) const override |
| Print the model parameters. | |
| void | set_gain (const MatrixXs &gain) |
| Set the feedback-gain matrix. | |
| Public Member Functions inherited from GuidanceModelAbstractTpl< _Scalar > | |
| GuidanceModelAbstractTpl (const std::size_t nr) | |
| Initialize the guidance-model dimension. | |
| virtual std::shared_ptr< GuidanceDataAbstract > | createData () const |
| Allocate the precomputed guidance data. | |
| std::size_t | get_nr () const |
| Return the error and desired-rate dimension. | |
Public Attributes | |
| EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef _Scalar | Scalar |
| Public Attributes inherited from GuidanceModelAbstractTpl< _Scalar > | |
| EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef _Scalar | Scalar |
Additional Inherited Members | |
| Protected Member Functions inherited from GuidanceModelAbstractTpl< _Scalar > | |
| void | checkErrorDimension (const Eigen::Ref< const VectorXs > &error) const |
| void | checkJacobianDimension (const Eigen::Ref< const MatrixXs > &Ge) const |
| void | checkRateDimension (const Eigen::Ref< const VectorXs > &g) const |
| Protected Attributes inherited from GuidanceModelAbstractTpl< _Scalar > | |
| std::size_t | nr_ |
Linear converging guidance model.
It implements
![\[ g(e) = -K e, \qquad G_e = -K,
\]](form_102.png)
where 
Definition at line 26 of file linear.hpp.
| typedef GuidanceModelAbstractTpl<Scalar> Base |
Definition at line 32 of file linear.hpp.
| typedef MathBaseTpl<Scalar> MathBase |
Definition at line 33 of file linear.hpp.
| typedef Base::GuidanceDataAbstract GuidanceDataAbstract |
Definition at line 34 of file linear.hpp.
| typedef MathBase::VectorXs VectorXs |
Definition at line 35 of file linear.hpp.
| typedef MathBase::MatrixXs MatrixXs |
Definition at line 36 of file linear.hpp.
| explicit |
Initialize the model from a full gain matrix.
| [in] | gain | Square feedback-gain matrix |
| explicit |
Initialize the model from a diagonal gain vector.
| [in] | diagonal_gain | Diagonal entries of |
| GuidanceModelLinearTpl | ( | const std::size_t | nr, |
| const Scalar & | gain ) |
Initialize the model from a scalar gain.
| [in] | nr | Task dimension. |
| [in] | gain | Scalar gain used on the identity matrix. |
| overridevirtual |
Compute 
| [in,out] | data | Preallocated guidance data. |
| [in] | error | Task error |
Implements GuidanceModelAbstractTpl< _Scalar >.
| overridevirtual |
Compute 
| [in,out] | data | Preallocated guidance data. |
| [in] | error | Task error |
Implements GuidanceModelAbstractTpl< _Scalar >.
| const MatrixXs & get_gain | ( | ) | const |
Return the feedback-gain matrix.

| void set_gain | ( | const MatrixXs & | gain | ) |
Set the feedback-gain matrix.
| [in] | gain | Square feedback-gain matrix |
| overridevirtual |
Print the model parameters.
| [out] | os | Output stream. |
Reimplemented from GuidanceModelAbstractTpl< _Scalar >.
| EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef _Scalar Scalar |
Definition at line 31 of file linear.hpp.