Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Get topic rate from my node

Hi all! I have a node subscribed to a topic. In principle, the topic rate is constant but unknown from the node. Does exist a method to get the rate of this topic from my node program? Something similar to use "$rostopic hz" from console but from the code program.

Thanks in advance!

Get topic rate from my node

Hi all! I have a node subscribed to a topic. In principle, the topic rate is constant but unknown from the node. Does exist a method to get the rate of this topic from my node program? Something similar to use "$rostopic hz" from console but from the code program.

Thanks in advance!