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

XML Element[fullscreen], child of element[gui], not defined in SDF. #1285

Open
jrutgeer opened this issue May 22, 2023 · 3 comments
Open

XML Element[fullscreen], child of element[gui], not defined in SDF. #1285

jrutgeer opened this issue May 22, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@jrutgeer
Copy link

Environment

  • Ubuntu 22.04
  • Source build, Gazebo Garden

SDFormat spec defines an element <fullscreen> in <gui>.
However specifying this in an SDF (see example below) yields an error message:

[/sdf/world[@name="fullscreen_test"]/gui/fullscreen:/home/johan/model.sdf:L6]: XML Element[fullscreen], child of element[gui], not defined in SDF. Copying[fullscreen] as children of [gui].

It seems that not all GUI functionality is implemented, yet the strange thing is that on first sight the fullscreen element is.
So I assume it is rather an issue with the parser?

On a side note: the <origin_visual> element doesn't seem to do anything either...


Corresponding SDF file:

<?xml version="1.0" ?>
<sdf version="1.9">
  <world name="fullscreen_test">

    <gui>
      <fullscreen>true</fullscreen>
    </gui>

    <scene>
      <origin_visual>true</origin_visual>
    </scene>

    <!-- Included model -->
    <include>
      <uri>https://fuel.gazebosim.org/1.0/OpenRobotics/models/Ground Plane</uri>
    </include>

 </world>
</sdf>
@jrutgeer jrutgeer added the bug Something isn't working label May 22, 2023
@osrf-triage osrf-triage added this to Inbox in Core development May 22, 2023
@azeey
Copy link
Collaborator

azeey commented May 22, 2023

fullscreen is defined to be an attribute of gui instead of an element, so that explains why you're getting the error, but website displays it as an element, which seems like a bug.

image

In fact, all attributes of description files that are included seem to be displayed as elements 😞

@azeey azeey self-assigned this May 22, 2023
@azeey azeey moved this from Inbox to In progress in Core development May 22, 2023
@jrutgeer
Copy link
Author

I changed it to <gui fullscreen="true"> </gui>, but it still opens in a non-maximized window.
A quick grep did not reveal any 'maximize window' calls, so I think this is not implemented after all.
Bummer. I will have to click on the icon. ;-)

@jrutgeer
Copy link
Author

I found out that fullscreen and other settings (e.g. initial camera pose) do work if specified in a gui config file, rather than in the SDF, per these instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: In progress
Core development
In progress
Development

No branches or pull requests

2 participants