From d667f848e0a15c295ef42f631fc8f5725bb5c688 Mon Sep 17 00:00:00 2001 From: interactics Date: Thu, 30 Jun 2022 19:53:06 +0900 Subject: [PATCH 1/2] Delete Invalid address operator --- .../programming_rcl_rclc/pub_sub/pub_sub.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/_docs/tutorials/programming_rcl_rclc/pub_sub/pub_sub.md b/_docs/tutorials/programming_rcl_rclc/pub_sub/pub_sub.md index 59c589bc..1e357362 100644 --- a/_docs/tutorials/programming_rcl_rclc/pub_sub/pub_sub.md +++ b/_docs/tutorials/programming_rcl_rclc/pub_sub/pub_sub.md @@ -37,7 +37,7 @@ Starting from a code where RCL is initialized and a micro-ROS node is created, t // Creates a reliable rcl publisher rcl_ret_t rc = rclc_publisher_init_default( &publisher, &node, - &type_support, &topic_name); + type_support, &topic_name); if (RCL_RET_OK != rc) { ... // Handle error @@ -58,7 +58,7 @@ Starting from a code where RCL is initialized and a micro-ROS node is created, t // Creates a best effort rcl publisher rcl_ret_t rc = rclc_publisher_init_best_effort( &publisher, &node, - &type_support, &topic_name); + type_support, &topic_name); if (RCL_RET_OK != rc) { ... // Handle error @@ -83,7 +83,7 @@ Starting from a code where RCL is initialized and a micro-ROS node is created, t // Creates a rcl publisher with customized quality-of-service options rcl_ret_t rc = rclc_publisher_init( &publisher, &node, - &type_support, &topic_name, qos_profile); + type_support, &topic_name, qos_profile); if (RCL_RET_OK != rc) { ... // Handle error @@ -136,7 +136,7 @@ The suscriptor initialization is almost identical to the publisher one: // Initialize a reliable subscriber rcl_ret_t rc = rclc_subscription_init_default( &subscriber, &node, - &type_support, &topic_name); + type_support, &topic_name); if (RCL_RET_OK != rc) { ... // Handle error @@ -158,7 +158,7 @@ The suscriptor initialization is almost identical to the publisher one: // Initialize best effort subscriber rcl_ret_t rc = rclc_subscription_init_best_effort( &subscriber, &node, - &type_support, &topic_name); + type_support, &topic_name); if (RCL_RET_OK != rc) { ... // Handle error @@ -183,7 +183,7 @@ The suscriptor initialization is almost identical to the publisher one: // Initialize a subscriber with customized quality-of-service options rcl_ret_t rc = rclc_subscription_init( &subscriber, &node, - &type_support, &topic_name, qos_profile); + type_support, &topic_name, qos_profile); if (RCL_RET_OK != rc) { ... // Handle error From a14ff7fbc8e2a657507c845c417c4432150449f2 Mon Sep 17 00:00:00 2001 From: Antonio Cuadros <49162117+Acuadros95@users.noreply.github.com> Date: Fri, 1 Jul 2022 09:39:06 +0200 Subject: [PATCH 2/2] Apply suggestions from code review --- .../programming_rcl_rclc/pub_sub/pub_sub.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/_docs/tutorials/programming_rcl_rclc/pub_sub/pub_sub.md b/_docs/tutorials/programming_rcl_rclc/pub_sub/pub_sub.md index 1e357362..ba055233 100644 --- a/_docs/tutorials/programming_rcl_rclc/pub_sub/pub_sub.md +++ b/_docs/tutorials/programming_rcl_rclc/pub_sub/pub_sub.md @@ -37,7 +37,7 @@ Starting from a code where RCL is initialized and a micro-ROS node is created, t // Creates a reliable rcl publisher rcl_ret_t rc = rclc_publisher_init_default( &publisher, &node, - type_support, &topic_name); + type_support, topic_name); if (RCL_RET_OK != rc) { ... // Handle error @@ -58,7 +58,7 @@ Starting from a code where RCL is initialized and a micro-ROS node is created, t // Creates a best effort rcl publisher rcl_ret_t rc = rclc_publisher_init_best_effort( &publisher, &node, - type_support, &topic_name); + type_support, topic_name); if (RCL_RET_OK != rc) { ... // Handle error @@ -83,7 +83,7 @@ Starting from a code where RCL is initialized and a micro-ROS node is created, t // Creates a rcl publisher with customized quality-of-service options rcl_ret_t rc = rclc_publisher_init( &publisher, &node, - type_support, &topic_name, qos_profile); + type_support, topic_name, qos_profile); if (RCL_RET_OK != rc) { ... // Handle error @@ -136,7 +136,7 @@ The suscriptor initialization is almost identical to the publisher one: // Initialize a reliable subscriber rcl_ret_t rc = rclc_subscription_init_default( &subscriber, &node, - type_support, &topic_name); + type_support, topic_name); if (RCL_RET_OK != rc) { ... // Handle error @@ -158,7 +158,7 @@ The suscriptor initialization is almost identical to the publisher one: // Initialize best effort subscriber rcl_ret_t rc = rclc_subscription_init_best_effort( &subscriber, &node, - type_support, &topic_name); + type_support, topic_name); if (RCL_RET_OK != rc) { ... // Handle error @@ -183,7 +183,7 @@ The suscriptor initialization is almost identical to the publisher one: // Initialize a subscriber with customized quality-of-service options rcl_ret_t rc = rclc_subscription_init( &subscriber, &node, - type_support, &topic_name, qos_profile); + type_support, topic_name, qos_profile); if (RCL_RET_OK != rc) { ... // Handle error