Nantes Université

Skip to content
Extraits de code Groupes Projets
Valider 494b9558 rédigé par Damien SIX's avatar Damien SIX Validation de Damien SIX
Parcourir les fichiers

refactor: remove MoveUp service from armada_controller

parent 20459a68
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -10,12 +10,6 @@ find_package(rosidl_default_generators REQUIRED) ...@@ -10,12 +10,6 @@ find_package(rosidl_default_generators REQUIRED)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# Generate services
rosidl_generate_interfaces(ls2n_drone_armada
"srv/MoveUp.srv"
DEPENDENCIES std_msgs
)
# Create a library for the controller core # Create a library for the controller core
add_library(armada_controller_core src/armada_controller.cpp) add_library(armada_controller_core src/armada_controller.cpp)
...@@ -39,10 +33,6 @@ target_include_directories(armada_controller PRIVATE include ...@@ -39,10 +33,6 @@ target_include_directories(armada_controller PRIVATE include
# Link the executable to the core library # Link the executable to the core library
target_link_libraries(armada_controller armada_controller_core Eigen3::Eigen) target_link_libraries(armada_controller armada_controller_core Eigen3::Eigen)
# Link with the generated services
rosidl_get_typesupport_target(cpp_typesupport_target ls2n_drone_armada "rosidl_typesupport_cpp")
target_link_libraries(armada_controller "${cpp_typesupport_target}")
# ROS2 dependencies for the executable # ROS2 dependencies for the executable
ament_target_dependencies( ament_target_dependencies(
armada_controller armada_controller
......
# Request - parameters for moving up
float64 distance # The distance to move up in meters
float64 speed # The speed at which to move in meters/second
---
# Response
bool success # Whether the command was accepted
string message # Additional information
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter