4#ifndef AUBO_SDK_ROBOT_STATE_INTERFACE_H
5#define AUBO_SDK_ROBOT_STATE_INTERFACE_H
9#include <aubo/global_config.h>
13namespace common_interface {
1294#define RobotState_DECLARES \
1295 _FUNC(RobotState, 0, getRobotModeType) \
1296 _FUNC(RobotState, 0, getSafetyModeType) \
1297 _FUNC(RobotState, 0, isPowerOn) \
1298 _FUNC(RobotState, 0, isSteady) \
1299 _FUNC(RobotState, 0, isCollisionOccurred) \
1300 _FUNC(RobotState, 0, isWithinSafetyLimits) \
1301 _FUNC(RobotState, 0, getTcpPose) \
1302 _FUNC(RobotState, 0, getActualTcpOffset) \
1303 _FUNC(RobotState, 0, getTargetTcpPose) \
1304 _FUNC(RobotState, 0, getToolPose) \
1305 _FUNC(RobotState, 0, getTcpSpeed) \
1306 _FUNC(RobotState, 0, getTcpForce) \
1307 _FUNC(RobotState, 0, getElbowPosistion) \
1308 _FUNC(RobotState, 0, getElbowVelocity) \
1309 _FUNC(RobotState, 0, getBaseForce) \
1310 _FUNC(RobotState, 0, getTcpTargetPose) \
1311 _FUNC(RobotState, 0, getTcpTargetSpeed) \
1312 _FUNC(RobotState, 0, getTcpTargetForce) \
1313 _FUNC(RobotState, 0, getJointState) \
1314 _FUNC(RobotState, 0, getJointServoMode) \
1315 _FUNC(RobotState, 0, getJointPositions) \
1316 _FUNC(RobotState, 1, getJointPositionsHistory, steps) \
1317 _FUNC(RobotState, 0, getJointSpeeds) \
1318 _FUNC(RobotState, 0, getJointAccelerations) \
1319 _FUNC(RobotState, 0, getJointTorqueSensors) \
1320 _FUNC(RobotState, 0, getJointContactTorques) \
1321 _FUNC(RobotState, 0, getBaseForceSensor) \
1322 _FUNC(RobotState, 0, getTcpForceSensors) \
1323 _FUNC(RobotState, 0, getJointCurrents) \
1324 _FUNC(RobotState, 0, getJointVoltages) \
1325 _FUNC(RobotState, 0, getJointTemperatures) \
1326 _FUNC(RobotState, 0, getJointUniqueIds) \
1327 _FUNC(RobotState, 0, getJointFirmwareVersions) \
1328 _FUNC(RobotState, 0, getJointHardwareVersions) \
1329 _FUNC(RobotState, 0, getMasterBoardUniqueId) \
1330 _FUNC(RobotState, 0, getMasterBoardFirmwareVersion) \
1331 _FUNC(RobotState, 0, getMasterBoardHardwareVersion) \
1332 _FUNC(RobotState, 0, getSlaveBoardUniqueId) \
1333 _FUNC(RobotState, 0, getSlaveBoardFirmwareVersion) \
1334 _FUNC(RobotState, 0, getSlaveBoardHardwareVersion) \
1335 _FUNC(RobotState, 0, getToolUniqueId) \
1336 _FUNC(RobotState, 0, getToolFirmwareVersion) \
1337 _FUNC(RobotState, 0, getToolHardwareVersion) \
1338 _FUNC(RobotState, 0, getToolCommMode) \
1339 _FUNC(RobotState, 0, getPedestalUniqueId) \
1340 _FUNC(RobotState, 0, getPedestalFirmwareVersion) \
1341 _FUNC(RobotState, 0, getPedestalHardwareVersion) \
1342 _FUNC(RobotState, 0, getJointTargetPositions) \
1343 _FUNC(RobotState, 0, getJointTargetSpeeds) \
1344 _FUNC(RobotState, 0, getJointTargetAccelerations) \
1345 _FUNC(RobotState, 0, getJointTargetTorques) \
1346 _FUNC(RobotState, 0, getJointTargetCurrents) \
1347 _FUNC(RobotState, 0, getControlBoxTemperature) \
1348 _FUNC(RobotState, 0, getControlBoxHumidity) \
1349 _FUNC(RobotState, 0, getMainVoltage) \
1350 _FUNC(RobotState, 0, getMainCurrent) \
1351 _FUNC(RobotState, 0, getRobotVoltage) \
1352 _FUNC(RobotState, 0, getRobotCurrent) \
1353 _FUNC(RobotState, 0, getSlowDownLevel)
std::string getToolUniqueId()
获取工具端全球唯一ID
int getToolFirmwareVersion()
获取工具端固件版本
std::vector< double > getJointTargetAccelerations()
获取机械臂关节目标加速度
std::vector< double > getJointTargetTorques()
获取机械臂关节目标力矩
std::vector< double > getJointTargetCurrents()
获取机械臂关节目标电流
std::vector< double > getTcpSpeed()
获取TCP速度
std::vector< JointServoModeType > getJointServoMode()
获取关节的伺服状态
int getSlowDownLevel()
获取机器人缓速等级
std::vector< double > getBaseForce()
获取基座力/力矩
std::vector< double > getTcpForce()
获取TCP的力/力矩
std::vector< double > getJointTargetPositions()
获取机械臂关节目标位置角度
std::vector< double > getJointSpeeds()
获取机械臂关节速度
bool isWithinSafetyLimits()
机器人是否已经在安全限制之内
std::vector< double > getJointTargetSpeeds()
获取机械臂关节目标速度
std::vector< double > getJointCurrents()
获取机械臂关节电流
int getPedestalFirmwareVersion()
获取底座固件版本
double getRobotVoltage()
获取机器人电压
std::vector< double > getTcpTargetPose()
获取上一次发送的TCP目标位姿
double getMainCurrent()
获取母线电流
std::vector< double > getJointPositionsHistory(int steps)
获取机械臂历史关节角度
SafetyModeType getSafetyModeType()
获取安全模式
double getControlBoxHumidity()
获取控制柜湿度
bool isSteady()
机器人是否已经停止下来
std::string getSlaveBoardUniqueId()
获取SlaveBoard全球唯一ID
bool isPowerOn()
获取机器人通电状态
std::vector< double > getActualTcpOffset()
获取当前的 TCP 偏移,也就是 getTcpPose 返回的 pose 用到的 TCP 偏移
int getToolHardwareVersion()
获取工具端硬件版本
bool isCollisionOccurred()
机器人是否发生了碰撞
std::vector< std::string > getJointUniqueIds()
获取关节全球唯一ID
std::vector< double > getTargetTcpPose()
获取下一个目标路点 注意与 getTcpTargetPose 的区别,此处定义存在歧义,命名需要优化
int getMasterBoardFirmwareVersion()
获取MasterBoard固件版本
std::vector< double > getToolPose()
获取工具端的位姿(不带TCP偏移)
int getSlaveBoardFirmwareVersion()
获取SlaveBoard固件版本
int getToolCommMode()
获取末端通信模式
std::string getPedestalUniqueId()
获取底座全球唯一ID
std::vector< JointStateType > getJointState()
获取机械臂关节标志
std::vector< double > getElbowPosistion()
获取肘部的位置
double getControlBoxTemperature()
获取控制柜温度
std::vector< double > getJointAccelerations()
获取机械臂关节加速度
std::vector< double > getElbowVelocity()
获取肘部速度
std::vector< double > getJointContactTorques()
获取机械臂关节接触力矩(外力距)
std::vector< double > getBaseForceSensor()
获取底座力传感器读数
std::vector< double > getTcpTargetSpeed()
获取TCP目标速度
double getRobotCurrent()
获取机器人电流
double getMainVoltage()
获取母线电压
std::vector< double > getTcpForceSensors()
获取TCP力传感器读数
std::vector< double > getJointTemperatures()
获取机械臂关节温度
int getPedestalHardwareVersion()
获取底座硬件版本
int getMasterBoardHardwareVersion()
获取MasterBoard硬件版本
std::vector< double > getJointPositions()
获取机械臂关节角度
std::vector< double > getTcpPose()
获取当前的TCP位姿,其 TCP 偏移可以通过 getActualTcpOffset 获取
std::vector< int > getJointHardwareVersions()
获取关节硬件版本
std::vector< double > getTcpTargetForce()
获取TCP目标力/力矩
int getSlaveBoardHardwareVersion()
获取SlaveBoard硬件版本
std::string getMasterBoardUniqueId()
获取MasterBoard全球唯一ID
RobotModeType getRobotModeType()
获取机器人的模式状态
std::vector< double > getJointTorqueSensors()
获取机械臂关节力矩
std::vector< double > getJointVoltages()
获取机械臂关节电压
std::vector< int > getJointFirmwareVersions()
获取关节固件版本
std::shared_ptr< RobotState > RobotStatePtr