Compared to the original, ros2 requires the use of either a class rclpy.timer or for the node to be used with rclpy.spin_once() to even display the callback. A temporary solution requires a thread to keep spinning every tenth of a second to achieve a successful callback.
Compared to the original, ros2 requires the use of either a class
rclpy.timer
or for the node to be used withrclpy.spin_once()
to even display the callback. A temporary solution requires a thread to keep spinning every tenth of a second to achieve a successful callback.