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 -0600

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 -0600 )edit

what disadvantages the topic statistics have exactly?

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

1 Answer

Sort by ยป oldest newest most voted
1

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

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 -0600

Seen: 299 times

Last updated: Oct 13 '20