Measuring topic reading rate
Hello,
There is a way to measure a ROS topic publishing rate using rostopic hz <topic-name>
. Is there a way to measure the topic reading rate by a node?
Thanks, Izzy
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
Hello,
There is a way to measure a ROS topic publishing rate using rostopic hz <topic-name>
. Is there a way to measure the topic reading rate by a node?
Thanks, Izzy
No, because the reading rate is the same as the publishing rate. A node cannot choose to ignore some of the inbound messages, at least not at the communication layer. Internally of course it can do whatever it wants with those messages, including ignoring them, but that's node specific and cannot be measured by a general tool.
Just adding to this answer, if what you want to do is measure how faster your callback is running, you could in the first line get the time, and in the last line count how much time it takes.
Asked: 2020-10-22 05:47:54 -0600
Seen: 509 times
Last updated: Oct 22 '20
Best toolchain for recording kinect data and converting to pointcloud offline?
how to bind a callback to include a MessageEvent [closed]
Proper source of xncore for compiling svn opencv with openni support?
ROS support for industrial robotic arms?
When should I use topics vs services vs actionlib actions (vs dynamic_reconfigure)?
Significance of ros::spinOnce()
How to put Hokuyo laser sensor on p2os?