Skip to content

Instantly share code, notes, and snippets.

@sibujacob
Last active January 7, 2024 17:16
Show Gist options
  • Save sibujacob/53db413fba98aabdfa6204b0e5a9da72 to your computer and use it in GitHub Desktop.
Save sibujacob/53db413fba98aabdfa6204b0e5a9da72 to your computer and use it in GitHub Desktop.
ROS2 Talker.py
#!/usr/bin/env python3
# My first Node!
import rclpy
from rclpy.node import Node
def main(args=None):
rclpy.init(args=args)
node = Node("py_test")
node.get_logger().info("Hello ROS2")
rclpy.spin(node)
rclpy.shutdown()
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment