-
Notifications
You must be signed in to change notification settings - Fork 443
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix: Some objects have invalid scales when replay rendering (#2200)
* gfx-replay scaling fix * Encode URDF link scaling in creationInfo rather than directly in nodes. * Remove comment in Recorder.cpp. * Remove unnecessary std::move. * Add test for replay rendering of scaled articulated objects. * Update MetadataMediatorTest ao file count. * Disable classic replay AO test. --------- Co-authored-by: Eric Undersander <[email protected]>
- Loading branch information
1 parent
7ed84da
commit 8f5d58d
Showing
6 changed files
with
258 additions
and
30 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,134 @@ | ||
<?xml version="1.0" ?> | ||
<robot name="fridge"> | ||
<link name="root"> | ||
</link> | ||
<joint name="root_rotation" type="fixed"> | ||
<origin rpy="1.565 0 0" xyz="0 0 0"/> | ||
<parent link="root"/> | ||
<child link="body"/> | ||
</joint> | ||
<link name="body"> | ||
<inertial> | ||
<origin rpy="0 0 0" xyz="0 0 0"/> | ||
<mass value="70.0"/> | ||
<!-- Warning: dummy inertia. Expect that inertia diagonal will be computed during load. --> | ||
<inertia ixx="1.0" ixy="0" ixz="0" iyy="1.0" iyz="0" izz="1.0"/> | ||
</inertial> | ||
<visual> | ||
<origin rpy="0 0 0" xyz="0 0 0"/> | ||
<geometry> | ||
<mesh filename="body.glb" scale="1.5 1.5 1.5"/> | ||
</geometry> | ||
</visual> | ||
<collision> | ||
<origin rpy="0 0 0" xyz="0 -0.002765 -0.94159"/> | ||
<geometry> | ||
<box size="0.643 0.691 0.027"/> | ||
</geometry> | ||
</collision> | ||
<collision> | ||
<origin rpy="0 0 0" xyz="0 -0.002765 0.94936"/> | ||
<geometry> | ||
<box size="0.643 0.691 0.027"/> | ||
</geometry> | ||
</collision> | ||
<collision> | ||
<origin rpy="0 0 0" xyz="0 -0.002765 -0.585528"/> | ||
<geometry> | ||
<box size="0.643 0.691 0.027"/> | ||
</geometry> | ||
</collision> | ||
<collision> | ||
<origin rpy="0 0 0" xyz="0 -0.002765 -0.226826"/> | ||
<geometry> | ||
<box size="0.643 0.691 0.027"/> | ||
</geometry> | ||
</collision> | ||
<collision> | ||
<origin rpy="0 0 0" xyz="0 -0.002765 -0.033778"/> | ||
<geometry> | ||
<box size="0.643 0.691 0.027"/> | ||
</geometry> | ||
</collision> | ||
<collision> | ||
<origin rpy="0 0 0" xyz="0 -0.002765 0.255839"/> | ||
<geometry> | ||
<box size="0.643 0.691 0.042"/> | ||
</geometry> | ||
</collision> | ||
<collision> | ||
<origin rpy="0 0 0" xyz="0 -0.337538 0.005784"/> | ||
<geometry> | ||
<box size="0.643 0.03 1.89126"/> | ||
</geometry> | ||
</collision> | ||
<collision> | ||
<origin rpy="0 0 0" xyz="0 0.329773 0.005784"/> | ||
<geometry> | ||
<box size="0.643 0.03 1.89126"/> | ||
</geometry> | ||
</collision> | ||
<collision> | ||
<origin rpy="0 0 0" xyz="-0.316502 -0.002765 0"/> | ||
<geometry> | ||
<box size="0.029014 0.690834 1.91906"/> | ||
</geometry> | ||
</collision> | ||
</link> | ||
<joint name="top_door_hinge" type="revolute"> | ||
<origin rpy="0 0 0" xyz="0.34 0.326 -0.375"/> | ||
<parent link="body"/> | ||
<child link="top_door"/> | ||
<axis xyz="0 0 1"/> | ||
<dynamics damping="0.01" friction="0.01"/> | ||
<limit effort="44.4" lower="0.0" upper="2.3" velocity="40"/> | ||
</joint> | ||
<link name="top_door"> | ||
<inertial> | ||
<origin rpy="0 0 0" xyz="0 0 0"/> | ||
<mass value="8"/> | ||
<!-- Warning: dummy inertia. Expect that inertia diagonal will be computed during load. --> | ||
<inertia ixx="1.0" ixy="0" ixz="0" iyy="1.0" iyz="0" izz="1.0"/> | ||
</inertial> | ||
<visual> | ||
<origin rpy="0 0 0" xyz="0 -0.33 0"/> | ||
<geometry> | ||
<mesh filename="top_door.glb" scale="0.75 0.75 0.75"/> | ||
</geometry> | ||
</visual> | ||
<collision> | ||
<origin rpy="0 0 0" xyz="0 -0.33 -0.02"/> | ||
<geometry> | ||
<box size="0.097 0.712 1.103"/> | ||
</geometry> | ||
</collision> | ||
</link> | ||
<joint name="bottom_door_hinge" type="revolute"> | ||
<origin rpy="0 0 0" xyz="0.34 0.326 0.546"/> | ||
<parent link="body"/> | ||
<child link="bottom_door"/> | ||
<axis xyz="0 0 1"/> | ||
<dynamics damping="0.01" friction="0.01"/> | ||
<limit effort="44.4" lower="0.0" upper="2.5" velocity="40"/> | ||
</joint> | ||
<link name="bottom_door"> | ||
<inertial> | ||
<origin rpy="0 0 0" xyz="0 0 0"/> | ||
<mass value="6"/> | ||
<!-- Warning: dummy inertia. Expect that inertia diagonal will be computed during load. --> | ||
<inertia ixx="1.0" ixy="0" ixz="0" iyy="1.0" iyz="0" izz="1.0"/> | ||
</inertial> | ||
<visual> | ||
<origin rpy="0 0 0" xyz="0.01 -0.33 0"/> | ||
<geometry> | ||
<mesh filename="bottom_door.glb" scale="1.0 1.0 1.0"/> | ||
</geometry> | ||
</visual> | ||
<collision> | ||
<origin rpy="0 0 0" xyz="0.01 -0.33 0.01"/> | ||
<geometry> | ||
<box size="0.08 0.686 0.788"/> | ||
</geometry> | ||
</collision> | ||
</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
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
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