Abstract base class for a robot configuration strategy selector.
#include <ConfigurationSelector.hpp>
|
| ConfigurationSelector (const KDL::JntArray &qMin, const KDL::JntArray &qMax) |
| Constructor.
|
|
virtual | ~ConfigurationSelector ()=default |
| Destructor.
|
|
virtual bool | configure (const std::vector< KDL::JntArray > &solutions, const std::vector< bool > &reachability) |
| Stores initial values for a specific pose.
|
|
virtual bool | findOptimalConfiguration (const KDL::JntArray &qGuess)=0 |
| Analyzes available configurations and selects the optimal one.
|
|
virtual void | retrievePose (KDL::JntArray &q) const |
| Queries computed joint values for the optimal configuration.
|
|
int | getValidSolutionIndex () const |
| Retrieves the index of the last valid solution.
|
|
|
static constexpr int | INVALID_CONFIG = -1 |
|
|
static bool | checkJointInLimits (double q, double qMin, double qMax) |
| Checks if a joint value is within its limits.
|
|
|
KDL::JntArray | _qMin |
|
KDL::JntArray | _qMax |
|
std::vector< Configuration > | configs |
|
int | lastValid {INVALID_CONFIG} |
|
◆ ConfigurationSelector()
roboticslab::ConfigurationSelector::ConfigurationSelector |
( |
const KDL::JntArray & |
qMin, |
|
|
const KDL::JntArray & |
qMax |
|
) |
| |
|
inline |
- Parameters
-
qMin | Joint array of minimum joint limits. |
qMax | Joint array of maximum joint limits. |
◆ checkJointInLimits()
static bool roboticslab::ConfigurationSelector::checkJointInLimits |
( |
double |
q, |
|
|
double |
qMin, |
|
|
double |
qMax |
|
) |
| |
|
inlinestaticprotected |
- Parameters
-
q | Joint value. |
qMin | Minimum joint limit. |
qMax | Maximum joint limit. |
- Returns
- True/false on within/without limits.
◆ configure()
bool ConfigurationSelector::configure |
( |
const std::vector< KDL::JntArray > & |
solutions, |
|
|
const std::vector< bool > & |
reachability |
|
) |
| |
|
virtual |
- Parameters
-
solutions | Vector of joint arrays that represent all available (valid or not) robot joint poses. |
- Returns
- True/false on success/failure.
◆ findOptimalConfiguration()
virtual bool roboticslab::ConfigurationSelector::findOptimalConfiguration |
( |
const KDL::JntArray & |
qGuess | ) |
|
|
pure virtual |
◆ getValidSolutionIndex()
int roboticslab::ConfigurationSelector::getValidSolutionIndex |
( |
| ) |
const |
|
inline |
- Returns
- Index of the last valid solution.
◆ retrievePose()
virtual void roboticslab::ConfigurationSelector::retrievePose |
( |
KDL::JntArray & |
q | ) |
const |
|
inlinevirtual |
◆ validate()
- Parameters
-
- Returns
- True/false on valid/invalid.
The documentation for this class was generated from the following files: