ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
A service is better suited for this indeed. Perhaps you can also set a variable after the first time the callback is called that prevents executing of the other callback code.
2 | No.2 Revision |
A service is better suited for this indeed. indeed but than you probably have to create a subscriber node which advertises this service. Perhaps you can also set a variable after the first time the callback is called that prevents executing of the other callback code.