Browse Source

Minor edit

There was an incorrect description in rate = rospy.rate(), there wasn't an explanation, instead there was again the explanation of rospy.spin()
pull/8/head
hello-jesus 1 year ago
committed by GitHub
parent
commit
e8ea325b94
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ros1/example_4.md

+ 1
- 1
ros1/example_4.md View File

@ -172,7 +172,7 @@ The next line, `rospy.init_node(NAME, ...)`, is very important as it tells rospy
Instantiate class with `Balloon()`.
Give control to ROS with `rospy.spin()`. This will allow the callback to be called whenever new messages come in. If we don't put this line in, then the node will not work, and ROS will not process any messages.
The `rospy.rate()` is the rate at which the node is going to publish information (10 Hz).
```python
while not rospy.is_shutdown():

Loading…
Cancel
Save