-
Notifications
You must be signed in to change notification settings - Fork 100
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
Documentation of pose/@relative_to syntax. #664
Comments
The
My hope is to update the documentation in http://sdformat.org/tutorials?tut=composition&cat=specification& to include the changes in SDFormat 1.8 in the near future. |
@azeey Is the documentation taken from the |
The documentation I mentioned is written/updated manually but updating the |
@azeey On the doc page you linked in an earlier comment I found this quote
Is this still the case? I always wondered what would happen if I //include'd a model that uses a different SDF version as the including one. This comment would suggest that tings ... simply break. I doubt this is what actually happens? |
Also, reading up on the <sdf version="1.8">
<model name="model">
<frame name="alias_me">
<pose>1 2 3 0 0 0</pose>
</frame>
<model name="alias_me">
<pose>4 5 6 0 0 0</pose>
</model>
<link name="where_am_I">
<pose relative_to="alias_me"/>
</link>
</model>
</sdf> |
that is invalid since spec version 1.7, since there are sibling elements with the same name: |
@scpeters Thanks for the clarification; that makes sense. Perhaps the spec should be updated then. It makes you believe this is possible, since it limits uniqueness to siblings of the same kind, e.g., the frame spec currently says:
whereas the (nested) model spec says:
While both statements are true, the (nested) model description is incomplete, as the name also must not match a sibling frame (due to the implicit frame of model). |
Closing this since #666 is merged. |
I found a SDF in the unit tests that features a bit of a strange @relative_to mechanism. @relative_to links are specified using a format like
M1::CM1::L
, which I assume denotes a nested frame similar to C++ namespace nesting? I find this a bit surprising because none of the documentation I have seen so far suggests that::
has special meaning and I expected thatA::B
should just be any old frame.Would it be worthwhile to add a sentence in the docs saying that the frame must be specified relative to document root using the C++ namespace syntax, e.g.
model1::link2::frame3
?SDF with namespace-like syntax
The text was updated successfully, but these errors were encountered: