-
Notifications
You must be signed in to change notification settings - Fork 158
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
Adds a timeout feature to rostopic echo #792
Conversation
A lot of types across verbs in ros2 topic are shared. This PR refactors the types to be used by different verbs preventing redefinition of the same types in different verbs. There is no behaviour changed introduced. Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
This commit addsa `--time-out` feature which allows you to set the amount of time that rostopic echo should wait. This feature was requested by ros2#529, however we only added `--once` and no time out. Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
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.
test would be ideal, to check certain published messages are printed in specific time window until it times out.
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
i think you can refer to, ros2cli/ros2topic/test/test_echo_pub.py Lines 393 to 435 in cf020c0
|
Thanks! Working on it. |
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
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.
This looks good to me. I'll run CI on it next.
But I'd like to get @fujitatomoya's opinion before I merge.
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.
@arjo129 LTGM!
Builds on top of:
This PR adds a
--time-out
feature which allows you to set the amount of time that rostopic echo should wait. This feature wasrequested by #529, however, we only added
--once
and no time out. I have a use case where this timeout could be useful hence I added itSigned-off-by: Arjo Chakravarty arjo@openrobotics.org