Abstract base class for a robot configuration strategy selector.
More...
#include <AsibotConfiguration.hpp>
|
struct | Pose |
| Helper class to store a specific robot configuration. More...
|
|
|
using | JointsIn = const std::vector< double > & |
| Const vector of joint angles (input parameter).
|
|
using | JointsOut = std::vector< double > & |
| Vector of joint angles (output parameter).
|
|
Designed with ASIBOT's specific case in mind, which entails up to four different configurations depending on initial angles provided.
◆ AsibotConfiguration()
roboticslab::AsibotConfiguration::AsibotConfiguration |
( |
JointsIn |
qMin, |
|
|
JointsIn |
qMax |
|
) |
| |
|
inline |
- Parameters
-
qMin | vector of minimum joint limits [deg] |
qMax | vector of maximum joint limits [deg] |
◆ configure()
bool AsibotConfiguration::configure |
( |
double |
q1, |
|
|
double |
q2u, |
|
|
double |
q2d, |
|
|
double |
q3, |
|
|
double |
q4u, |
|
|
double |
q4d, |
|
|
double |
q5 |
|
) |
| |
|
virtual |
Distinguishes between elbow up and down poses. Make sure that:
oyP = q2u + q3 + q4u = q2d - q3 + q4d
- Parameters
-
q1 | IK solution for joint 1 [deg] |
q2u | IK solution for joint 2 (elbow up) [deg] |
q2d | IK solution for joint 2 (elbow down) [deg] |
q3 | IK solution for joint 3 [deg] |
q4u | IK solution for joint 4 (elbow up) [deg] |
q4d | IK solution for joint 4 (elbow down) [deg] |
q5 | IK solution for joint 5 [deg] |
- Returns
- true/false on success/failure
◆ findOptimalConfiguration()
virtual bool roboticslab::AsibotConfiguration::findOptimalConfiguration |
( |
JointsIn |
qGuess | ) |
|
|
pure virtual |
◆ retrieveAngles()
virtual void roboticslab::AsibotConfiguration::retrieveAngles |
( |
JointsOut |
q | ) |
const |
|
inlinevirtual |
- Parameters
-
q | vector of joint angles [deg] |
The documentation for this class was generated from the following files:
- libraries/YarpPlugins/AsibotSolver/AsibotConfiguration.hpp
- libraries/YarpPlugins/AsibotSolver/AsibotConfiguration.cpp