Skip to content

Commit

Permalink
Change joint limits and gravity to be closer to the conditions of #1596
Browse files Browse the repository at this point in the history
  • Loading branch information
jslee02 committed Aug 22, 2021
1 parent 4fb89e2 commit 5e4d225
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions data/sdf/test/test_issue1596.model
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@
<axis>
<xyz>1 0 0</xyz>
<limit>
<lower>-0.1</lower>
<upper>0.1</upper>
<lower>-1.2</lower>
<upper>1.2</upper>
<stiffness>1e6</stiffness>
</limit>
<dynamics>
Expand All @@ -135,8 +135,8 @@
<axis2>
<xyz>0 1 0</xyz>
<limit>
<lower>-0.1</lower>
<upper>0.1</upper>
<lower>-1.2</lower>
<upper>1.2</upper>
<stiffness>1e6</stiffness>
</limit>
<dynamics>
Expand All @@ -155,8 +155,8 @@
<axis>
<xyz>1 0 0</xyz>
<limit>
<lower>-0.1</lower>
<upper>0.1</upper>
<lower>-1.2</lower>
<upper>1.2</upper>
</limit>
<dynamics>
<damping>0.1</damping>
Expand All @@ -165,8 +165,8 @@
<axis2>
<xyz>0 1 0</xyz>
<limit>
<lower>-0.1</lower>
<upper>0.1</upper>
<lower>-1.2</lower>
<upper>1.2</upper>
</limit>
<dynamics>
<damping>0.1</damping>
Expand Down
2 changes: 1 addition & 1 deletion unittests/regression/test_Issue1596.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ TEST(Issue1596, ServoJointWithPositionLimits)
ASSERT_NE(skel, nullptr);

auto world = dart::simulation::World::create();
world->setGravity(Eigen::Vector3d(1, 1, 0));
world->setGravity(Eigen::Vector3d(9.81, 9.81, 0));
world->addSkeleton(skel);
ASSERT_EQ(world->getNumSkeletons(), 1);

Expand Down

0 comments on commit 5e4d225

Please sign in to comment.