ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Unless you need to transfer a lot of data from one node to another there is basically no need to use nodelets.
The process you described is naturally organized by callback function specified as a parameter to subscribe
method. By means of state variable in that callback you can modify published data in the main loop.