Repository navigation
to support multiple topics for topic hz - #831
iuhilnehc-ynos wants to merge 7 commits into
Conversation
Signed-off-by: Chen Lihui <[email protected]>
Signed-off-by: Chen Lihui <[email protected]>
Signed-off-by: Chen Lihui <[email protected]>
|
@iuhilnehc-ynos thanks, i am happy to do review once this is ready. |
Signed-off-by: Chen Lihui <[email protected]>
…ultiple-topics Signed-off-by: Chen Lihui <[email protected]>
Signed-off-by: Chen Lihui <[email protected]>
Signed-off-by: Chen Lihui <[email protected]>
| elif self.get_last_printed_tn(topic=topic) == 0: | ||
| self.set_last_printed_tn(self.get_msg_tn(topic=topic), topic=topic) | ||
| return | ||
| elif self.get_msg_tn(topic=topic) < self.get_last_printed_tn(topic=topic) + 1e9: | ||
| elif self.get_msg_tn(topic=topic) == self.get_last_printed_tn(topic=topic): |
There was a problem hiding this comment.
if i am not mistaken, this is a refactoring fix, unrelated to this feature, right?
| if len(topics) == 1: | ||
| ret = self.get_hz(topics[0]) | ||
| if ret is None: | ||
| return | ||
| rate, min_delta, max_delta, std_dev, window = get_format_hz(ret) | ||
| print('average rate: %.3f\n\tmin: %.3fs max: %.3fs std dev: %.5fs window: %s' | ||
| % (rate, min_delta, max_delta, std_dev, window)) | ||
| return |
There was a problem hiding this comment.
this part is to keep the compatible printing with current ros2 topic hz, right? i think either is fine.
| if topics_len > 1: | ||
| print('Subscribed to [%s]' % topic) |
There was a problem hiding this comment.
i think this message makes sense either single or multiple topics are specified for user.
| if msg_class is None: | ||
| node.destroy_node() | ||
| return |
There was a problem hiding this comment.
If we specify 10 topics to check hz, and one of them cannot find the message type support, it will return immediately. i would expect, it can tell me topic-X message type cannot be found, but other topics will be processed to print the statistics. would it be better user experience?
|
@iuhilnehc-ynos i am not sure if you are still working on this, just a few comments. if you are not working on this anymore, i am happy to take this over, so let me know. |
|
@fujitatomoya Thanks for your notification. Please open a new PR to deal with it as I think this PR was not good enough. I'll close it. |
|
Hi @fujitatomoya, can I continue working on this PR? |
|
i was going to take this over from @iuhilnehc-ynos , but if you are willing to do that, that is really appreciated! |
|
thanks !! |
|
@yaswanth1701 @fujitatomoya any update on this or if you don't have time to continue on this what changes would be required for this to be acceptable? Best regards, Gilbert |
|
@TannerGilbert thanks for the ping. i will replace this with new PR. (this one needs to rebase.) |
to support #830