Skip to content

Commit

Permalink
corrected typo
Browse files Browse the repository at this point in the history
Corrected typo from "ish" to "wish"
  • Loading branch information
Duks31 authored Jun 27, 2024
1 parent 5a5388f commit 7174544
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class MinimalPublisher(Node):
self.i = 0
```
As explained above, we create a subclass of type `MinimalPublisher` using the base class `Node`.
In the constructor `__init__()`, we pass the name of the node that we ish to assign to the constructer of the parent class using `super()`. The parent class `Node` takes care of actually assigning this string as a name.
In the constructor `__init__()`, we pass the name of the node that we wish to assign to the constructer of the parent class using `super()`. The parent class `Node` takes care of actually assigning this string as a name.
`self.publisher_ = self.create_publisher(String, 'topic', 10)` This line actually creates a publisher, using the message type `String` that we imported, with the name `topic` that we choose and having a queue size of `10`. Queue size is the size of the output buffer. The commands used till now are typical when creating a subscriber. What follows next is only logic that is relevant to this node, and you may implement this in any way depending on your requirements.

```Python
Expand Down

0 comments on commit 7174544

Please sign in to comment.