Last active
January 7, 2024 17:16
-
-
Save sibujacob/53db413fba98aabdfa6204b0e5a9da72 to your computer and use it in GitHub Desktop.
ROS2 Talker.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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