4 #ifndef AUBO_SDK_AXIS_INTERFACE_H 5 #define AUBO_SDK_AXIS_INTERFACE_H 11 namespace common_interface {
34 int poweroffExtAxis();
49 int setExtAxisMountingPose(
const std::vector<double> &pose);
60 int moveExtJoint(
double pos,
double v,
double a,
double duration);
70 int speedExtJoint(
double v,
double a,
double duration);
72 int stopExtJoint(
double a);
86 std::vector<double> getExtAxisMountingPose();
93 std::vector<double> getExtAxisPose();
100 double getExtAxisPosition();
107 double getExtAxisVelocity();
114 double getExtAxisAcceleration();
121 double getExtAxisCurrent();
128 double getExtAxisTemperature();
135 double getExtAxisBusVoltage();
142 double getExtAxisBusCurrent();
149 double getExtAxisMaxPosition();
156 double getExtMinPosition();
163 double getExtAxisMaxVelocity();
170 double getExtAxisMaxAcceleration();
180 int followAnotherAxis(
const std::string &target_name,
double phase,
187 int stopFollowAnotherAxis();
195 #define AxisInterface_DECLARES \ 196 _FUNC(AxisInterface, 0, poweronExtAxis) \ 197 _FUNC(AxisInterface, 0, poweroffExtAxis) \ 198 _FUNC(AxisInterface, 0, enableExtAxis) \ 199 _FUNC(AxisInterface, 1, setExtAxisMountingPose, pose) \ 200 _INST(AxisInterface, 4, moveExtJoint, pos, v, a, duration) \ 201 _INST(AxisInterface, 3, speedExtJoint, v, a, duration) \ 202 _INST(AxisInterface, 1, stopExtJoint, a) \ 203 _FUNC(AxisInterface, 0, getAxisModeType) \ 204 _FUNC(AxisInterface, 0, getExtAxisMountingPose) \ 205 _FUNC(AxisInterface, 0, getExtAxisPose) \ 206 _FUNC(AxisInterface, 0, getExtAxisPosition) \ 207 _FUNC(AxisInterface, 0, getExtAxisVelocity) \ 208 _FUNC(AxisInterface, 0, getExtAxisAcceleration) \ 209 _FUNC(AxisInterface, 0, getExtAxisCurrent) \ 210 _FUNC(AxisInterface, 0, getExtAxisTemperature) \ 211 _FUNC(AxisInterface, 0, getExtAxisBusVoltage) \ 212 _FUNC(AxisInterface, 0, getExtAxisBusCurrent) \ 213 _FUNC(AxisInterface, 0, getExtAxisMaxPosition) \ 214 _FUNC(AxisInterface, 0, getExtMinPosition) \ 215 _FUNC(AxisInterface, 0, getExtAxisMaxVelocity) \ 216 _FUNC(AxisInterface, 0, getExtAxisMaxAcceleration) \ 217 _FUNC(AxisInterface, 3, followAnotherAxis, target_name, phase, err) \ 218 _FUNC(AxisInterface, 0, stopFollowAnotherAxis) 224 #endif // AUBO_SDK_AXIS_INTERFACE_H
std::shared_ptr< AxisInterface > AxisInterfacePtr