humoto
|
Mixin representing matrix of indices 'I' in a simple constraint.
t_Base | Base class: humoto::constraints::ConstraintsBase or humoto::TaskBase wrapped with other mixins. |
Definition at line 743 of file constraints_mixins.h.
#include <constraints_mixins.h>
Public Member Functions | |
virtual void | copyBodyTo (Eigen::MatrixXd &A, const Location &location) const |
Copy body to the given matrix. More... | |
virtual void | copyNegativeBodyTo (Eigen::MatrixXd &A, const Location &location) const |
Copy body to the given matrix. More... | |
humoto::IndexVector & | getIndices () |
Get indices. More... | |
const humoto::IndexVector & | getIndices () const |
Get indices. More... | |
std::size_t | getNumberOfConstraints () const |
Returns number of constraints in the task. More... | |
double | getProduct (const std::size_t i, const Eigen::VectorXd &vector) const |
Compute A(i,:) * vector. More... | |
Protected Member Functions | |
BodyIMixin () | |
Default constructor. More... | |
~BodyIMixin () | |
Protected destructor: prevent destruction of the child classes through a base pointer. More... | |
void | addATA (Eigen::MatrixXd &H) const |
Compute 'A^T * A' for general equality constaints and save or add the result to H. More... | |
void | getATA (Eigen::MatrixXd &H) const |
Compute 'A^T * A' for general equality constaints and save or add the result to H. More... | |
void | logBody (humoto::Logger &logger, const LogEntryName &parent=LogEntryName(), const std::string &name="constraints") const |
Log body. More... | |
virtual void | resetBody (const std::size_t number_of_constraints=0, const bool initialize_matrices=false) |
Initialize I and gains. More... | |
Protected Attributes | |
humoto::IndexVector | I_ |
|
inlineprotected |
Protected destructor: prevent destruction of the child classes through a base pointer.
Definition at line 754 of file constraints_mixins.h.
|
inlineprotected |
Default constructor.
Definition at line 760 of file constraints_mixins.h.
|
inlineprotected |
Compute 'A^T * A' for general equality constaints and save or add the result to H.
[in,out] | H | left lower triangular part of the result. |
Definition at line 799 of file constraints_mixins.h.
|
inlinevirtual |
Copy body to the given matrix.
[in] | A | |
[in] | location | offset and length |
Reimplemented in humoto::constraints::BodyGIMixin< t_Base >, humoto::constraints::BodyGIMixin< BoundsBMixin< TaskBase > >, humoto::constraints::BodyGIMixin< BoundsB0Mixin< TaskBase > >, humoto::constraints::BodyGIMixin< BoundsB0Mixin< t_Base > >, humoto::constraints::BodyGIMixin< BoundsUMixin< t_Base > >, humoto::constraints::BodyGIMixin< BoundsLUMixin< TaskBase > >, humoto::constraints::BodyGIMixin< BoundsLMixin< t_Base > >, humoto::constraints::BodyGIMixin< BoundsLMixin< TaskBase > >, humoto::constraints::BodyGIMixin< BoundsUMixin< TaskBase > >, humoto::constraints::BodyGIMixin< BoundsLUMixin< t_Base > >, and humoto::constraints::BodyGIMixin< BoundsBMixin< t_Base > >.
Definition at line 814 of file constraints_mixins.h.
|
inlinevirtual |
Copy body to the given matrix.
[in] | A | |
[in] | location | offset and length |
Reimplemented in humoto::constraints::BodyGIMixin< t_Base >, humoto::constraints::BodyGIMixin< BoundsBMixin< TaskBase > >, humoto::constraints::BodyGIMixin< BoundsB0Mixin< TaskBase > >, humoto::constraints::BodyGIMixin< BoundsB0Mixin< t_Base > >, humoto::constraints::BodyGIMixin< BoundsUMixin< t_Base > >, humoto::constraints::BodyGIMixin< BoundsLUMixin< TaskBase > >, humoto::constraints::BodyGIMixin< BoundsLMixin< t_Base > >, humoto::constraints::BodyGIMixin< BoundsLMixin< TaskBase > >, humoto::constraints::BodyGIMixin< BoundsUMixin< TaskBase > >, humoto::constraints::BodyGIMixin< BoundsLUMixin< t_Base > >, and humoto::constraints::BodyGIMixin< BoundsBMixin< t_Base > >.
Definition at line 831 of file constraints_mixins.h.
|
inlineprotected |
Compute 'A^T * A' for general equality constaints and save or add the result to H.
[in,out] | H | left lower triangular part of the result. |
Definition at line 789 of file constraints_mixins.h.
|
inline |
|
inline |
|
inline |
Returns number of constraints in the task.
Definition at line 866 of file constraints_mixins.h.
|
inline |
Compute A(i,:) * vector.
[in] | i | row index |
[in] | vector | vector |
Definition at line 873 of file constraints_mixins.h.
|
inlineprotected |
Log body.
[in,out] | logger | logger |
[in] | parent | parent |
[in] | name | name |
Reimplemented in humoto::constraints::BodyGIMixin< BoundsBMixin< TaskBase > >, humoto::constraints::BodyGIMixin< BoundsB0Mixin< TaskBase > >, humoto::constraints::BodyGIMixin< BoundsLUMixin< TaskBase > >, humoto::constraints::BodyGIMixin< BoundsLMixin< TaskBase > >, and humoto::constraints::BodyGIMixin< BoundsUMixin< TaskBase > >.
Definition at line 780 of file constraints_mixins.h.
|
inlineprotectedvirtual |
Initialize I and gains.
[in] | number_of_constraints | number of constraints |
[in] | initialize_matrices | initialize matrices using defaults |
Reimplemented in humoto::constraints::BodyGIMixin< t_Base >, humoto::constraints::BodyGIMixin< BoundsBMixin< TaskBase > >, humoto::constraints::BodyGIMixin< BoundsB0Mixin< TaskBase > >, humoto::constraints::BodyGIMixin< BoundsB0Mixin< t_Base > >, humoto::constraints::BodyGIMixin< BoundsUMixin< t_Base > >, humoto::constraints::BodyGIMixin< BoundsLUMixin< TaskBase > >, humoto::constraints::BodyGIMixin< BoundsLMixin< t_Base > >, humoto::constraints::BodyGIMixin< BoundsLMixin< TaskBase > >, humoto::constraints::BodyGIMixin< BoundsUMixin< TaskBase > >, humoto::constraints::BodyGIMixin< BoundsLUMixin< t_Base > >, and humoto::constraints::BodyGIMixin< BoundsBMixin< t_Base > >.
Definition at line 771 of file constraints_mixins.h.
|
protected |
Definition at line 746 of file constraints_mixins.h.