ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I don't think there are any issues with having multiple subscribers on the same topic.
I do see another problem with your code; your functions create a subscriber, but as soon as the function is over, the subscriber object is destructed and that subscriber stops. If you want the subscriber to continue working, you need to keep the subscriber object (or a copy of it).