Currently, the only function rostopic has for listing topics is private, and it is only useful for the cli usecase because it calls print.
rosgraph.Master("/rostopic").getSystemState() may be used instead of rostopic, but this seems like an abuse of an API which is meant for graph image generation.
I would like to propose that a public rostopic.list function be added to the rostopic package, listing all topic names (and perhaps types).
Currently, the only function
rostopic
has for listing topics is private, and it is only useful for the cli usecase because it callsprint
.rosgraph.Master("/rostopic").getSystemState()
may be used instead of rostopic, but this seems like an abuse of an API which is meant for graph image generation.I would like to propose that a public
rostopic.list
function be added to therostopic
package, listing all topic names (and perhaps types).