ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The same issue was true for subscribers. All callback functions will not work because the line is started after the node is created. So that solution looks like timer.
https://answers.ros.org/question/352120/subscriber-callback-not-triggering-while-in-a-while-loop/ https://answers.ros.org/question/348863/ros2-calling-method-in-node-class/