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

Revision history [back]

click to hide/show revision 1
initial version

From the man page you link:

lcm-spy collects the following statistics for each channel:

  • Channel name

This would be topic I guess in ROS: rostopic list / rosservice list (although those are not channels). If you want a GUI tool: rqt_graph.

  • Number of messages received

This is a bit trickier, and would need some bash scripting to keep a running total. Perhaps another member can suggest a suitable one-liner.

  • Message Rate (Hz)
rostopic hz /topic_name
  • Bandwidth (KB/s)
rostopic bw /topic_name

See also wiki/rostopic.

Note that these statistics are all relative to the start of a rostopic invocation.

You might also be interested in wiki/Topics - Topic statistics and rqt_graphprofiler.

From the man page you link:

lcm-spy collects the following statistics for each channel:

  • Channel name

This would be topic I guess in ROS: rostopic list / rosservice list (although those are not channels). If you want a GUI tool: rqt_graph.

  • Number of messages received

This is a bit trickier, and would need some bash scripting to keep a running total. Perhaps another member can suggest a suitable one-liner.

  • Message Rate (Hz)
rostopic hz /topic_name
  • Bandwidth (KB/s)
rostopic bw /topic_name

See also wiki/rostopic.

Note that these statistics are all relative to the start of a rostopic invocation.

You might also be interested in wiki/Topics - Topic statistics and rqt_graphprofiler.


Edit:

[..] and examine the content of individual messages.

That would be rostopic echo /topic_name. Be aware that this can result in a lot of data for high-frequency / high-volume topics.