ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You can try and use the internal rostopic API directly to list topic names and detect the topic type (see the code API page for rostopic here)
The only drawback of using the API directly is that code breaking changes may be made to it in the future. If you are worried about this, you could potentially try and parse the output of the rostopic command, as this command line tool is stable.