active/connected rostopics to terminal list or file
Is there a way to get the active or connected (i.e. excluding leaf topics) ROS topics as a list to the terminal or a text file? The topics can limited to only the active topics from rqt_graph
but are there any methods the rostopic
or rosnode
(or combination of the two) commands can generate a list? Can rqt_graph
save the active topics or log them?