ros2topic.verb.bw module

class ros2topic.verb.bw.BwVerb

Bases: VerbExtension

Display bandwidth used by topic.

add_arguments(parser, cli_name)
main(*, args)
class ros2topic.verb.bw.ROSTopicBandwidth(node, window_size)

Bases: object

callback(data)

Execute ros sub callback.

get_bw()

Get the average publishing bw.

print_bw()

Print the average publishing bw to screen.

ros2topic.verb.bw.str_bytes(num_bytes)
ros2topic.verb.bw.str_kilobytes(num_bytes)
ros2topic.verb.bw.str_megabytes(num_bytes)