Can I clear all topics after I kill all nodes?
I have kill all nodes by :rosnode kill -a however, when I type: rostopic list a list of topics are there ,so Can I remove the topics created before?
waiting for answers,thanks!
Have you verified all nodes are gone via
rosnode list
afterwards? -- I regularly end up with zombie nodes and their topics, too, and the only way I found to get rid of them is restarting the roscore.How to restart roscore?
Alternatively, you can do a
rosnode cleanup
. It will try to ping all nodes that are registered at the core and remove them if they are not running.@Lorenz Great find, assuming it works. But why isn't there any documentation about this subcommand?
Ticketed at https://code.ros.org/trac/ros/ticket/4027