4#ifndef AUBO_SDK_AXIS_INTERFACE_H
5#define AUBO_SDK_AXIS_INTERFACE_H
11namespace common_interface {
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)
double getExtAxisCurrent()
获取外部轴电流
int speedExtJoint(double v, double a, double duration)
制定目标运动速度
int followAnotherAxis(const std::string &target_name, double phase, double err)
跟踪另一个外部轴的运动(禁止运动过程中使用)
double getExtAxisVelocity()
获取外部轴运行速度
int setExtAxisMountingPose(const std::vector< double > &pose)
设置外部轴的安装位姿(相对于世界坐标系)
double getExtAxisMaxPosition()
获取外部轴最大位置
double getExtAxisBusVoltage()
获取外部轴电压
std::vector< double > getExtAxisPose()
获取相对于安装坐标系的位姿,外部轴可能为变位机或者导轨
int moveExtJoint(double pos, double v, double a, double duration)
运动到指定点, 旋转或者平移
double getExtAxisPosition()
获取外部轴位置
double getExtAxisMaxVelocity()
获取外部轴最大速度
double getExtAxisAcceleration()
获取外部轴运行加速度
double getExtAxisBusCurrent()
获取外部轴电流
std::vector< double > getExtAxisMountingPose()
获取外部轴安装位姿
int stopFollowAnotherAxis()
stopFollowAnotherAxis(禁止运动过程中使用)
double getExtMinPosition()
获取外部轴最小位置
AxisModeType getAxisModeType()
获取当前外部轴的状态
double getExtAxisTemperature()
获取外部轴温度
double getExtAxisMaxAcceleration()
获取外部轴最大加速度
int stopExtJoint(double a)
std::shared_ptr< AxisInterface > AxisInterfacePtr