Skip to content

Commit

Permalink
corrected typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Duks31 authored Jun 28, 2024
1 parent 5a5388f commit ce013ea
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ce013ea

Please sign in to comment.