Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Avoid logging error when <empty> geometry is included#3175

Open
shonigmann wants to merge 1 commit intogazebosim:gazebo11from
shonigmann:gazebo11
Open

Avoid logging error when <empty> geometry is included#3175
shonigmann wants to merge 1 commit intogazebosim:gazebo11from
shonigmann:gazebo11

Conversation

@shonigmann
Copy link
Copy Markdown

This is a very small change to avoid an error message while using geometry in models. I simply added a check for the msgs::Geometry::EMPTY type with an empty statement to avoid writing an error message for "Unrecognized geometry type" in the default else statement.

geometry is listed as a valid option the SDF spec, and is already supported by GeometryFromSDF().

Add check for EMPTY geometry type in `GeometryToSDF()` to avoid writing an error message to the server log. <empty> geometry is listed as a valid option the [SDF spec](http://sdformat.org/spec?ver=1.9&elem=geometry#geometry_empty), and already implemented in `GeometryFromSDF()`.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant