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

SDF tag <elevation> should be used in world files, not <altitude> #31

Closed
slgrobotics opened this issue Feb 17, 2024 · 1 comment
Closed
Assignees

Comments

@slgrobotics
Copy link
Contributor

When running any GZ simulation, the following error pops up:

Warning [Utils.cc:130] [/sdf/world[@name="default"]/spherical_coordinates/altitude:
.../PX4-Autopilot/Tools/simulation/gz/worlds/default.sdf:L153]: 
XML Element[altitude], child of element[spherical_coordinates], not defined in SDF. 
Copying[altitude] as children of [spherical_coordinates].

This is likely due to <altitude> tag, which must be <elevation> according to SDF format specs:

http://sdformat.org/spec?ver=1.11&elem=world

When I replace the tag, error message disappears:

    <spherical_coordinates>
      <surface_model>EARTH_WGS84</surface_model>
      <world_frame_orientation>ENU</world_frame_orientation>
      <latitude_deg>33.00000</latitude_deg>
      <longitude_deg>-86.00000</longitude_deg>
      <elevation>140</elevation>
    </spherical_coordinates>
  </world>
</sdf>

It makes sense, as "altitude" usually refers to a vehicle, and "elevation" - to terrain.

@frede791 - please take a look.

@slgrobotics
Copy link
Contributor Author

@frede791 - I cannot close it, please do. It has been merged/completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants