-
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
a674b6f
Add documentation for SDFormat/Gazebo extension to URDF
azeey 3beee03
Reviewer feedback and other small edits
azeey 9fd1a22
Correct description of the preserveFixedJoint parameter and add more
azeey 8d1ad17
Address reviewer feedback
azeey 1fa5044
Add example using material_visual_example.urdf
azeey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<!--URDF--> | ||
<robot name='disable_fixed_joint_lumping_example'> | ||
<link name='base_link'> | ||
<inertial> | ||
<mass value='0.25' /> | ||
<inertia ixx='0.01' ixy='0' ixz='0' iyy='0.01' iyz='0' izz='0.01' /> | ||
</inertial> | ||
<collision> | ||
<origin xyz="0 0 0" rpy="0 0 0"/> | ||
<geometry> | ||
<sphere radius="2"/> | ||
</geometry> | ||
</collision> | ||
</link> | ||
<joint name='j1' type='fixed'> | ||
<parent link='base_link'/> | ||
<child link='end_effector'/> | ||
<origin xyz='0 0 1' rpy='0 0 0'/> | ||
</joint> | ||
<link name='end_effector'> | ||
<inertial> | ||
<mass value='0.25' /> | ||
<inertia ixx='0.01' ixy='0' ixz='0' iyy='0.01' iyz='0' izz='0.01' /> | ||
</inertial> | ||
<visual> | ||
<origin xyz="2 0 0" rpy="0 0 0"/> | ||
<geometry> | ||
<cylinder length="1" radius="2"/> | ||
</geometry> | ||
</visual> | ||
</link> | ||
<gazebo reference='j1'> | ||
<disableFixedJointLumping>true</disableFixedJointLumping> | ||
</gazebo> | ||
</robot> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<!--URDF--> | ||
<robot name='fixed_joint_lumping_example'> | ||
<link name='base_link'> | ||
<inertial> | ||
<mass value='0.25' /> | ||
<inertia ixx='0.01' ixy='0' ixz='0' iyy='0.01' iyz='0' izz='0.01' /> | ||
</inertial> | ||
<collision> | ||
<origin xyz="0 0 0" rpy="0 0 0"/> | ||
<geometry> | ||
<sphere radius="2"/> | ||
</geometry> | ||
</collision> | ||
</link> | ||
<joint name='j1' type='fixed'> | ||
<parent link='base_link'/> | ||
<child link='end_effector'/> | ||
<origin xyz='0 0 1' rpy='0 0 0'/> | ||
</joint> | ||
<link name='end_effector'> | ||
<inertial> | ||
<mass value='0.25' /> | ||
<inertia ixx='0.01' ixy='0' ixz='0' iyy='0.01' iyz='0' izz='0.01' /> | ||
</inertial> | ||
<visual> | ||
<origin xyz="2 0 0" rpy="0 0 0"/> | ||
<geometry> | ||
<cylinder length="1" radius="2"/> | ||
</geometry> | ||
</visual> | ||
</link> | ||
</robot> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<!--URDF--> | ||
<robot name='friction_example'> | ||
<link name='base_link'> | ||
<inertial> | ||
<mass value='0.12' /> | ||
<inertia ixx='0.01' ixy='0' ixz='0' iyy='0.01' iyz='0' izz='0.01' /> | ||
</inertial> | ||
<collision> | ||
<geometry> | ||
<sphere radius="2"/> | ||
</geometry> | ||
</collision> | ||
<collision> | ||
<geometry> | ||
<cylinder radius="1" length="2"/> | ||
</geometry> | ||
</collision> | ||
</link> | ||
<gazebo reference='base_link'> | ||
<mu1>0.25</mu1> | ||
</gazebo> | ||
</robot> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<!--URDF--> | ||
<robot name='joint_example'> | ||
<link name='base_link'> | ||
<inertial> | ||
<mass value='0.12' /> | ||
<inertia ixx='0.01' ixy='0' ixz='0' iyy='0.01' iyz='0' izz='0.01' /> | ||
</inertial> | ||
</link> | ||
<joint name='j1' type='continuous'> | ||
<parent link='base_link'/> | ||
<child link='end_effector'/> | ||
<origin xyz='0 0 1' rpy='0 0 0'/> | ||
</joint> | ||
<link name='end_effector'> | ||
<inertial> | ||
<mass value='0.12' /> | ||
<inertia ixx='0.01' ixy='0' ixz='0' iyy='0.01' iyz='0' izz='0.01' /> | ||
</inertial> | ||
</link> | ||
<gazebo reference='j1'> | ||
<springReference>0.5</springReference> | ||
<springStiffness>0.25</springStiffness> | ||
</gazebo> | ||
</robot> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<!--URDF--> | ||
<robot name='link_ref_example'> | ||
<link name='base_link'> | ||
<inertial> | ||
<mass value='0.1' /> | ||
<origin rpy='0 0 0' xyz='0 0 0' /> | ||
<inertia ixx='0.01' ixy='0' ixz='0' iyy='0.01' iyz='0' izz='0.01' /> | ||
</inertial> | ||
<collision> | ||
<origin xyz="0 0 0" rpy="0 0 0"/> | ||
<geometry> | ||
<sphere radius="2"/> | ||
</geometry> | ||
</collision> | ||
</link> | ||
<gazebo reference='base_link'> | ||
<mu1>0.5</mu1> <!-- Will create collision/surface/friction/ode/mu --> | ||
|
||
<!-- <light> is inserted directly into the link since it is not a special element --> | ||
<light name="point_light" type="point"> | ||
<diffuse>1.0 1.0 1.0 1.0</diffuse> | ||
<specular>0.1 0.1 0.1 1.0</specular> | ||
</light> | ||
</gazebo> | ||
</robot> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<!--URDF--> | ||
<robot name='material_example'> | ||
<link name='base_link'> | ||
<inertial> | ||
<mass value='0.1' /> | ||
<inertia ixx='0.01' ixy='0' ixz='0' iyy='0.01' iyz='0' izz='0.01' /> | ||
</inertial> | ||
<visual> | ||
<geometry> | ||
<sphere radius="2"/> | ||
</geometry> | ||
</visual> | ||
</link> | ||
<gazebo reference='base_link'> | ||
<material>Gazebo/Orange</material> | ||
</gazebo> | ||
</robot> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<!--URDF--> | ||
<robot name='material_example'> | ||
<link name='base_link'> | ||
<inertial> | ||
<mass value='0.12' /> | ||
<inertia ixx='0.01' ixy='0' ixz='0' iyy='0.01' iyz='0' izz='0.01' /> | ||
</inertial> | ||
<visual> | ||
<geometry> | ||
<sphere radius="2"/> | ||
</geometry> | ||
</visual> | ||
</link> | ||
<gazebo reference='base_link'> | ||
<visual> | ||
<material> | ||
<diffuse>0 0 1 1 </diffuse> | ||
</material> | ||
</visual> | ||
</gazebo> | ||
</robot> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<!--URDF--> | ||
<robot name='no_ref_example'> | ||
<link name='world'/> | ||
<gazebo> | ||
<static>true</static> | ||
<plugin name='testPlugin' filename='testFileName'/> | ||
</gazebo> | ||
</robot> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<!--URDF--> | ||
<robot name='preserve_fixed_joint_lumping_example'> | ||
<link name='base_link'> | ||
<inertial> | ||
<mass value='0.25' /> | ||
<inertia ixx='0.01' ixy='0' ixz='0' iyy='0.01' iyz='0' izz='0.01' /> | ||
</inertial> | ||
<collision> | ||
<origin xyz="0 0 0" rpy="0 0 0"/> | ||
<geometry> | ||
<sphere radius="2"/> | ||
</geometry> | ||
</collision> | ||
</link> | ||
<joint name='j1' type='fixed'> | ||
<parent link='base_link'/> | ||
<child link='end_effector'/> | ||
<origin xyz='0 0 1' rpy='0 0 0'/> | ||
</joint> | ||
<link name='end_effector'> | ||
<inertial> | ||
<mass value='0.25' /> | ||
<inertia ixx='0.01' ixy='0' ixz='0' iyy='0.01' iyz='0' izz='0.01' /> | ||
</inertial> | ||
<visual> | ||
<origin xyz="2 0 0" rpy="0 0 0"/> | ||
<geometry> | ||
<cylinder length="1" radius="2"/> | ||
</geometry> | ||
</visual> | ||
</link> | ||
<gazebo reference='j1'> | ||
<preserveFixedJoint>true</preserveFixedJoint> | ||
</gazebo> | ||
</robot> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<!--URDF--> | ||
<robot name='visual_example'> | ||
<link name='base_link'> | ||
<inertial> | ||
<mass value='0.12' /> | ||
<inertia ixx='0.01' ixy='0' ixz='0' iyy='0.01' iyz='0' izz='0.01' /> | ||
</inertial> | ||
<visual> | ||
<geometry> | ||
<sphere radius="2"/> | ||
</geometry> | ||
</visual> | ||
<visual> | ||
<origin xyz="2 0 0" rpy="0 0 0"/> | ||
<geometry> | ||
<cylinder length="1" radius="2"/> | ||
</geometry> | ||
</visual> | ||
</link> | ||
<gazebo reference='base_link'> | ||
<visual> | ||
<transparency>0.25</transparency> | ||
</visual> | ||
</gazebo> | ||
</robot> | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 exampleThere 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.