4 #ifndef AUBO_SDK_ROBOT_CONFIG_H 5 #define AUBO_SDK_ROBOT_CONFIG_H 8 #include <unordered_map> 10 #include <aubo/global_config.h> 14 namespace common_interface {
42 std::string getName();
86 double getCycletime();
109 int setSlowDownFraction(
int level,
double fraction);
126 double getSlowDownFraction(
int level);
147 double getDefaultToolAcc();
169 double getDefaultToolSpeed();
191 double getDefaultJointAcc();
213 double getDefaultJointSpeed();
235 std::string getRobotType();
257 std::string getRobotSubType();
279 std::string getControlBoxType();
308 int setMountingPose(
const std::vector<double> &pose);
330 std::vector<double> getMountingPose();
360 int setCollisionLevel(
int level);
382 int getCollisionLevel();
413 int setCollisionStopType(
int type);
438 int getCollisionStopType();
459 int setHomePosition(
const std::vector<double> &positions);
475 std::vector<double> getHomePosition();
503 int setFreedriveDamp(
const std::vector<double> &damp);
525 std::vector<double> getFreedriveDamp();
553 std::unordered_map<std::string, std::vector<double>> getKinematicsParam(
581 std::unordered_map<std::string, std::vector<double>>
582 getKinematicsCompensate(
double ref_temperature);
598 int setKinematicsCompensate(
599 const std::unordered_map<std::string, std::vector<double>> ¶m);
621 int setPersistentParameters(
const std::string ¶m);
638 int setHardwareCustomParameters(
const std::string ¶m);
649 std::string getHardwareCustomParameters(
const std::string ¶m);
696 std::vector<std::string> getTcpForceSensorNames();
719 int selectTcpForceSensor(
const std::string &name);
735 int setTcpForceSensorPose(
const std::vector<double> &sensor_pose);
751 std::vector<double> getTcpForceSensorPose();
772 bool hasTcpForceSensor();
789 int setTcpForceOffset(
const std::vector<double> &force_offset);
811 std::vector<double> getTcpForceOffset();
833 std::vector<std::string> getBaseForceSensorNames();
856 int selectBaseForceSensor(
const std::string &name);
878 bool hasBaseForceSensor();
901 int setBaseForceOffset(
const std::vector<double> &force_offset);
923 std::vector<double> getBaseForceOffset();
945 uint32_t getSafetyParametersCheckSum();
979 uint32_t calcSafetyParametersCheckSum(
1002 std::vector<double> getJointMaxPositions();
1024 std::vector<double> getJointMinPositions();
1046 std::vector<double> getJointMaxSpeeds();
1068 std::vector<double> getJointMaxAccelerations();
1090 std::vector<double> getTcpMaxSpeeds();
1112 std::vector<double> getTcpMaxAccelerations();
1140 int setGravity(
const std::vector<double> &gravity);
1164 std::vector<double> getGravity();
1196 int setTcpOffset(
const std::vector<double> &offset);
1222 std::vector<double> getTcpOffset();
1247 int setToolInertial(
double m,
const std::vector<double> &com,
1248 const std::vector<double> &inertial);
1284 int setPayload(
double m,
const std::vector<double> &cog,
1285 const std::vector<double> &aom,
1286 const std::vector<double> &inertia);
1341 bool toolSpaceInRange(
const std::vector<double> &pose);
1380 int firmwareUpdate(
const std::string &fw);
1405 std::tuple<std::string, double> getFirmwareUpdateProcess();
1427 std::vector<double> getLimitJointMaxPositions();
1449 std::vector<double> getLimitJointMinPositions();
1471 std::vector<double> getLimitJointMaxSpeeds();
1494 std::vector<double> getLimitJointMaxAccelerations();
1516 double getLimitTcpMaxSpeed();
1551 int getSafeguardStopSource();
1559 #define RobotConfig_DECLARES \ 1560 _FUNC(RobotConfig, 0, getDof) \ 1561 _FUNC(RobotConfig, 0, getName) \ 1562 _FUNC(RobotConfig, 0, getCycletime) \ 1563 _FUNC(RobotConfig, 2, setSlowDownFraction, level, fraction) \ 1564 _FUNC(RobotConfig, 1, getSlowDownFraction, level) \ 1565 _FUNC(RobotConfig, 0, getRobotType) \ 1566 _FUNC(RobotConfig, 0, getRobotSubType) \ 1567 _FUNC(RobotConfig, 0, getControlBoxType) \ 1568 _FUNC(RobotConfig, 0, getDefaultToolAcc) \ 1569 _FUNC(RobotConfig, 0, getDefaultToolSpeed) \ 1570 _FUNC(RobotConfig, 0, getDefaultJointAcc) \ 1571 _FUNC(RobotConfig, 0, getDefaultJointSpeed) \ 1572 _INST(RobotConfig, 1, setMountingPose, pose) \ 1573 _FUNC(RobotConfig, 0, getMountingPose) \ 1574 _INST(RobotConfig, 1, setCollisionLevel, level); \ 1575 _FUNC(RobotConfig, 0, getCollisionLevel); \ 1576 _INST(RobotConfig, 1, setCollisionStopType, type); \ 1577 _FUNC(RobotConfig, 0, getCollisionStopType); \ 1578 _FUNC(RobotConfig, 1, setHomePosition, positions); \ 1579 _FUNC(RobotConfig, 0, getHomePosition); \ 1580 _INST(RobotConfig, 1, setFreedriveDamp, damp); \ 1581 _FUNC(RobotConfig, 0, getFreedriveDamp); \ 1582 _FUNC(RobotConfig, 0, getTcpForceSensorNames) \ 1583 _INST(RobotConfig, 1, selectTcpForceSensor, name) \ 1584 _FUNC(RobotConfig, 0, hasTcpForceSensor) \ 1585 _INST(RobotConfig, 1, setTcpForceOffset, force_offset) \ 1586 _FUNC(RobotConfig, 0, getTcpForceOffset) \ 1587 _FUNC(RobotConfig, 0, getBaseForceSensorNames) \ 1588 _INST(RobotConfig, 1, selectBaseForceSensor, name) \ 1589 _FUNC(RobotConfig, 0, hasBaseForceSensor) \ 1590 _INST(RobotConfig, 1, setBaseForceOffset, force_offset) \ 1591 _FUNC(RobotConfig, 0, getBaseForceOffset) \ 1592 _INST(RobotConfig, 1, setPersistentParameters, param) \ 1593 _INST(RobotConfig, 1, setKinematicsCompensate, param) \ 1594 _INST(RobotConfig, 1, setHardwareCustomParameters, param) \ 1595 _FUNC(RobotConfig, 1, getHardwareCustomParameters, param) \ 1596 _INST(RobotConfig, 0, setRobotZero) \ 1597 _FUNC(RobotConfig, 1, getKinematicsParam, real) \ 1598 _FUNC(RobotConfig, 1, getKinematicsCompensate, ref_temperature) \ 1599 _FUNC(RobotConfig, 0, getSafetyParametersCheckSum) \ 1600 _FUNC(RobotConfig, 1, confirmSafetyParameters, parameters) \ 1601 _FUNC(RobotConfig, 1, calcSafetyParametersCheckSum, parameters) \ 1602 _FUNC(RobotConfig, 0, getJointMaxPositions) \ 1603 _FUNC(RobotConfig, 0, getJointMinPositions) \ 1604 _FUNC(RobotConfig, 0, getJointMaxSpeeds) \ 1605 _FUNC(RobotConfig, 0, getJointMaxAccelerations) \ 1606 _FUNC(RobotConfig, 0, getTcpMaxSpeeds) \ 1607 _FUNC(RobotConfig, 0, getTcpMaxAccelerations) \ 1608 _FUNC(RobotConfig, 1, toolSpaceInRange, pose) \ 1609 _INST(RobotConfig, 4, setPayload, m, cog, aom, inertia) \ 1610 _FUNC(RobotConfig, 0, getPayload) \ 1611 _FUNC(RobotConfig, 0, getTcpOffset) \ 1612 _FUNC(RobotConfig, 0, getGravity) \ 1613 _INST(RobotConfig, 1, setGravity, gravity) \ 1614 _INST(RobotConfig, 1, setTcpOffset, offset) \ 1615 _INST(RobotConfig, 3, setToolInertial, m, com, inertial) \ 1616 _FUNC(RobotConfig, 1, firmwareUpdate, fw) \ 1617 _FUNC(RobotConfig, 0, getFirmwareUpdateProcess) \ 1618 _FUNC(RobotConfig, 1, setTcpForceSensorPose, sensor_pose) \ 1619 _FUNC(RobotConfig, 0, getTcpForceSensorPose) \ 1620 _FUNC(RobotConfig, 0, getLimitJointMaxPositions) \ 1621 _FUNC(RobotConfig, 0, getLimitJointMinPositions) \ 1622 _FUNC(RobotConfig, 0, getLimitJointMaxSpeeds) \ 1623 _FUNC(RobotConfig, 0, getLimitJointMaxAccelerations) \ 1624 _FUNC(RobotConfig, 0, getLimitTcpMaxSpeed) \ 1625 _FUNC(RobotConfig, 0, getSafeguardStopType) \ 1626 _FUNC(RobotConfig, 0, getSafeguardStopSource) 1631 #endif // AUBO_SDK_ROBOT_CONFIG_H
std::tuple< double, std::vector< double >, std::vector< double >, std::vector< double >> Payload
std::shared_ptr< RobotConfig > RobotConfigPtr