4 #ifndef AUBO_SDK_ROBOT_STATE_INTERFACE_H 5 #define AUBO_SDK_ROBOT_STATE_INTERFACE_H 9 #include <aubo/global_config.h> 13 namespace common_interface {
119 bool isCollisionOccurred();
141 bool isWithinSafetyLimits();
167 std::vector<double> getTcpPose();
174 std::vector<double> getActualTcpOffset();
201 std::vector<double> getTargetTcpPose();
227 std::vector<double> getToolPose();
249 std::vector<double> getTcpSpeed();
269 std::vector<double> getTcpForce();
291 std::vector<double> getElbowPosistion();
313 std::vector<double> getElbowVelocity();
335 std::vector<double> getBaseForce();
357 std::vector<double> getTcpTargetPose();
379 std::vector<double> getTcpTargetSpeed();
401 std::vector<double> getTcpTargetForce();
424 std::vector<JointStateType> getJointState();
447 std::vector<JointServoModeType> getJointServoMode();
469 std::vector<double> getJointPositions();
477 std::vector<double> getJointPositionsHistory(
int steps);
499 std::vector<double> getJointSpeeds();
521 std::vector<double> getJointAccelerations();
543 std::vector<double> getJointTorqueSensors();
564 std::vector<double> getJointContactTorques();
586 std::vector<double> getBaseForceSensor();
608 std::vector<double> getTcpForceSensors();
630 std::vector<double> getJointCurrents();
652 std::vector<double> getJointVoltages();
674 std::vector<double> getJointTemperatures();
696 std::vector<std::string> getJointUniqueIds();
718 std::vector<int> getJointFirmwareVersions();
740 std::vector<int> getJointHardwareVersions();
762 std::string getMasterBoardUniqueId();
784 int getMasterBoardFirmwareVersion();
806 int getMasterBoardHardwareVersion();
828 std::string getSlaveBoardUniqueId();
850 int getSlaveBoardFirmwareVersion();
872 int getSlaveBoardHardwareVersion();
894 std::string getToolUniqueId();
916 int getToolFirmwareVersion();
938 int getToolHardwareVersion();
963 int getToolCommMode();
985 std::string getPedestalUniqueId();
1007 int getPedestalFirmwareVersion();
1029 int getPedestalHardwareVersion();
1051 std::vector<double> getJointTargetPositions();
1073 std::vector<double> getJointTargetSpeeds();
1095 std::vector<double> getJointTargetAccelerations();
1117 std::vector<double> getJointTargetTorques();
1139 std::vector<double> getJointTargetCurrents();
1161 double getControlBoxTemperature();
1183 double getControlBoxHumidity();
1205 double getMainVoltage();
1227 double getMainCurrent();
1249 double getRobotVoltage();
1270 double getRobotCurrent();
1286 int getSlowDownLevel();
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) 1357 #endif // AUBO_SDK_ROBOT_STATE_INTERFACE_H
std::shared_ptr< RobotState > RobotStatePtr