From f58edc9c8f706b55fd9c73be51906812e5fde3a2 Mon Sep 17 00:00:00 2001 From: "afernandez.conde" Date: Thu, 13 Jun 2024 14:32:38 +0200 Subject: [PATCH] fix service tutorial, incorrrect type for ROSIDL_GET_SRV_TYPE_SUPPORT --- .../programming_rcl_rclc/service/services.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/_docs/tutorials/programming_rcl_rclc/service/services.md b/_docs/tutorials/programming_rcl_rclc/service/services.md index 7255cd42..b099e5a7 100644 --- a/_docs/tutorials/programming_rcl_rclc/service/services.md +++ b/_docs/tutorials/programming_rcl_rclc/service/services.md @@ -32,7 +32,7 @@ Starting from a code where RCL is initialized and a micro-ROS node is created, t const char * service_name = "/addtwoints"; // Get message type support - const rosidl_message_type_support_t * type_support = + const rosidl_service_type_support_t * type_support = ROSIDL_GET_SRV_TYPE_SUPPORT(example_interfaces, srv, AddTwoInts); // Initialize server with default configuration @@ -54,7 +54,7 @@ Starting from a code where RCL is initialized and a micro-ROS node is created, t const char * service_name = "/addtwoints"; // Get message type support - const rosidl_message_type_support_t * type_support = + const rosidl_service_type_support_t * type_support = ROSIDL_GET_SRV_TYPE_SUPPORT(example_interfaces, srv, AddTwoInts); // Initialize server with default configuration @@ -76,7 +76,7 @@ Starting from a code where RCL is initialized and a micro-ROS node is created, t const char * service_name = "/addtwoints"; // Get message type support - const rosidl_message_type_support_t * type_support = + const rosidl_service_type_support_t * type_support = ROSIDL_GET_SRV_TYPE_SUPPORT(example_interfaces, srv, AddTwoInts); // Set service QoS @@ -165,7 +165,7 @@ The service client initialization is almost identical to the server one: const char * service_name = "/addtwoints"; // Get message type support - const rosidl_message_type_support_t * type_support = + const rosidl_service_type_support_t * type_support = ROSIDL_GET_SRV_TYPE_SUPPORT(example_interfaces, srv, AddTwoInts); // Initialize client with default configuration @@ -187,7 +187,7 @@ The service client initialization is almost identical to the server one: const char * service_name = "/addtwoints"; // Get message type support - const rosidl_message_type_support_t * type_support = + const rosidl_service_type_support_t * type_support = ROSIDL_GET_SRV_TYPE_SUPPORT(example_interfaces, srv, AddTwoInts); // Initialize client with default configuration @@ -209,7 +209,7 @@ The service client initialization is almost identical to the server one: const char * service_name = "/addtwoints"; // Get message type support - const rosidl_message_type_support_t * type_support = + const rosidl_service_type_support_t * type_support = ROSIDL_GET_SRV_TYPE_SUPPORT(example_interfaces, srv, AddTwoInts); // Set client QoS