Skip to content
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

add --keep-alive option to 'topic pub' #544

Merged
merged 1 commit into from
Jun 30, 2020

Conversation

dirk-thomas
Copy link
Member

The new option allows to make the currently hard coded sleep before exiting configurable. It also change the logic to apply that sleep for times != 1 since even when publishing multiple messages it makes sense to wait after the last one to ensure it is published to the wire.

CI builds testing ros2topic:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@dirk-thomas dirk-thomas added the enhancement New feature or request label Jun 30, 2020
@dirk-thomas dirk-thomas self-assigned this Jun 30, 2020
@dirk-thomas dirk-thomas merged commit ce19bca into master Jun 30, 2020
@delete-merged-branch delete-merged-branch bot deleted the dirk-thomas/ros2topic-pub-keep-alive branch June 30, 2020 21:48
craigh92 pushed a commit to craigh92/ros2cli that referenced this pull request Jul 17, 2020
Signed-off-by: Dirk Thomas <[email protected]>
Signed-off-by: Craig Hickman <[email protected]>
sloretz pushed a commit that referenced this pull request Sep 10, 2020
Signed-off-by: Dirk Thomas <[email protected]>
Signed-off-by: Shane Loretz <[email protected]>
sloretz added a commit that referenced this pull request Sep 10, 2020
…nsient_local and longer keep-alive for pub tests (#546) Use reliable QoS for ros2topic tests (#555) (#565)

* add --keep-alive option to 'topic pub' (#544)

Signed-off-by: Dirk Thomas <[email protected]>
Signed-off-by: Shane Loretz <[email protected]>

* Give kwarg default value for backporting

keep_alive is made a keyword argument with a default value of 0.1 so the
pull request can be backported.

Signed-off-by: Shane Loretz<[email protected]>
Signed-off-by: Shane Loretz <[email protected]>

* use transient_local and longer keep-alive for pub tests (#546)

* use transient_local and longer keep-alive for pub tests

Signed-off-by: Dirk Thomas <[email protected]>

* add comment to document unit of --keep-alive

Signed-off-by: Dirk Thomas <[email protected]>
Signed-off-by: Shane Loretz <[email protected]>

* Use reliable QoS for ros2topic tests (#555)

The TestROS2TopicCLI tests perform feature testing of the ros2topic
command line interface. If the system is under stress during these
tests, messages may be lost (by design). If that happens, there is a
fairly high likelihood that the test_topic_pub_once test will fail
because there is only one opportunity for the message to be successfully
transported. We're likely dropping other messages in this suite, but the
other tests continuously publish until one of the messages is received
(or a timeout occurs), making them significantly less likely to fail.

Using the 'reliable' setting for QoS reliability seems to make the tests
consistently pass, even when the system is placed under additional
stress.

Signed-off-by: Scott K Logan <[email protected]>
Signed-off-by: Shane Loretz <[email protected]>

Co-authored-by: Dirk Thomas <[email protected]>
Co-authored-by: Scott K Logan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants