增加msg

This commit is contained in:
zj
2025-10-24 09:43:39 +08:00
parent 6ed1300ecc
commit e6ff6a8900
4 changed files with 29 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
int8 ARM_COMMAND_TYPE_ANGLE_STEP_ON = 0
int8 ARM_COMMAND_TYPE_POSE_STEP_ON = 1
int8 ARM_COMMAND_TYPE_ANGLE_DIRECT_MOVE = 2
int8 ARM_COMMAND_TYPE_POSE_DIRECT_MOVE = 3
int8 action_type

10
src/msg/ArmDataLength.msg Normal file
View File

@@ -0,0 +1,10 @@
int16 POSE_POSITION_X = 0
int16 POSE_POSITION_Y = 1
int16 POSE_POSITION_Z = 2
int16 POSE_QUATERNION_X = 3
int16 POSE_QUATERNION_Y = 4
int16 POSE_QUATERNION_Z = 5
int16 POSE_QUATERNION_W = 6
int16 POSE_DIMENSION = 7
int16 data_length

9
src/msg/ArmErrCode.msg Normal file
View File

@@ -0,0 +1,9 @@
int32 OK = 0
int32 UNKNOWN_ERR = -1
int32 ARM_NOW_FORCE_MOVING = -2
int32 ARM_COLLISION = -3
int32 ARM_AIM_CANNOT_REACH = -4
int32 ARM_NOW_NO_GOAL = -5
int32 ARM_GOAL_CANCELLED = -6
int32 result

4
src/msg/BodyType.msg Normal file
View File

@@ -0,0 +1,4 @@
int8 LEFT_ARM = 0
int8 RIGHT_ARM = 1
int8 body_id