ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You should have the subscribers outside of the main loop. You only need to subscribe once. Also you don't need individual NodeHandles, you can use the same handle to subscribe.