|
#include <RobotAPI/libraries/natik/NaturalIK.h>
Classes | |
struct | ArmJoints |
struct | Parameters |
struct | SoechtingAngles |
struct | SoechtingForwardPositions |
The NaturalIK class.
Calculates natural looking IK solutions by
WARNING: Only works if robot model is facing forward in Y-direction (like ARMAR-III, ARMAR-IV, ARMAR-6) WARNING2: Soechting model is not valid for all targets. However, elbow position seems to extrapolate fine.
Definition at line 49 of file NaturalIK.h.
NaturalIK | ( | std::string | side, |
Eigen::Vector3f | shoulderPos = Eigen::Vector3f::Zero() , |
||
float | scale = 1 |
||
) |
Definition at line 33 of file NaturalIK.cpp.
NaturalDiffIK::Result calculateIK | ( | const Eigen::Matrix4f & | targetPose, |
NaturalIK::ArmJoints | arm, | ||
NaturalDiffIK::Mode | setOri, | ||
NaturalIK::Parameters | params = NaturalIK::Parameters() |
||
) |
NaturalDiffIK::Result calculateIK | ( | const Eigen::Matrix4f & | targetPose, |
ArmJoints | arm, | ||
NaturalIK::Parameters | params = NaturalIK::Parameters() |
||
) |
Definition at line 84 of file NaturalIK.cpp.
NaturalDiffIK::Result calculateIKpos | ( | const Eigen::Vector3f & | targetPos, |
NaturalIK::ArmJoints | arm, | ||
NaturalIK::Parameters | params = NaturalIK::Parameters() |
||
) |
Definition at line 91 of file NaturalIK.cpp.
NaturalIK::SoechtingAngles CalculateSoechtingAngles | ( | Eigen::Vector3f | target | ) |
NaturalIK::CalculateSoechtingAngles.
target | Pointing target in mm, relative to the soulder position. X: right, Y: forward, Z: up |
side | Left or Right |
scale | scale factor to match the robots arm length to the human arm length |
Definition at line 112 of file NaturalIK.cpp.
NaturalIK::SoechtingForwardPositions forwardKinematics | ( | SoechtingAngles | sa | ) |
float getLowerArmLength | ( | ) | const |
Definition at line 209 of file NaturalIK.cpp.
float getScale | ( | ) |
Definition at line 194 of file NaturalIK.cpp.
Eigen::Vector3f getShoulderPos | ( | ) |
Definition at line 106 of file NaturalIK.cpp.
float getUpperArmLength | ( | ) | const |
Definition at line 199 of file NaturalIK.cpp.
void setLowerArmLength | ( | float | value | ) |
Definition at line 214 of file NaturalIK.cpp.
void setScale | ( | float | scale | ) |
Definition at line 189 of file NaturalIK.cpp.
void setUpperArmLength | ( | float | value | ) |
Definition at line 204 of file NaturalIK.cpp.
NaturalIK::SoechtingForwardPositions solveSoechtingIK | ( | const Eigen::Vector3f & | targetPos, |
std::optional< float > | minElbowHeight = std::nullopt |
||
) |
Definition at line 39 of file NaturalIK.cpp.