hpp-core
4.9.0
Implement basic classes for canonical path planning for kinematic chains.
|
A linear constraint \( J \times x = b \). More...
#include <hpp/core/path-optimization/linear-constraint.hh>
Public Member Functions | |
LinearConstraint (size_type inputSize, size_type outputSize) | |
~LinearConstraint () | |
void | concatenate (const LinearConstraint &oc) |
bool | decompose (bool check=false, bool throwIfNotValid=false) |
void | computeRank () |
Compute rank of the constraint using a LU decomposition. More... | |
bool | reduceConstraint (const LinearConstraint &lc, LinearConstraint &lcr, bool computeRank=true) const |
void | computeSolution (const vector_t &v) |
bool | isSatisfied (const vector_t &x, const value_type &threshold=Eigen::NumTraits< value_type >::dummy_precision()) |
Returns \( ( J \times x - b ).isZero (threshold) \). More... | |
void | addRows (const std::size_t &nbRows) |
Public Attributes | |
Model | |
matrix_t | J |
vector_t | b |
Data | |
Solutions are \( \left\{ x^* + PK \times v, v \in \mathbb{R}^{nCols(J) - rank} \right\} \) | |
size_type | rank |
Rank of J. More... | |
matrix_t | PK |
Projector onto \( kernel(J) \). More... | |
vector_t | xStar |
\( x^* \) is a particular solution. More... | |
vector_t | xSol |
A linear constraint \( J \times x = b \).
|
inline |
hpp::core::pathOptimization::LinearConstraint::~LinearConstraint | ( | ) |
|
inline |
|
inline |
Compute rank of the constraint using a LU decomposition.
|
inline |
|
inline |
bool hpp::core::pathOptimization::LinearConstraint::decompose | ( | bool | check = false , |
bool | throwIfNotValid = false |
||
) |
Compute one solution and a base of the kernel of matrix J. rank is also updated.
check | If true, checks whether the constraint is feasible. |
|
inline |
Returns \( ( J \times x - b ).isZero (threshold) \).
|
inline |
Reduced constraint into the set of solutions of this constraint.
[in] | lc | the full constraint |
[out] | lcr | the reduced constraint |
vector_t hpp::core::pathOptimization::LinearConstraint::b |
matrix_t hpp::core::pathOptimization::LinearConstraint::J |
matrix_t hpp::core::pathOptimization::LinearConstraint::PK |
Projector onto \( kernel(J) \).
vector_t hpp::core::pathOptimization::LinearConstraint::xSol |
vector_t hpp::core::pathOptimization::LinearConstraint::xStar |
\( x^* \) is a particular solution.