Add _state suffix to //state subelements#1455
Conversation
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Include joint_state.sdf from model_state.sdf and state.sdf for //world/joint states. Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
jennuine
left a comment
There was a problem hiding this comment.
LGTM, in each of the *_state.sdf can we add a little more description on what state is? For example, what is joint_state vs. normal joint. Alternatively, adding a more thorough comment in state.sdf would be helpful.
Also, since this is a breaking change, shouldn't we add a method of conversion in https://github.com/gazebosim/sdformat/blob/sdformat14_14.0.0/sdf/1.11/1_10.convert ?
👍
I tried to add that in #1377, but it was difficult to handle multiple levels of nested models. My last commit in that PR (e9de659) added a failing test showing what wasn't yet working (see jenkins job result). The |
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
I've updated the description of state elements in cd32f6e |
Yes, like @scpeters said, gz-sim hasn't been using the |
🦟 Bug fix
Part of #632, alternative to #1377
Summary
There is some overlap in the names used for elements in the
//world/statespecification and elsewhere, for example the model_state.sdf file included in state.sdf defines an element named model. This has caused challenges with aliasing in XSD (see #632 and #643), and it would be simpler if some of these elements had different names, so a_statesuffix is appended to several subelements of the//stateelement. Additionally, the//joint_statedefinition is moved to its own file and included fromstate.sdfso that a//state/joint_stateelement can specify the state of a//world/joint.I made a similar attempt at renaming these state elements in #1377 trying also to support backwards compatibility with a
1_11.convertfile but only achieving partial functionality. Given that the//stateelement hasn't been used in any version of gz-sim, this pull request opts for a breaking change instead of partial support for backwards compatibility.Checklist
codecheckpassed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-bymessages.