Add some message types
This commit is contained in:
parent
1695e6dc3f
commit
b4a5f76fb9
13
CMakeLists.txt
Normal file
13
CMakeLists.txt
Normal file
@ -0,0 +1,13 @@
|
||||
cmake_minimum_required(VERSION 3.8)
|
||||
project(rm_msgs)
|
||||
|
||||
find_package(rosidl_default_generators REQUIRED)
|
||||
rosidl_generate_interfaces(${PROJECT_NAME}
|
||||
"msg/DataMCU.msg"
|
||||
"msg/DataRef.msg"
|
||||
"msg/DataAI.msg"
|
||||
"msg/Ps2Data.msg"
|
||||
)
|
||||
|
||||
ament_package()
|
||||
|
4
msg/DataAI.msg
Normal file
4
msg/DataAI.msg
Normal file
@ -0,0 +1,4 @@
|
||||
float32 yaw
|
||||
float32 pit
|
||||
float32 rol
|
||||
uint8 noetice
|
9
msg/DataMCU.msg
Normal file
9
msg/DataMCU.msg
Normal file
@ -0,0 +1,9 @@
|
||||
float32 q0
|
||||
float32 q1
|
||||
float32 q2
|
||||
float32 q3
|
||||
float32 yaw
|
||||
float32 pit
|
||||
float32 rol
|
||||
float32 ball_speed
|
||||
uint8 notice
|
4
msg/DataRef.msg
Normal file
4
msg/DataRef.msg
Normal file
@ -0,0 +1,4 @@
|
||||
uint16 team
|
||||
uint16 time
|
||||
uint8 sentry_hp
|
||||
uint8 ballet_remain
|
20
msg/Ps2Data.msg
Normal file
20
msg/Ps2Data.msg
Normal file
@ -0,0 +1,20 @@
|
||||
# control input message
|
||||
float32 lx
|
||||
float32 ly
|
||||
float32 rx
|
||||
float32 ry
|
||||
|
||||
float32 up_down
|
||||
float32 left_right
|
||||
|
||||
bool l1
|
||||
bool l2
|
||||
bool r1
|
||||
bool r2
|
||||
|
||||
# 四种模式
|
||||
uint8 mode # 0:手柄控制 1:键盘控制 2:自瞄 3:手动瞄准
|
||||
|
||||
bool select
|
||||
bool start
|
||||
|
16
package.xml
Normal file
16
package.xml
Normal file
@ -0,0 +1,16 @@
|
||||
<?xml version="1.0"?>
|
||||
<package format="3">
|
||||
<name>rm_msgs</name>
|
||||
<version>0.0.1</version>
|
||||
<description>这个包包含用于机器人操作的消息定义。</description>
|
||||
<maintainer email="1683502971@qq.com">biao</maintainer>
|
||||
<license>MIT</license>
|
||||
|
||||
<buildtool_depend>rosidl_default_generators</buildtool_depend>
|
||||
<exec_depend>rosidl_default_runtime</exec_depend>
|
||||
<member_of_group>rosidl_interface_packages</member_of_group>
|
||||
|
||||
<export>
|
||||
<build_type>ament_cmake</build_type>
|
||||
</export>
|
||||
</package>
|
Loading…
Reference in New Issue
Block a user