From ce013ea8722fd488eec2987068a01d5449f099ab Mon Sep 17 00:00:00 2001 From: Chidubem Ndukwe Date: Fri, 28 Jun 2024 01:39:37 +0100 Subject: [PATCH] corrected typo --- .../source/_source/basics/ROS2-Simple-Publisher-Subscriber.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workshop/source/_source/basics/ROS2-Simple-Publisher-Subscriber.md b/workshop/source/_source/basics/ROS2-Simple-Publisher-Subscriber.md index d4bf660..1fbb0b3 100644 --- a/workshop/source/_source/basics/ROS2-Simple-Publisher-Subscriber.md +++ b/workshop/source/_source/basics/ROS2-Simple-Publisher-Subscriber.md @@ -242,14 +242,14 @@ self.subscription = self.create_subscription( The first parameter to pass to the function is the msg type, the second is the name of the topic - this should be the same as declared in the publisher, the third is the callback function for the subscriber and the last is the message buffer size. -The nxt part to understand is the callback function. +The next part to understand is the callback function. ```Python def listener_callback(self, msg): self.get_logger().info('I heard: "%s"' % msg.data) ``` -The parameter that is automatically passed to this dunction is the incoming message. In this case, it is simply printed to console. +The parameter that is automatically passed to this function is the incoming message. In this case, it is simply printed to console. ### 2.2 Declaring the executable