读的文章中有这样一句话:
Measuring publication rates There are also two commands for measuring the speed at
which messages are published and the bandwidth consumed by those messages:
rostopic hz topic-name
rostopic bw topic-name
These commands subscribe to the given topic and output statistics in units of messages
per second and bytes per second, respectively.
Even if you don’t care much about the specific rates, these commands can be useful
for debugging, because they provide an easy way to verify that messages are indeed
being published regularly on particular topics.
于是我就试了两个命令
:~$ rostopic hz /turtle1/cmd_vel subscribed to [/turtle1/cmd_vel] no
new messages no new messages no new messages no new messages no new
messages no new messages no new messages no new messages no new
messages no new messages no new messages no new messages no new
messages no new messages no new messages no new messages no new
messages no new messages
^Cno new messages
:~$ rostopic bw /turtle1/cmd_vel
subscribed to [/turtle1/cmd_vel]
不知道为什么会是这样的运行结果。