add drv interfaces

This commit is contained in:
hehe
2025-10-22 17:45:43 +08:00
parent a56b173210
commit 5c655d6279
7 changed files with 39 additions and 0 deletions

View File

@@ -13,11 +13,18 @@ find_package(ament_cmake REQUIRED)
find_package(rosidl_default_generators REQUIRED)
find_package(std_msgs REQUIRED)
find_package(geometry_msgs REQUIRED)
find_package(sensor_msgs REQUIRED)
find_package(builtin_interfaces REQUIRED)
set(msg_files
msg/PoseArrayClassAndID.msg
msg/PoseClassAndID.msg
msg/DistMsg.msg
msg/InputMsg.msg
msg/ImuMsg.msg
msg/ImgMsg.msg
msg/MotorPos.msg
msg/MotorCmd.msg
)
set(action_files
action/MoveToPosition.action
@@ -50,6 +57,7 @@ rosidl_generate_interfaces(${PROJECT_NAME}
DEPENDENCIES
std_msgs
geometry_msgs
sensor_msgs
builtin_interfaces
)

5
src/msg/DistMsg.msg Normal file
View File

@@ -0,0 +1,5 @@
string source
string type
string position
int32[] ranges
sensor_msgs/PointCloud2 points

7
src/msg/ImgMsg.msg Normal file
View File

@@ -0,0 +1,7 @@
sensor_msgs/Image image_depth
sensor_msgs/Image image_color
float64[] karr
float64[] darr
string source
string position
string type

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

@@ -0,0 +1,4 @@
string source
string type
string position
sensor_msgs/Imu imu

5
src/msg/InputMsg.msg Normal file
View File

@@ -0,0 +1,5 @@
string source
string type
string position
int32 code
float32 value

5
src/msg/MotorCmd.msg Normal file
View File

@@ -0,0 +1,5 @@
string target
string type
string position
int32[] motor_id
float32[] motor_angle

5
src/msg/MotorPos.msg Normal file
View File

@@ -0,0 +1,5 @@
string source
string type
string position
int32[] motor_id
float32[] motor_angle