examples_rclpy_minimal_subscriber

Examples of minimal subscribers using rclpy.

README

Minimal “subscriber” cookbook recipes

This package contains a few different strategies for creating short nodes that display received messages. The subscriber_old_school recipe creates a listener node very similar to how it would be done in ROS 1 using rospy. The subscriber_lambda recipe shows how to embed the callback functions inside your main. The subscriber_member_function recipe creates a class MinimalSubscriber that contains the callback, keeping the main simple.