-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix xyz and rpy offsets in fixed joint reduction (#500)
* parse rpyOffset as radians Signed-off-by: Ian Chen <[email protected]> * update tf for xyz and rpy offsets Signed-off-by: Ian Chen <[email protected]> * remove inverse transform function in urdf parser Signed-off-by: Ian Chen <[email protected]> * inject corrected_offets tag Signed-off-by: Ian Chen <[email protected]> * Fix tag removal logic Signed-off-by: Steven Peters <[email protected]> Co-authored-by: Alejandro Hernández Cordero <[email protected]> Co-authored-by: Steve Peters <[email protected]>
- Loading branch information
1 parent
b06cc18
commit c02aca7
Showing
3 changed files
with
143 additions
and
30 deletions.
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
103 changes: 103 additions & 0 deletions
103
test/integration/fixed_joint_reduction_plugin_frame_extension.urdf
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,103 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<robot name="chained_fixed_joint_links"> | ||
<gazebo> | ||
<plugin name='test_plugin' filename='libtest_plugin.so'> | ||
<serviceName>/test/plugin/service</serviceName> | ||
<topicName>/test/plugin/topic</topicName> | ||
<bodyName>link2</bodyName> | ||
<updateRate>100</updateRate> | ||
<xyzOffset>0 0 0</xyzOffset> | ||
<rpyOffset>0 0 0</rpyOffset> | ||
</plugin> | ||
</gazebo> | ||
|
||
<!-- Base Link --> | ||
<link name="base_link"> | ||
<collision> | ||
<origin rpy="0 0 0" xyz="0 0 0.0"/> | ||
<geometry> | ||
<box size="1.0 1.0 1"/> | ||
</geometry> | ||
</collision> | ||
<visual> | ||
<origin rpy="0 0 0" xyz="0 0 1.0"/> | ||
<geometry> | ||
<box size="0.1 0.1 2"/> | ||
</geometry> | ||
</visual> | ||
<inertial> | ||
<origin xyz="0 0 1" rpy="0 0 0"/> | ||
<mass value="1"/> | ||
<inertia | ||
ixx="1.0" ixy="0.0" ixz="0.0" | ||
iyy="1.0" iyz="0.0" | ||
izz="1.0"/> | ||
</inertial> | ||
</link> | ||
|
||
<!-- Link 1 --> | ||
<link name="link1"> | ||
<collision> | ||
<origin rpy="0 0 0" xyz="0 0 0.0"/> | ||
<geometry> | ||
<box size="1.0 1.0 1"/> | ||
</geometry> | ||
</collision> | ||
<visual> | ||
<origin rpy="0 0 0" xyz="0 0 0.0"/> | ||
<geometry> | ||
<box size="0.1 0.1 1"/> | ||
</geometry> | ||
</visual> | ||
<inertial> | ||
<origin xyz="0 0 1" rpy="0 0 0"/> | ||
<mass value="1"/> | ||
<inertia | ||
ixx="1.0" ixy="0.0" ixz="0.0" | ||
iyy="1.0" iyz="0.0" | ||
izz="1.0"/> | ||
</inertial> | ||
</link> | ||
|
||
<!-- Link 2 --> | ||
<link name="link2"> | ||
<collision> | ||
<origin rpy="0 0 0" xyz="0 0 0.0"/> | ||
<geometry> | ||
<box size="1.0 1.0 1"/> | ||
</geometry> | ||
</collision> | ||
<visual> | ||
<origin rpy="0 0 0" xyz="0 0 0.0"/> | ||
<geometry> | ||
<box size="0.1 0.1 1"/> | ||
</geometry> | ||
</visual> | ||
<inertial> | ||
<origin xyz="0 0 1" rpy="0 0 0"/> | ||
<mass value="1"/> | ||
<inertia | ||
ixx="1.0" ixy="0.0" ixz="0.0" | ||
iyy="1.0" iyz="0.0" | ||
izz="1.0"/> | ||
</inertial> | ||
</link> | ||
|
||
<!-- Joint 1 --> | ||
<joint name="joint1" type="fixed"> | ||
<parent link="base_link"/> | ||
<child link="link1"/> | ||
<origin rpy="0 0 0.7854" xyz="0 1.0 0.0"/> | ||
<dynamics damping="0.7"/> | ||
</joint> | ||
|
||
<!-- Joint 2 --> | ||
<joint name="joint2" type="fixed"> | ||
<parent link="link1"/> | ||
<child link="link2"/> | ||
<origin rpy="0 0 0.7854" xyz="0 1.0 0.0"/> | ||
<axis xyz="0 1 0"/> | ||
<dynamics damping="0.7"/> | ||
</joint> | ||
</robot> | ||
|