Files
hivecore_robot_interfaces/src/action/Arm.action

21 lines
1.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Action Goal: 机械臂控制指令
int8 body_id # 身体部位ID (左臂=0, 右臂=1 双臂=2)
int8 data_type # 数据类型标识 (2-角度控制对应单臂的数据长度为6双臂为12 数组填充6个关节的角度值 3-位姿控制对应单臂的数据长度为7双臂为14 数组填充手臂的末端位姿)
int16 data_length # 数据长度 (角度控制对应单臂的数据长度为6双臂为12位姿控制对应单臂的数据长度为7双臂为14)
int64 command_id # 指令ID用于唯一标识该条指令
int64 frame_time_stamp # 时间戳 (单位: 纳秒/微秒,视系统定义而定)
float64[] data_array # 数据数组 (角度控制对应单臂的数据长度为6双臂为12 数组填充6个关节的角度值 位姿控制对应单臂的数据长度为7双臂为14 数组填充手臂的末端位姿)
---
# Action Result: 执行结果
int32 result # 执行结果状态码 (0=成功, 非0=错误码)
int64 command_id # 对应的指令ID
int64 end_time # 执行结束时间戳
geometry_msgs/Pose pose # 最终机械臂末端姿态
---
# Action Feedback: 执行反馈
int64 command_id # 正在执行的指令ID
int16 int_lenth # 整数数据长度
int16 float_length # 浮点数数据长度
int32[] int_data_array # 整数反馈数据数组 (例如: 状态标志位)
float64[] float_data_array # 浮点数反馈数据数组 (例如: 当前关节角度, 实时进度)