数据类型的定义
更多...
#include <stddef.h>
#include <array>
#include <vector>
#include <memory>
#include <functional>
#include <iostream>
#include <string>
浏览源代码.
|
#define | CARTESIAN_DOF 6 |
| Cartesion degree of freedom, 6 for x,y,z,rx,ry,rz. 更多...
|
|
#define | SAFETY_PARAM_SELECT_NUM 2 |
|
#define | SAFETY_PLANES_NUM 8 |
|
#define | SAFETY_CUBIC_NUM 10 |
|
#define | TOOL_CONFIGURATION_NUM 3 |
|
#define | ENUM_AuboErrorCodes_DECLARES |
| 接口函数返回值定义 更多...
|
|
#define | ENUM_RuntimeState_DECLARES |
| The RuntimeState enum. 更多...
|
|
#define | ENUM_RobotModeType_DECLARES |
| The RobotModeType enum. 更多...
|
|
#define | ENUM_SafetyModeType_DECLARES |
|
#define | ENUM_OperationalModeType_DECLARES |
| 根据ISO 10218-1:2011(E) 5.7节 Automatic: In automatic mode, the robot shall execute the task programme and the safeguarding measures shall be functioning. 更多...
|
|
#define | ENUM_RobotControlModeType_DECLARES |
| 机器人的控制模式, 最终的控制对象 更多...
|
|
#define | ENUM_JointServoModeType_DECLARES |
|
#define | ENUM_JointStateType_DECLARES |
|
#define | ENUM_StandardInputAction_DECLARES |
|
#define | ENUM_StandardOutputRunState_DECLARES |
|
#define | ENUM_SafetyInputAction_DECLARES |
|
#define | ENUM_SafetyOutputRunState_DECLARES |
|
#define | ENUM_PayloadIdentifyMoveAxis_DECLARES |
|
#define | ENUM_EnvelopingShape_DECLARES |
|
#define | ENUM_TaskFrameType_DECLARES |
|
#define | ENUM_TraceLevel_DECLARES |
|
#define | ENUM_AxisModeType_DECLARES |
|
#define | ENUM_SafeguedStopType_DECLARES |
|
#define | ENUM_ITEM(c, n, ...) c = n, |
|
#define | DECL_TO_STRING_FUNC(ENUM) |
|
#define | ENUM_ITEM(c, n, ...) |
|
#define | ENUM_ITEM(n, v, s) s, |
|
#define | ENUM_ITEM(n, v, s) n##_INDEX, |
|
#define | ENUM_ITEM(n, v, s) |
|
|
using | arcs::common_interface::Vector3d = std::array< double, 3 > |
|
using | arcs::common_interface::Vector4d = std::array< double, 4 > |
|
using | arcs::common_interface::Vector3f = std::array< float, 3 > |
|
using | arcs::common_interface::Vector4f = std::array< float, 4 > |
|
using | arcs::common_interface::Vector6f = std::array< float, 6 > |
|
using | arcs::common_interface::ResultWithErrno = std::tuple< std::vector< double >, int > |
|
using | arcs::common_interface::ResultWithErrno1 = std::tuple< std::vector< std::vector< double >>, int > |
|
using | arcs::common_interface::Payload = std::tuple< double, std::vector< double >, std::vector< double >, std::vector< double >> |
|
using | arcs::common_interface::ForceSensorCalibResult = std::tuple< std::vector< double >, std::vector< double >, double, std::vector< double >> |
|
using | arcs::common_interface::ForceSensorCalibResultWithError = std::tuple< std::vector< double >, std::vector< double >, double, std::vector< double >, double > |
|
using | arcs::common_interface::DynamicsModel = std::tuple< std::vector< double >, std::vector< double >, std::vector< double >> |
|
using | arcs::common_interface::Box = std::vector< double > |
|
using | arcs::common_interface::Cylinder = std::vector< double > |
|
using | arcs::common_interface::Sphere = std::vector< double > |
|
using | arcs::common_interface::RobotMsgVector = std::vector< RobotMsg > |
|
|
enum | arcs::common_interface::AuboErrorCodes : int { arcs::common_interface::ENUM_AuboErrorCodes_DECLARES
} |
|
enum | arcs::common_interface::RuntimeState : int { arcs::common_interface::RuntimeState::ENUM_RuntimeState_DECLARES
} |
|
enum | arcs::common_interface::RobotModeType : int { arcs::common_interface::RobotModeType::ENUM_RobotModeType_DECLARES
} |
|
enum | arcs::common_interface::AxisModeType : int { arcs::common_interface::AxisModeType::ENUM_AxisModeType_DECLARES
} |
|
enum | arcs::common_interface::SafetyModeType : int { arcs::common_interface::SafetyModeType::ENUM_SafetyModeType_DECLARES
} |
| 安全状态: 更多...
|
|
enum | arcs::common_interface::OperationalModeType : int { arcs::common_interface::OperationalModeType::ENUM_OperationalModeType_DECLARES
} |
| 操作模式 更多...
|
|
enum | arcs::common_interface::RobotControlModeType : int { arcs::common_interface::RobotControlModeType::ENUM_RobotControlModeType_DECLARES
} |
| 机器人控制模式 更多...
|
|
enum | arcs::common_interface::JointServoModeType : int { arcs::common_interface::JointServoModeType::ENUM_JointServoModeType_DECLARES
} |
| 关节伺服模式 更多...
|
|
enum | arcs::common_interface::JointStateType : int { arcs::common_interface::JointStateType::ENUM_JointStateType_DECLARES
} |
| 关节状态 更多...
|
|
enum | arcs::common_interface::StandardOutputRunState : int { arcs::common_interface::StandardOutputRunState::ENUM_StandardOutputRunState_DECLARES
} |
| 标准输出运行状态 更多...
|
|
enum | arcs::common_interface::StandardInputAction : int { arcs::common_interface::StandardInputAction::ENUM_StandardInputAction_DECLARES
} |
| The StandardInputAction enum. 更多...
|
|
enum | arcs::common_interface::SafetyInputAction : int { arcs::common_interface::SafetyInputAction::ENUM_SafetyInputAction_DECLARES
} |
|
enum | arcs::common_interface::SafetyOutputRunState : int { arcs::common_interface::SafetyOutputRunState::ENUM_SafetyOutputRunState_DECLARES
} |
|
enum | arcs::common_interface::TaskFrameType { arcs::common_interface::ENUM_TaskFrameType_DECLARES
} |
|
enum | arcs::common_interface::EnvelopingShape : int { arcs::common_interface::ENUM_EnvelopingShape_DECLARES
} |
|
enum | arcs::common_interface::PayloadIdentifyMoveAxis : int { arcs::common_interface::ENUM_PayloadIdentifyMoveAxis_DECLARES
} |
|
enum | arcs::common_interface::TraceLevel { arcs::common_interface::ENUM_TraceLevel_DECLARES
} |
|
enum | arcs::common_interface::SafeguedStopType : int { arcs::common_interface::ENUM_SafeguedStopType_DECLARES
} |
|
enum | arcs::common_interface::ForceControlState { arcs::common_interface::ForceControlState::Stopped,
arcs::common_interface::ForceControlState::Starting,
arcs::common_interface::ForceControlState::Stropping,
arcs::common_interface::ForceControlState::Running
} |
|
enum | arcs::common_interface::RefFrameType { arcs::common_interface::RefFrameType::None,
arcs::common_interface::RefFrameType::Tool,
arcs::common_interface::RefFrameType::Path,
arcs::common_interface::RefFrameType::Base
} |
|
enum | arcs::common_interface::error_type {
arcs::common_interface::parse_error = -32700,
arcs::common_interface::invalid_request = -32600,
arcs::common_interface::method_not_found = -32601,
arcs::common_interface::invalid_params = -32602,
arcs::common_interface::internal_error = -32603,
arcs::common_interface::server_error,
arcs::common_interface::invalid
} |
| 异常类型 更多...
|
|
enum | arcs::common_interface::ExceptionCode {
arcs::common_interface::EC_DISCONNECTED = -1,
arcs::common_interface::EC_NOT_LOGINED = -2,
arcs::common_interface::EC_INVAL_SOCKET = -3,
arcs::common_interface::EC_REQUEST_BUSY = -4,
arcs::common_interface::EC_SEND_FAILED = -5,
arcs::common_interface::EC_RECV_TIMEOUT = -6,
arcs::common_interface::EC_RECV_ERROR = -7,
arcs::common_interface::EC_PARSE_ERROR = -8,
arcs::common_interface::EC_INVALID_REQUEST = -9,
arcs::common_interface::EC_METHOD_NOT_FOUND = -10,
arcs::common_interface::EC_INVALID_PARAMS = -11,
arcs::common_interface::EC_INTERNAL_ERROR = -12,
arcs::common_interface::EC_SERVER_ERROR = -13,
arcs::common_interface::EC_INVALID = -14
} |
| 异常码 更多...
|
|
数据类型的定义
在文件 type_def.h 中定义.
Cartesion degree of freedom, 6 for x,y,z,rx,ry,rz.
在文件 type_def.h 第 23 行定义.
#define DECL_TO_STRING_FUNC |
( |
|
ENUM | ) |
|
值:inline std::string toString(ENUM v) \
{ \
using T = ENUM; \
std::string name = #ENUM "."; \
ENUM_##ENUM##_DECLARES \
\
return #ENUM ".Unkown"; \
} \
inline std::ostream &
operator<<(std::ostream &os, ENUM v) \
{ \
os << toString(v); \
return os; \
}
std::ostream & operator<<(std::ostream &os, TrajConfig p)
在文件 type_def.h 第 540 行定义.
#define ENUM_AuboErrorCodes_DECLARES |
#define ENUM_AxisModeType_DECLARES |
值:ENUM_ITEM(NoController, -1,
"提供给示教器使用的, 如果aubo_control进程崩溃则会显示为NoController")
\ #define ENUM_ITEM(c, n,...)
在文件 type_def.h 第 409 行定义.
#define ENUM_EnvelopingShape_DECLARES |
#define ENUM_ITEM |
( |
|
c, |
|
|
|
n, |
|
|
|
... |
|
) |
| c = n, |
#define ENUM_ITEM |
( |
|
c, |
|
|
|
n, |
|
|
|
... |
|
) |
| |
值:if (v == T::c) { \
return name + #c; \
}
在文件 type_def.h 第 555 行定义.
#define ENUM_ITEM |
( |
|
n, |
|
|
|
v, |
|
|
|
s |
|
) |
| s, |
#define ENUM_ITEM |
( |
|
n, |
|
|
|
v, |
|
|
|
s |
|
) |
| n##_INDEX, |
#define ENUM_ITEM |
( |
|
n, |
|
|
|
v, |
|
|
|
s |
|
) |
| |
值:if (retval == v) \
index = n##_INDEX;
在文件 type_def.h 第 555 行定义.
#define ENUM_JointServoModeType_DECLARES |
#define ENUM_JointStateType_DECLARES |
#define ENUM_OperationalModeType_DECLARES |
值:ENUM_ITEM(Disabled, 0,
"禁用模式: 不使用Operational Mode")
\ ENUM_ITEM(Automatic, 1,
"自动模式: 机器人正常工作模式, 运行速度不会被限制")
\ ENUM_ITEM(Manual, 2,
"手动模式: 机器人编程示教模式(T1), 机器人运行速度将会被限制或者机器人程序校验模式(T2)")
#define ENUM_ITEM(c, n,...)
根据ISO 10218-1:2011(E) 5.7节 Automatic: In automatic mode, the robot shall execute the task programme and the safeguarding measures shall be functioning.
Automatic operation shall be prevented if any stop condition is detected. Switching from this mode shall result in a stop.
在文件 type_def.h 第 284 行定义.
#define ENUM_PayloadIdentifyMoveAxis_DECLARES |
#define ENUM_RobotControlModeType_DECLARES |
值:#define ENUM_ITEM(c, n,...)
机器人的控制模式, 最终的控制对象
在文件 type_def.h 第 292 行定义.
#define ENUM_RobotModeType_DECLARES |
值:ENUM_ITEM(NoController, -1,
"提供给示教器使用的, 如果aubo_control进程崩溃则会显示为NoController")
\ ENUM_ITEM(Disconnected, 0,
"没有连接到机械臂本体(控制器与接口板断开连接或是 EtherCAT 等总线断开)")
\ ENUM_ITEM(ConfirmSafety, 1,
"正在进行安全配置, 断电状态下进行")
\ ENUM_ITEM(PowerOn, 4,
"机械臂本体上电成功, 刹车暂未松开(抱死), 关节初始状态未获取")
\ ENUM_ITEM(Idle, 5,
"机械臂上电成功, 刹车暂未松开(抱死), 电机不通电, 关节初始状态获取完成")
\ ENUM_ITEM(Running, 8,
"机械臂刹车松开, 运行模式, 控制权由硬件移交给软件")
\ #define ENUM_ITEM(c, n,...)
The RobotModeType enum.
硬件强相关
在文件 type_def.h 第 249 行定义.
#define ENUM_RuntimeState_DECLARES |
值:#define ENUM_ITEM(c, n,...)
The RuntimeState enum.
在文件 type_def.h 第 234 行定义.
#define ENUM_SafeguedStopType_DECLARES |
#define ENUM_SafetyInputAction_DECLARES |
值: ENUM_ITEM(SafeguardReset, 3,
"安全输入触发防护重置, 边沿触发")
\ ENUM_ITEM(ReducedMode, 7,
"安全参数切换1(缩减模式),序号越低优先级越高,三路输出都无效时,选用第0组安全参数")
\ ENUM_ITEM(AutomaticModeSafeguardStop, 8,
"自动模式下防护停机输入(需要配置三档位使能设备)")
\ ENUM_ITEM(AutomaticModeSafeguardReset, 9,
"自动模式下上升沿触发防护重置(需要配置三档位使能设备)")
#define ENUM_ITEM(c, n,...)
在文件 type_def.h 第 353 行定义.
#define ENUM_SafetyModeType_DECLARES |
值: ENUM_ITEM(Recovery, 3,
"启动时如果在安全限制之外, 机器人将进入recovery模式")
\ ENUM_ITEM(Violation, 4,
"超出安全限制(根据安全配置, 例如速度超限等)")
\ ENUM_ITEM(ProtectiveStop, 5,
"软件触发的停机(保持轨迹, 不抱闸, 不断电)")
\ ENUM_ITEM(SafeguardStop, 6,
"IO触发的防护停机(不保持轨迹, 抱闸, 不断电)")
\ ENUM_ITEM(SystemEmergencyStop,7,
"系统急停:急停信号由外部输入(可配置输入), 不对外输出急停信号")
\ ENUM_ITEM(RobotEmergencyStop, 8,
"机器人急停:控制柜急停输入或者示教器急停按键触发, 对外输出急停信号")
\ #define ENUM_ITEM(c, n,...)
在文件 type_def.h 第 264 行定义.
#define ENUM_SafetyOutputRunState_DECLARES |
值: ENUM_ITEM(SystemEmergencyStop, 1,
"输出高当有机器人急停输入或者急停按键被按下")
\ ENUM_ITEM(NotSystemEmergencyStop, 2,
"输出低当有机器人急停输入或者急停按键被按下")
\ ENUM_ITEM(RobotMoving, 3,
"输出高当有关节运动速度超过 0.1rad/s")
\ ENUM_ITEM(RobotNotMoving, 4,
"输出高当所有的关节运动速度不超过 0.1rad/s")
\ ENUM_ITEM(RobotNotStopping, 8,
"输出低当机器人正在急停或者安全停止中")
#define ENUM_ITEM(c, n,...)
在文件 type_def.h 第 365 行定义.
#define ENUM_StandardInputAction_DECLARES |
#define ENUM_StandardOutputRunState_DECLARES |
值: ENUM_ITEM(RobotEmergencyStop, 8,
"高电平指示机器人急停按下")
\ ENUM_ITEM(SystemEmergencyStop, 9,
"高电平指示外部输入系统急停按下")
\ ENUM_ITEM(InternalEmergencyStop, 8,
"高电平指示机器人急停按下")
\ ENUM_ITEM(ExternalEmergencyStop, 9,
"高电平指示外部输入系统急停按下")
\ ENUM_ITEM(SystemError, 10,
"系统错误,包括故障、超限、急停、安全停止、防护停止 ")
\ ENUM_ITEM(NotSystemError, 11,
"无系统错误,包括普通模式、缩减模式和恢复模式 ")
\ ENUM_ITEM(RobotOperable, 12,
"机器人可操作,机器人上电且松刹车了 ")
#define ENUM_ITEM(c, n,...)
在文件 type_def.h 第 336 行定义.
#define ENUM_TaskFrameType_DECLARES |
值: ENUM_ITEM(POINT_FORCE, 1,
"力控坐标系发生变换, 使得力控参考坐标系的y轴沿着机器人TCP指向力控所选特征的原点, x和z轴取决于所选特征的原始方向" \
"力控坐标系发生变换, 使得力控参考坐标系的y轴沿着机器人TCP指向力控所选特征的原点, x和z轴取决于所选特征的原始方向" \
"机器人TCP与所选特征的起点之间的距离至少为10mm" \
"优先选择X轴, 为所选特征的X轴在力控坐标系Y轴垂直平面上的投影, 如果所选特征的X轴与力控坐标系的Y轴平行, " \
"通过类似方法确定力控坐标系Z轴, Y-X或者Y-Z轴确定之后, 通过右手法则确定剩下的轴")
\ ENUM_ITEM(FRAME_FORCE, 2,
"力控坐标系不发生变换 SIMPLE_FORC")
\ ENUM_ITEM(MOTION_FORCE, 3,
"力控坐标系发生变换, 使得力控参考坐标系的x轴为机器人TCP速度在所选特征x-y平面上的投影y轴将垂直于机械臂运动, 并在所选特征的x-y平面内")
\ #define ENUM_ITEM(c, n,...)
在文件 type_def.h 第 387 行定义.
#define ENUM_TraceLevel_DECLARES |
#define SAFETY_CUBIC_NUM 10 |
#define SAFETY_PARAM_SELECT_NUM 2 |
#define SAFETY_PLANES_NUM 8 |
#define TOOL_CONFIGURATION_NUM 3 |