Skip to content

Commit 9a0c044

Browse files
authored
Adjust topic hz and bw command description. (#987)
* Adjust topic hz and bw command description. Signed-off-by: Tomoya Fujita <[email protected]> * note description fix. Signed-off-by: Tomoya Fujita <[email protected]> * address flake8 warnings. Signed-off-by: Tomoya Fujita <[email protected]> --------- Signed-off-by: Tomoya Fujita <[email protected]>
1 parent 5041158 commit 9a0c044

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

ros2topic/ros2topic/verb/bw.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ class BwVerb(VerbExtension):
6262
"""Display bandwidth used by topic."""
6363

6464
def add_arguments(self, parser, cli_name):
65+
parser.description = (
66+
'Display bandwidth used by topic.\n\n'
67+
'note:\n'
68+
' This bandwidth reflects the receiving rate on subscription, '
69+
'which might be affected by platform resources and QoS configuration, '
70+
"and may not exactly match the publisher's bandwidth."
71+
)
6572
arg = parser.add_argument(
6673
'topic_name',
6774
help='Topic name to monitor for bandwidth utilization')

ros2topic/ros2topic/verb/hz.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,16 @@
5454

5555

5656
class HzVerb(VerbExtension):
57-
"""Print the average publishing rate to screen."""
57+
"""Print the average receiving rate to screen."""
5858

5959
def add_arguments(self, parser, cli_name):
60+
parser.description = (
61+
'Print the average receiving rate to screen.\n\n'
62+
'note:\n'
63+
' This rate reflects the receiving rate on subscription, '
64+
'which might be affected by platform resources and QoS configuration, '
65+
"and may not exactly match the publisher's rate."
66+
)
6067
arg = parser.add_argument(
6168
'topic_name',
6269
nargs='+',

0 commit comments

Comments
 (0)