Skip to content

Commit 5911270

Browse files
committed
Accessors for the base kinematic functions
1 parent 7f6c6d4 commit 5911270

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

uarm_library.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,10 @@ class uArmClass
105105
double getCalY() {calXYZ(); return g_cal_y;}
106106
double getCalZ() {calXYZ(); return g_cal_z;}
107107
void getCalXYZ(double& x, double& y, double &z) {calXYZ(); x = g_cal_x; y = g_cal_y; z = g_cal_z;}
108+
void getCalXYZ(double theta_1, double theta_2, double theta_3, double& x, double& y, double &z) {calXYZ(theta_1, theta_2, theta_3); x = g_cal_x; y = g_cal_y; z = g_cal_z;}
108109

109110
void calAngles(double x, double y, double z);
111+
void getCalAngles(double x, double y, double z, double& theta_1, double& theta_2, double& theta_3) {calAngles(x, y, z); theta_1 = g_theta_1; theta_2 = g_theta_2; theta_3 = g_theta_3;}
110112

111113
void calXYZ(double theta_1, double theta_2, double theta_3);
112114
void calXYZ();

0 commit comments

Comments
 (0)