#include <KatanaKinematics6M180.h>
void KNI::KatanaKinematics6M180::_setLength |
( |
metrics const & |
length | ) |
|
|
inlineprivate |
bool KNI::KatanaKinematics6M180::angledef |
( |
angles_calc & |
a | ) |
const |
|
private |
bool KNI::KatanaKinematics6M180::AnglePositionTest |
( |
const angles_calc & |
a | ) |
const |
|
private |
void KNI::KatanaKinematics6M180::DK |
( |
coordinates & |
solution, |
|
|
encoders const & |
current_encoders |
|
) |
| const |
|
virtual |
Direct Kinematic. Calculates the actual position in cartesian coordinates using the given encoders
- Parameters
-
solution | This is where the algorithm will store the solution to (in cartesian coordinates) |
current_encoders | The encoder values which are being used for the calculation |
- Note
- strong guarantee provided
Implements KNI::KatanaKinematics.
Definition at line 31 of file KatanaKinematics6M180.cpp.
void KNI::KatanaKinematics6M180::IK |
( |
encoders::iterator |
solution, |
|
|
coordinates const & |
pose, |
|
|
encoders const & |
cur_angles |
|
) |
| const |
|
virtual |
Inverse Kinematic. Calculates one set of encoders (=one solution) for the given cartesian coordinates. You also have to provide the current encoders to allow the algorithm to choose between different valid solutions.
- Parameters
-
solution | This is where the algorithm will store the solution to (in encoders) |
pose | The target position in cartesian coordinates plus the euler angles for the direction of the gripper |
cur_angles | The current angles (in encoders) of the robot |
- Note
- strong guarantee provided
Implements KNI::KatanaKinematics.
Definition at line 190 of file KatanaKinematics6M180.cpp.
void KNI::KatanaKinematics6M180::IK_b1b2costh3_6M180 |
( |
angles_calc & |
a, |
|
|
const position & |
p |
|
) |
| const |
|
private |
Initialize the parameters for the calculations. This is needed to validate the calculated angles and to choose an appropriate solution You have to provide 5 or 6 length's and parameters, depending on you robot type
Implements KNI::KatanaKinematics.
Definition at line 92 of file KatanaKinematics6M180.cpp.
bool KNI::KatanaKinematics6M180::PositionTest6M180 |
( |
const angles_calc & |
a, |
|
|
const position & |
p |
|
) |
| const |
|
private |
metrics KNI::KatanaKinematics6M180::_length |
|
private |
const int KNI::KatanaKinematics6M180::_nrOfPossibleSolutions = 8 |
|
staticprivate |
const double KNI::KatanaKinematics6M180::_tolerance = 0.001 |
|
staticprivate |
The documentation for this class was generated from the following files: