Skip to content

Commit d25184f

Browse files
Delete Invalid address operator in pub-sub tutorial (#384)
* Delete Invalid address operator * Apply suggestions from code review Co-authored-by: Antonio Cuadros <49162117+Acuadros95@users.noreply.github.com>
1 parent d1c8e30 commit d25184f

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

  • _docs/tutorials/programming_rcl_rclc/pub_sub

‎_docs/tutorials/programming_rcl_rclc/pub_sub/pub_sub.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Starting from a code where RCL is initialized and a micro-ROS node is created, t
3737
// Creates a reliable rcl publisher
3838
rcl_ret_t rc = rclc_publisher_init_default(
3939
&publisher, &node,
40-
&type_support, &topic_name);
40+
type_support, topic_name);
4141

4242
if (RCL_RET_OK != rc) {
4343
... // Handle error
@@ -58,7 +58,7 @@ Starting from a code where RCL is initialized and a micro-ROS node is created, t
5858
// Creates a best effort rcl publisher
5959
rcl_ret_t rc = rclc_publisher_init_best_effort(
6060
&publisher, &node,
61-
&type_support, &topic_name);
61+
type_support, topic_name);
6262
6363
if (RCL_RET_OK != rc) {
6464
... // Handle error
@@ -83,7 +83,7 @@ Starting from a code where RCL is initialized and a micro-ROS node is created, t
8383
// Creates a rcl publisher with customized quality-of-service options
8484
rcl_ret_t rc = rclc_publisher_init(
8585
&publisher, &node,
86-
&type_support, &topic_name, qos_profile);
86+
type_support, topic_name, qos_profile);
8787

8888
if (RCL_RET_OK != rc) {
8989
... // Handle error
@@ -136,7 +136,7 @@ The suscriptor initialization is almost identical to the publisher one:
136136
// Initialize a reliable subscriber
137137
rcl_ret_t rc = rclc_subscription_init_default(
138138
&subscriber, &node,
139-
&type_support, &topic_name);
139+
type_support, topic_name);
140140

141141
if (RCL_RET_OK != rc) {
142142
... // Handle error
@@ -158,7 +158,7 @@ The suscriptor initialization is almost identical to the publisher one:
158158
// Initialize best effort subscriber
159159
rcl_ret_t rc = rclc_subscription_init_best_effort(
160160
&subscriber, &node,
161-
&type_support, &topic_name);
161+
type_support, topic_name);
162162
163163
if (RCL_RET_OK != rc) {
164164
... // Handle error
@@ -183,7 +183,7 @@ The suscriptor initialization is almost identical to the publisher one:
183183
// Initialize a subscriber with customized quality-of-service options
184184
rcl_ret_t rc = rclc_subscription_init(
185185
&subscriber, &node,
186-
&type_support, &topic_name, qos_profile);
186+
type_support, topic_name, qos_profile);
187187

188188
if (RCL_RET_OK != rc) {
189189
... // Handle error

0 commit comments

Comments
 (0)