ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Is it possible to get the frequency a specific node publishes to a topic?

asked 2020-10-13 00:14:49 -0500

Rufus gravatar image

I know rostopic hz /topic gives the total frequency, but can I get the frequency a particular node publishes to a topic?

edit retag flag offensive close merge delete

Comments

1

Look into the topic statistics functionality. But note it does have its disadvantages / inaccuracies.

gvdhoorn gravatar image gvdhoorn  ( 2020-10-13 04:04:28 -0500 )edit

what disadvantages the topic statistics have exactly?

runtao gravatar image runtao  ( 2020-10-15 05:35:13 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-10-13 04:03:02 -0500

Rayman gravatar image

Not ideal, but you could replace that single publisher with a DiagnosedPublisher which publishes some statistics on a separate topic.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2020-10-13 00:14:49 -0500

Seen: 269 times

Last updated: Oct 13 '20