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

Use world name in default topics #104

Merged
merged 3 commits into from
Aug 12, 2020
Merged

Conversation

chapulina
Copy link
Contributor

Goes with gazebosim/gz-sim#278.

This adds support for retrieving world names from the main window and makes use of that on the WorldControl and WorldStats plugins.

This doesn't change the default behaviour of those plugins. Their <topic>s and <service>s will still be respected. But now we default to /world/<world name>/something topics if nothing is set.


I was afraid of bringing ign-gazebo's concept of worlds to ign-gui when it doesn't need it. But considering that this concept is already built into the 2 plugins in question and is completely optional to all other plugins, I thought this was something reasonable to bring here.

Signed-off-by: Louise Poubel <louise@openrobotics.org>
@codecov
Copy link

codecov bot commented Aug 8, 2020

Codecov Report

Merging #104 into ign-gui2 will increase coverage by 0.25%.
The diff coverage is 84.37%.

Impacted file tree graph

@@             Coverage Diff              @@
##           ign-gui2     #104      +/-   ##
============================================
+ Coverage     60.18%   60.43%   +0.25%     
============================================
  Files            16       16              
  Lines          2082     2108      +26     
============================================
+ Hits           1253     1274      +21     
- Misses          829      834       +5     
Impacted Files Coverage Δ
include/ignition/gui/Helpers.hh 100.00% <ø> (ø)
src/plugins/world_control/WorldControl.cc 78.35% <78.57%> (-0.72%) ⬇️
src/plugins/world_stats/WorldStats.cc 94.79% <80.00%> (-1.84%) ⬇️
src/Helpers.cc 92.68% <100.00%> (+0.79%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6b48577...8a50472. Read the comment docs.

@chapulina chapulina self-assigned this Aug 10, 2020
Copy link
Contributor

@caguero caguero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks reasonable to me!

Signed-off-by: Louise Poubel <louise@openrobotics.org>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
@chapulina chapulina merged commit 7496beb into ign-gui2 Aug 12, 2020
@chapulina chapulina deleted the chapulina/default_topics branch August 12, 2020 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📜 blueprint Ignition Blueprint
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants