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

gz-sim: empty_gui.sdf #1614

Closed
azeey-test opened this issue Aug 29, 2024 · 6 comments
Closed

gz-sim: empty_gui.sdf #1614

azeey-test opened this issue Aug 29, 2024 · 6 comments

Comments

@azeey-test
Copy link
Collaborator

Configuration

  • os: Any

Links

Process

Step 1 - Instructions work

Step 2 - Images (if there are any) match the result

@avanmalleghem
Copy link

Interested in !

@avanmalleghem
Copy link

avanmalleghem commented Aug 31, 2024

Issue when running the first command (gz sim empty_gui.sdf). The world is not empty and indeed the file https://github.com/gazebosim/gz-sim/blob/gz-sim9/examples/worlds/empty_gui.sdf describes exactly what we can see on the screenshot.

image

So the tutorial in the sdf file is incorrect. Should I update this tutorial or is it the SDF file that is incorrect ? (and it should effectively be an empty world)

@arjo129
Copy link

arjo129 commented Sep 3, 2024

Yes please update the SDF file!

@avanmalleghem
Copy link

After more investigation, I think this SDF makes no-sense with this version. In fact, everything is set up correctly because of the .gz/sim/9/gui.config. I guess it has changed since the latest version (now it adds SelectEntities, InteractiveControl, CameraTracking, VisualizationCapabilities and GzSceneManager plugins). So all the tutorial in this file doesn't make sense anymore.

I think the best option is to remove it completely. If ok for you, I can open a PR.

@iche033
Copy link

iche033 commented Sep 3, 2024

oh good catch, that's a behavior change in newer versions. This should prevent all other plugins from being loaded:

diff --git a/examples/worlds/empty_gui.sdf b/examples/worlds/empty_gui.sdf
index 0975a4f14..54df8c2e3 100644
--- a/examples/worlds/empty_gui.sdf
+++ b/examples/worlds/empty_gui.sdf
@@ -37,6 +37,10 @@ This example helps illustrate the interaction of the MinimalScene with other GUI
 
   <world name="empty_gui">
 
+    <gz:policies>
+      <include_gui_default_plugins>false</include_gui_default_plugins>
+    </gz:policies>
+
     <gui fullscreen="0">
       <plugin filename="MinimalScene" name="3D View">
         <gz-gui>

Can you see if that works for you? If so, we can keep this demo world

@avanmalleghem
Copy link

Indeed, it fix the issue. I created a PR : gazebosim/gz-sim#2591

@iche033 iche033 closed this as completed Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants