... | ... | @@ -114,7 +114,7 @@ twist_msg.linear... # Check the documentation for twist and complete, you can pu |
|
|
# publish the message
|
|
|
publisher.publish(twist_msg)
|
|
|
|
|
|
rclpy.spin()
|
|
|
rclpy.spin(node)
|
|
|
```
|
|
|
|
|
|
The documentation for a ```node``` can be found at [rclpy.node](https://docs.ros2.org/galactic/api/rclpy/api/node.html). The documentation for ```geometry_msgs/Twist``` can be found online at [geometry_msgs/Twist](https://docs.ros2.org/galactic/api/geometry_msgs/msg/Twist.html) or by running ```ros2 msg info geometry_msgs/Twist```.
|
... | ... | |