add setAttitude service

This commit is contained in:
Sem van der Hoeven
2023-05-02 11:05:51 +02:00
parent d149b72c24
commit 4249f2b589
3 changed files with 16 additions and 6 deletions

View File

@@ -22,6 +22,7 @@ find_package(rosidl_default_generators REQUIRED)
rosidl_generate_interfaces(${PROJECT_NAME} rosidl_generate_interfaces(${PROJECT_NAME}
"srv/SetAttitude.srv" "srv/SetAttitude.srv"
"srv/SetVelocity.srv"
) )
if(BUILD_TESTING) if(BUILD_TESTING)

View File

@@ -1,9 +1,9 @@
#all speeds are in meters/second #all angles are in degrees
float32 x_speed float32 yaw
float32 y_speed float32 pitch
float32 z_speed float32 roll
#angle is in degrees #thrust between -1 and 1
float32 angle float32 thrust
--- ---
int8 status int8 status

View File

@@ -0,0 +1,9 @@
#all speeds are in meters/second
float32 x_speed
float32 y_speed
float32 z_speed
#angle is in degrees
float32 angle
---
int8 status