hpp-constraints  6.0.0
Definition of basic geometric constraints for motion planning
hpp::constraints::solver::saturation::Base Struct Reference

Base class for box constraints. To prevent configuration variables to get out of joint limits during Newton Raphson iterations, the user may provide an object derived from this type to HierarchicalIterative using setter and getter HierarchicalIterative::saturation. More...

#include <hpp/constraints/solver/hierarchical-iterative.hh>

Inheritance diagram for hpp::constraints::solver::saturation::Base:

Public Member Functions

virtual bool saturate (vectorIn_t q, vectorOut_t qSat, Eigen::VectorXi &saturation)
 
virtual ~Base ()
 

Detailed Description

Base class for box constraints. To prevent configuration variables to get out of joint limits during Newton Raphson iterations, the user may provide an object derived from this type to HierarchicalIterative using setter and getter HierarchicalIterative::saturation.

This class implements no saturation.

Constructor & Destructor Documentation

◆ ~Base()

virtual hpp::constraints::solver::saturation::Base::~Base ( )
inlinevirtual

Member Function Documentation

◆ saturate()

virtual bool hpp::constraints::solver::saturation::Base::saturate ( vectorIn_t  q,
vectorOut_t  qSat,
Eigen::VectorXi &  saturation 
)
virtual

This function checks which degrees of freedom are saturated.

Parameters
qa configuration,
Return values
qSatconfiguration after saturing values out of bounds
saturationvector: for each degree of freedom, saturation is set to
  • -1 if the lower bound is reached,
  • 1 if the upper bound is reached,
  • 0 otherwise.
Returns
true if and only if at least one degree of freedom has been saturated

Reimplemented in hpp::constraints::solver::saturation::Device, hpp::constraints::solver::saturation::Bounds, and hpp::constraints::solver::saturation::Function.


The documentation for this struct was generated from the following file: