-
Notifications
You must be signed in to change notification settings - Fork 43
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
List subscribed topics when running topic list #379
Conversation
Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
@j-rivero , this PR requires |
Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
include/gz/transport/NodeShared.hh
Outdated
@@ -218,6 +218,10 @@ namespace gz | |||
/// \param[in] _pub Information of the remote subscriber. | |||
public: void OnEndRegistration(const MessagePublisher &_pub); | |||
|
|||
/// \brief Callback executed when a SUBSCRIBERS request is received. | |||
/// \param[in] _pub Request. |
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.
/// \param[in] _pub Request. |
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.
Fixed in a1af664
Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
Codecov Report
@@ Coverage Diff @@
## main #379 +/- ##
==========================================
+ Coverage 87.44% 87.58% +0.14%
==========================================
Files 60 60
Lines 5177 5236 +59
==========================================
+ Hits 4527 4586 +59
Misses 650 650
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
@caguero Thanks for adding this feature, this was a great pain point when trying to develop on gazebo |
Nightlies available: https://packages.osrfoundation.org/gazebo/ubuntu-nightly/pool/main/g/gz-msgs10/ |
CI is happy now, good to review @ahcorde! |
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.
LGTM, just a quick question: Is there any chance to backport this to Garden or lower versions ?
Not easily because we're breaking ABI here and in |
🎉 New feature
Requires gazebosim/gz-msgs#322
Closes #263
Summary
This patch includes the subscribed topics in the output of
gz topic -l
.Test it
In one terminal run:
In another terminal run:
Your output should be:
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.