Skip to content

Instantly share code, notes, and snippets.

#!/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)