Skip to content

Commit 1fab13e

Browse files
aaaa319afcnd
andauthored
fix service tutorial, incorrrect type for ROSIDL_GET_SRV_TYPE_SUPPORT (#417)
Co-authored-by: afernandez.conde <afernandez.conde@mecalux.com>
1 parent 74ccd6e commit 1fab13e

File tree

1 file changed

+6
-6
lines changed
  • _docs/tutorials/programming_rcl_rclc/service

1 file changed

+6
-6
lines changed

_docs/tutorials/programming_rcl_rclc/service/services.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Starting from a code where RCL is initialized and a micro-ROS node is created, t
3232
const char * service_name = "/addtwoints";
3333

3434
// Get message type support
35-
const rosidl_message_type_support_t * type_support =
35+
const rosidl_service_type_support_t * type_support =
3636
ROSIDL_GET_SRV_TYPE_SUPPORT(example_interfaces, srv, AddTwoInts);
3737

3838
// 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
5454
const char * service_name = "/addtwoints";
5555
5656
// Get message type support
57-
const rosidl_message_type_support_t * type_support =
57+
const rosidl_service_type_support_t * type_support =
5858
ROSIDL_GET_SRV_TYPE_SUPPORT(example_interfaces, srv, AddTwoInts);
5959
6060
// 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
7676
const char * service_name = "/addtwoints";
7777

7878
// Get message type support
79-
const rosidl_message_type_support_t * type_support =
79+
const rosidl_service_type_support_t * type_support =
8080
ROSIDL_GET_SRV_TYPE_SUPPORT(example_interfaces, srv, AddTwoInts);
8181

8282
// Set service QoS
@@ -165,7 +165,7 @@ The service client initialization is almost identical to the server one:
165165
const char * service_name = "/addtwoints";
166166

167167
// Get message type support
168-
const rosidl_message_type_support_t * type_support =
168+
const rosidl_service_type_support_t * type_support =
169169
ROSIDL_GET_SRV_TYPE_SUPPORT(example_interfaces, srv, AddTwoInts);
170170

171171
// Initialize client with default configuration
@@ -187,7 +187,7 @@ The service client initialization is almost identical to the server one:
187187
const char * service_name = "/addtwoints";
188188
189189
// Get message type support
190-
const rosidl_message_type_support_t * type_support =
190+
const rosidl_service_type_support_t * type_support =
191191
ROSIDL_GET_SRV_TYPE_SUPPORT(example_interfaces, srv, AddTwoInts);
192192
193193
// Initialize client with default configuration
@@ -209,7 +209,7 @@ The service client initialization is almost identical to the server one:
209209
const char * service_name = "/addtwoints";
210210

211211
// Get message type support
212-
const rosidl_message_type_support_t * type_support =
212+
const rosidl_service_type_support_t * type_support =
213213
ROSIDL_GET_SRV_TYPE_SUPPORT(example_interfaces, srv, AddTwoInts);
214214

215215
// Set client QoS

0 commit comments

Comments
 (0)