kinematics-dynamics
Public Member Functions | Private Member Functions | List of all members
roboticslab::ConfigurationSelectorHumanoidGait Class Reference

IK solver configuration strategy selector based on human walking. More...

#include <ConfigurationSelector.hpp>

Inheritance diagram for roboticslab::ConfigurationSelectorHumanoidGait:
roboticslab::ConfigurationSelectorLeastOverallAngularDisplacement roboticslab::ConfigurationSelector

Public Member Functions

 ConfigurationSelectorHumanoidGait (const KDL::JntArray &qMin, const KDL::JntArray &qMax)
 Constructor. More...
 
bool findOptimalConfiguration (const KDL::JntArray &qGuess) override
 Analyzes available configurations and selects the optimal one. More...
 
- Public Member Functions inherited from roboticslab::ConfigurationSelectorLeastOverallAngularDisplacement
 ConfigurationSelectorLeastOverallAngularDisplacement (const KDL::JntArray &qMin, const KDL::JntArray &qMax)
 Constructor. More...
 
- Public Member Functions inherited from roboticslab::ConfigurationSelector
 ConfigurationSelector (const KDL::JntArray &qMin, const KDL::JntArray &qMax)
 Constructor. More...
 
virtual ~ConfigurationSelector ()=default
 Destructor.
 
virtual bool configure (const std::vector< KDL::JntArray > &solutions)
 Stores initial values for a specific pose. More...
 
virtual void retrievePose (KDL::JntArray &q) const
 Queries computed joint values for the optimal configuration. More...
 

Private Member Functions

bool applyConstraints (const Configuration &config)
 Determines whether the configuration is valid according to this selector's premises.
 

Additional Inherited Members

- Protected Member Functions inherited from roboticslab::ConfigurationSelectorLeastOverallAngularDisplacement
std::vector< double > getDiffs (const KDL::JntArray &qGuess, const Configuration &config)
 Obtains vector of differences between current and desired joint values.
 
- Protected Attributes inherited from roboticslab::ConfigurationSelectorLeastOverallAngularDisplacement
int lastValid
 
- Protected Attributes inherited from roboticslab::ConfigurationSelector
KDL::JntArray _qMin
 
KDL::JntArray _qMax
 
Configuration optimalConfig
 
std::vector< Configurationconfigs
 
- Static Protected Attributes inherited from roboticslab::ConfigurationSelectorLeastOverallAngularDisplacement
static const int INVALID_CONFIG = -1
 

Detailed Description

Intended for use on lower-body limbs, specifically UC3M TEO's 6-DOF legs. Discards non-human-like configurations, such as the inverted knee pose.

Constructor & Destructor Documentation

◆ ConfigurationSelectorHumanoidGait()

roboticslab::ConfigurationSelectorHumanoidGait::ConfigurationSelectorHumanoidGait ( const KDL::JntArray &  qMin,
const KDL::JntArray &  qMax 
)
inline
Parameters
qMinJoint array of minimum joint limits.
qMaxJoint array of maximum joint limits.

Member Function Documentation

◆ findOptimalConfiguration()

bool ConfigurationSelectorHumanoidGait::findOptimalConfiguration ( const KDL::JntArray &  qGuess)
overridevirtual
Parameters
qGuessJoint array of values for current robot position.
Returns
True/false on success/failure.

Reimplemented from roboticslab::ConfigurationSelectorLeastOverallAngularDisplacement.


The documentation for this class was generated from the following files: