Go to the source code of this file.
bool doArmIK | ( | const double | x, |
const double | y, | ||
double & | theta1, | ||
double & | theta2 | ||
) |
computes the inverse kinematics for the arm
x | the desired distance of the end effector in front of the robot (meters) |
y | the desired distance of the end effector above the ground plane (meters) |
theta1 | [out] the joint angle of the shoulder to reach the desired pose |
theta2 | [out] the joint angle of the elbow to reach the desired pose |
Definition at line 147 of file ArmWidget.cpp.
double inchesToMeters | ( | const double | inches | ) |
Definition at line 47 of file ArmWidget.cpp.
double MetersToPixels | ( | const double | meters | ) |
Definition at line 59 of file ArmWidget.cpp.
double PixeltoMeter | ( | const double | pixel | ) |
Definition at line 53 of file ArmWidget.cpp.
const double AL5A_ARM_ELBOW_SEGMENT_METERS = inchesToMeters(7.62) |
Definition at line 80 of file ArmWidget.cpp.
const double AL5A_ARM_SHOULDER_SEGMENT_METERS = inchesToMeters(3.75) |
Definition at line 79 of file ArmWidget.cpp.
const int ARM_BODY_TOP = ARM_X * 7 / 10 |
Definition at line 90 of file ArmWidget.cpp.
const int ARM_CENTER_X = ARM_X / 2 |
Definition at line 89 of file ArmWidget.cpp.
const int ARM_SHOULDER_X = ARM_CENTER_X - ARM_X / 7 |
Definition at line 91 of file ArmWidget.cpp.
const int ARM_X = 120 |
Definition at line 87 of file ArmWidget.cpp.
const int ARM_Y = 120 |
Definition at line 88 of file ArmWidget.cpp.
Definition at line 84 of file ArmWidget.cpp.
Definition at line 83 of file ArmWidget.cpp.
const double COROBOT_ARM_ELBOW_SEGMENT_METERS = inchesToMeters(8) |
Definition at line 68 of file ArmWidget.cpp.
const double COROBOT_ARM_SHOULDER_SEGMENT_METERS = inchesToMeters(6.25) |
Definition at line 67 of file ArmWidget.cpp.
const double PINCHER_ARM_ELBOW_SEGMENT_METERS = inchesToMeters(8) |
Definition at line 72 of file ArmWidget.cpp.
const double PINCHER_ARM_SHOULDER_SEGMENT_METERS = inchesToMeters(6.25) |
Definition at line 71 of file ArmWidget.cpp.
const double REACTOR_ARM_ELBOW_SEGMENT_METERS = inchesToMeters(8) |
Definition at line 76 of file ArmWidget.cpp.
const double REACTOR_ARM_SHOULDER_SEGMENT_METERS = inchesToMeters(6.25) |
Definition at line 75 of file ArmWidget.cpp.