-
Notifications
You must be signed in to change notification settings - Fork 251
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 optional '--topics' CLI argument for 'ros2 bag record' #1632
Add optional '--topics' CLI argument for 'ros2 bag record' #1632
Conversation
- Deprecate positional "topics" parameter. - Add test coverage for non-trivial cases in the recorder CLI parser. Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
--topics
CLI argument for ros2 bag record
Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
LGTM |
@clalancette @emersonknapp I need a formal review/approval for this PR. |
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.
@MichaelOrlov lgtm with minor comment. thanks!
Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com> Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
bb525b8
to
df50851
Compare
Gist: https://gist.githubusercontent.com/MichaelOrlov/dc71cf596e1d88b0a21fc5b572384bd1/raw/b77faf036884f4558a559c99f6f6d8c6c4c8f617/ros2.repos |
@clalancette @emersonknapp Friendly ping here for formal review/approval. |
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.
haven't read all the way through but I'm now coming off my parental leave and trying to get back into the ros2 development. this looks fine at a glance to me
https://github.com/Mergifyio backport jazzy |
✅ Backports have been created
|
* Add optional "--topics" CLI parameter for recorder - Deprecate positional "topics" parameter. - Add test coverage for non-trivial cases in the recorder CLI parser. Signed-off-by: Michael Orlov <michael.orlov@apex.ai> * Use "--topics" instead of positional argument in integration tests Signed-off-by: Michael Orlov <michael.orlov@apex.ai> * Cleanup in the recorder CLI help section Signed-off-by: Michael Orlov <michael.orlov@apex.ai> * Add empty line to the end of the pytest.ini Signed-off-by: Michael Orlov <michael.orlov@apex.ai> * Add deprecation notice for positional topics argument in help section Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com> Signed-off-by: Michael Orlov <michael.orlov@apex.ai> --------- Signed-off-by: Michael Orlov <michael.orlov@apex.ai> Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com> (cherry picked from commit 9146878)
* Add optional "--topics" CLI parameter for recorder - Deprecate positional "topics" parameter. - Add test coverage for non-trivial cases in the recorder CLI parser. Signed-off-by: Michael Orlov <michael.orlov@apex.ai> * Use "--topics" instead of positional argument in integration tests Signed-off-by: Michael Orlov <michael.orlov@apex.ai> * Cleanup in the recorder CLI help section Signed-off-by: Michael Orlov <michael.orlov@apex.ai> * Add empty line to the end of the pytest.ini Signed-off-by: Michael Orlov <michael.orlov@apex.ai> * Add deprecation notice for positional topics argument in help section Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com> Signed-off-by: Michael Orlov <michael.orlov@apex.ai> --------- Signed-off-by: Michael Orlov <michael.orlov@apex.ai> Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com> (cherry picked from commit 9146878)
…ackport #1632) (#1640) * Add optional '--topics' CLI argument for 'ros2 bag record' (#1632) * Add optional "--topics" CLI parameter for recorder - Deprecate positional "topics" parameter. - Add test coverage for non-trivial cases in the recorder CLI parser. Signed-off-by: Michael Orlov <michael.orlov@apex.ai> * Use "--topics" instead of positional argument in integration tests Signed-off-by: Michael Orlov <michael.orlov@apex.ai> * Cleanup in the recorder CLI help section Signed-off-by: Michael Orlov <michael.orlov@apex.ai> * Add empty line to the end of the pytest.ini Signed-off-by: Michael Orlov <michael.orlov@apex.ai> * Add deprecation notice for positional topics argument in help section Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com> Signed-off-by: Michael Orlov <michael.orlov@apex.ai> --------- Signed-off-by: Michael Orlov <michael.orlov@apex.ai> Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com> (cherry picked from commit 9146878) * Remove warning about deprecation of the positional "topics" argument Signed-off-by: Michael Orlov <michael.orlov@apex.ai> --------- Signed-off-by: Michael Orlov <michael.orlov@apex.ai> Co-authored-by: Michael Orlov <michael.orlov@apex.ai>
Motivation:
It works currently, if put a trailing
--
after the list of services. However, that workaround with trailing--
is not obvious and could cause confusion and be a source of mistakes because the topics parameter can't be specified explicitly. i.e.,--topics
.List of changes:
--topics
" parameter for theros2 bag record
CLI interface.topics
" parameter to be consistent with the"--services
" parameter.--topics
" parameter instead of the deprecated positional parameter in integration tests.Note: There are no API/ABI breaking changes in this PR