forked from dartsim/dart
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix FreeJoint velocity and position integration for articulated bodies (
#28) #10 attempted to fix an integration issue when the COM offset from the link origin. However, this seems to work only for single body systems. With an articulated body, the fix in #10 actually caused errors that lead to fictitious forced being applied. This in essence reverts #10 while keeping the necessary changes for updateConstrainedTerms and adding more tests. Signed-off-by: Addisu Z. Taddese <[email protected]>
- Loading branch information
Showing
6 changed files
with
411 additions
and
63 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<sdf version="1.5"> | ||
<world name='default'> | ||
<gravity>0 0 0</gravity> | ||
<physics type="dart"> | ||
<gravity>0.0 0.0 0</gravity> | ||
<real_time_update_rate>1000.000000</real_time_update_rate> | ||
<max_step_size>0.001000</max_step_size> | ||
</physics> | ||
<model name="M"> | ||
<pose>1 1 0 0 0 0</pose> | ||
<link name="link1"> | ||
<pose>0 0 2 0 0 0</pose> | ||
<inertial> | ||
<mass>1.0</mass> | ||
<inertia> | ||
<ixx>1.0</ixx> | ||
<iyy>1.0</iyy> | ||
<izz>1.0</izz> | ||
<ixy>0.0</ixy> | ||
<ixz>0.0</ixz> | ||
<iyz>0.0</iyz> | ||
</inertia> | ||
</inertial> | ||
<visual name="v1"> | ||
<geometry> | ||
<box> | ||
<size>1 1 1</size> | ||
</box> | ||
</geometry> | ||
</visual> | ||
<visual name='v2'> | ||
<pose>0 0 -2 0 0 0</pose> | ||
<geometry><sphere><radius>0.1</radius></sphere></geometry> | ||
</visual> | ||
</link> | ||
<joint name="revJoint" type="revolute"> | ||
<parent>link1</parent> | ||
<child>link2</child> | ||
<axis> | ||
<xyz>1 0 0</xyz> | ||
</axis> | ||
</joint> | ||
<link name="link2"> | ||
<pose>0 0 -2 0 0 0</pose> | ||
<inertial> | ||
<mass>1.0</mass> | ||
<inertia> | ||
<ixx>1.0</ixx> | ||
<iyy>1.0</iyy> | ||
<izz>1.0</izz> | ||
<ixy>0.0</ixy> | ||
<ixz>0.0</ixz> | ||
<iyz>0.0</iyz> | ||
</inertia> | ||
</inertial> | ||
<visual name='v1'> | ||
<geometry><box><size>1 1 1</size></box></geometry> | ||
</visual> | ||
</link> | ||
</model> | ||
</world> | ||
</sdf> |
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,62 @@ | ||
<sdf version="1.5"> | ||
<world name='default'> | ||
<gravity>0 0 0</gravity> | ||
<physics type="dart"> | ||
<gravity>0.0 0.0 0</gravity> | ||
<real_time_update_rate>1000.000000</real_time_update_rate> | ||
<max_step_size>0.001000</max_step_size> | ||
</physics> | ||
<model name="M"> | ||
<link name="link1"> | ||
<pose>0 0 2 0 0 0</pose> | ||
<inertial> | ||
<mass>1.0</mass> | ||
<inertia> | ||
<ixx>1.0</ixx> | ||
<iyy>1.0</iyy> | ||
<izz>1.0</izz> | ||
<ixy>0.0</ixy> | ||
<ixz>0.0</ixz> | ||
<iyz>0.0</iyz> | ||
</inertia> | ||
</inertial> | ||
<visual name="v1"> | ||
<geometry> | ||
<box> | ||
<size>1 1 1</size> | ||
</box> | ||
</geometry> | ||
</visual> | ||
<visual name='v2'> | ||
<pose>0 0 -2 0 0 0</pose> | ||
<geometry><sphere><radius>0.1</radius></sphere></geometry> | ||
</visual> | ||
</link> | ||
<joint name="revJoint" type="revolute"> | ||
<pose>0 0 2 0 0 0</pose> | ||
<parent>link1</parent> | ||
<child>link2</child> | ||
<axis> | ||
<xyz>1 0 0</xyz> | ||
</axis> | ||
</joint> | ||
<link name="link2"> | ||
<pose>0 0 -2 0 0 0</pose> | ||
<inertial> | ||
<mass>1.0</mass> | ||
<inertia> | ||
<ixx>1.0</ixx> | ||
<iyy>1.0</iyy> | ||
<izz>1.0</izz> | ||
<ixy>0.0</ixy> | ||
<ixz>0.0</ixz> | ||
<iyz>0.0</iyz> | ||
</inertia> | ||
</inertial> | ||
<visual name='v1'> | ||
<geometry><box><size>1 1 1</size></box></geometry> | ||
</visual> | ||
</link> | ||
</model> | ||
</world> | ||
</sdf> |
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
Oops, something went wrong.