-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adjust topic hz and bw command description. #987
Conversation
Signed-off-by: Tomoya Fujita <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adding the note for ros2 topic hz/bw
command that these statistics are what we can get on this subscription, not expected publisher rate or bandwidth.
@mjcarroll @ahcorde @christophebedard @MichaelOrlov what do you think? at least, this could give some hint for users? |
This is great thank you 👍🏼 |
I would also add a warning before the start of the rate output e.g.: $ ros2 topic hz /clock
Warning: This rate reflects the receiving rate on subscription, which might be affected by platform resources and QoS configuration, and may not exactly match the publisher rate. This is especially true for big or high frequency messages.
average rate: 100.006
min: 0.010s max: 0.010s std dev: 0.00008s window: 102
average rate: 100.004
min: 0.010s max: 0.010s std dev: 0.00008s window: 203
|
i like this one, i am inclined to do this. but one minor concern is that changing output format/message would break user tools, sometime developers have some tools to grep the output from ros2cli... but i think this is not the case. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with the message in the help message. Anyhow I will wait for other opinions
yeah it would be much better if we can address performance related enhancement like deserialization and executor. btw, it is also important to know that statistics are different from sender and receiver. means, that if we want the precise statistics like this, we would need to provide the API/Interface to get the statistics on publisher and subscription each. (saying no matter we optimize the performance, there would be platform resource issue, network stability problem on receiver side.) i think that this is common for the use cases that rely on statistics such as live streaming and camera framework. |
Signed-off-by: Tomoya Fujita <[email protected]>
Pulls: #987 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fujitatomoya I think the statement about
Display bandwidth used by the topic
It is a bit misleading and unclear. Bandwidth usually refers to the number of bytes per second. However, here, we are talking about the messages rate without considering the number of bytes transferred.
Also, I would add a note that this command will subscribe to the topic and receive messages from subscription during the measurement, which can affect overall system performance.
Please disregard my concern above |
@MichaelOrlov no worries, thanks for the comments. |
Signed-off-by: Tomoya Fujita <[email protected]>
Pulls: #987 |
@Mergifyio backport humble jazzy |
✅ Backports have been created
|
* 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]> (cherry picked from commit 9a0c044)
* 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]> (cherry picked from commit 9a0c044)
Signed-off-by: Tomoya Fujita <[email protected]> (cherry picked from commit 9a0c044) Co-authored-by: Tomoya Fujita <[email protected]>
Signed-off-by: Tomoya Fujita <[email protected]> (cherry picked from commit 9a0c044) Co-authored-by: Tomoya Fujita <[email protected]>
part of #843 (comment)
replaces #970