-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add documentation for SDFormat/Gazebo extension to URDF #88
Conversation
Signed-off-by: Addisu Z. Taddese <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the write-up! I've found some typos here and there, but overall it looks very informative.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it could be nice to add examples for inserting lights and sensors to a link, and a force-torque sensor to a joint using the gazebo tags
urdf/sdf_extensions.md
Outdated
<static>true</static> | ||
<plugin name='testPlugin' filename='testFileName'/> | ||
</gazebo> | ||
</robot> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how do you feel about using <include/>
elements in our Markdown files instead of duplicating the example code?
for example:
- https://classic.gazebosim.org/tutorials?tut=drcsim_animate_joints&cat=drcsim#ModelPluginController
- https://github.com/osrf/gazebo_tutorials/blame/0059020f4b86ae8f736104ef8f6c164f8830bd37/drcsim_animate_joints/tutorial.md#L46
I believe sdformat.org supports the same syntax, though I guess the links may have to point to your fork until the pull request is merged
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the pointer. I was hoping there was a way to do that, but I didn't see any examples in sdf_tutorials. I've updated all the examples. 3beee03
<td><code>gravity</code></td> | ||
</tr> | ||
<tr> | ||
<td>dampingFactor</td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it could also be helpful to draw lines between the rows and columns
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I had the same idea: https://github.com/osrf/sdf_web_app/pull/66
<tr> | ||
<td>turnGravityOff</td> | ||
<td>bool</td> | ||
<td>A value of "true" turns gravity off. Alternatively, <code>gravity</code> (with opposite boolean value) can be used via blob insertion</td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is the only place blob insertion is mentioned in the document, but it is not defined, so we should explain what it means
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a mention of blob insertion right before the table in 3beee03
urdf/sdf_extensions.md
Outdated
<tr> | ||
<td>maxVel</td> | ||
<td>double</td> | ||
<td>maximum contact correction velocity truncation term.</td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consider linking to the following gazebo-classic tutorial for the relevant parameters:
https://classic.gazebosim.org/tutorials?tut=physics_params&cat=physics#Contactparameters
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea! Done in 3beee03
urdf/sdf_extensions.md
Outdated
<mass value='0.12' /> | ||
<inertia ixx='0.01' ixy='0' ixz='0' iyy='0.01' iyz='0' izz='0.01' /> | ||
</inertial> | ||
<collision> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add another collision to show that all collisions get the parameter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 3beee03
Signed-off-by: Addisu Z. Taddese <[email protected]>
detail Signed-off-by: Addisu Z. Taddese <[email protected]>
bfadf46
to
9fd1a22
Compare
I've addressed all the feedback. I've also added more changes regarding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for going into more detail about the various behaviors of fixed joint lumping. LGTM!
@scpeters The web app has been deployed and the preview is showing the improved table formatting. Mind giving this another look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see a use of the material_visual_example.urdf
urdf/sdf_extensions.md
Outdated
|
||
**Example:** | ||
|
||
<include src='https://github.com/azeey/sdf_tutorials/raw/urdf_sdf_extension/urdf/examples/link_ref_example.urdf' /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<include src='https://github.com/azeey/sdf_tutorials/raw/urdf_sdf_extension/urdf/examples/link_ref_example.urdf' /> | |
<include src='https://github.com/azeey/sdf_tutorials/raw/urdf_sdf_extension/urdf/examples/material_example.urdf' /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<origin xyz='0 0 1' rpy='0 0 0'/> | ||
</joint> | ||
<link name='end_effector'> | ||
<inertial> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<inertia />
block is missing, which deviates from prior example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. Changed in 8d1ad17. The resulting SDFormat now also has the end_effector_visual
. Not sure why it was missing before.
Signed-off-by: Addisu Z. Taddese <[email protected]>
Signed-off-by: Addisu Z. Taddese <[email protected]>
Thanks for catching this. Added in 1fa5044 |
There is good documentation for the
<gazebo>
tag at https://classic.gazebosim.org/tutorials?tut=ros_urdf&cat=connect_ros, but it is presented in a tutorial format and is missing some concepts and explanations. This is an attempt to document the current behavior and provide an explanation about fixed joint lumping.Preview