修改interface模式

This commit is contained in:
zj
2025-10-24 19:29:12 +08:00
parent c25c6d6267
commit e3d6b93181
6 changed files with 11 additions and 38 deletions

View File

@@ -26,10 +26,6 @@ set(msg_files
msg/ImgMsg.msg
msg/MotorPos.msg
msg/MotorCmd.msg
msg/BodyType.msg
msg/ArmActionType.msg
msg/ArmErrCode.msg
msg/ArmDataLength.msg
msg/SkillCall.msg
)
set(action_files
@@ -53,6 +49,12 @@ set(srv_files
srv/MapSave.srv
)
include_directories(include)
ament_export_include_directories(include)
install(DIRECTORY include/
DESTINATION include/interfaces
)
# uncomment the following section in order to fill in
# further dependencies manually.
# find_package(<dependency> REQUIRED)

View File

@@ -1,17 +1,17 @@
interfaces/BodyType body_id
interfaces/ArmActionType data_type
interfaces/ArmDataLength data_length
int8 body_id
int8 data_type
int16 data_length
int64 command_id
int64 frame_time_stamp
float64[] data_array
---
interfaces/ArmErrCode result
int32 result
int64 command_id
int64 end_time
geometry_msgs/Pose pose
---
int64 command_id
int16 int_lenth
interfaces/ArmDataLength float_length
int16 float_length
int32[] int_data_array
float64[] float_data_array

View File

@@ -1,6 +0,0 @@
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

View File

@@ -1,10 +0,0 @@
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

View File

@@ -1,9 +0,0 @@
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

View File

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