Skip to content

Commit

Permalink
INTEGRATION_joint_spawn: stop testing joint with world as child, sinc…
Browse files Browse the repository at this point in the history
…e sdf 1.7 no longer supports that
  • Loading branch information
scpeters committed Jan 3, 2020
1 parent b27c156 commit e4b3095
Showing 1 changed file with 1 addition and 28 deletions.
29 changes: 1 addition & 28 deletions test/integration/joint_spawn.cc
Original file line number Diff line number Diff line change
Expand Up @@ -162,34 +162,7 @@ void JointSpawningTest::SpawnJointTypes(const std::string &_physicsEngine,
}
}

if (_physicsEngine == "dart")
{
// DART assumes that: (i) every link has its parent joint (ii) root link
// is the only link that doesn't have parent link.
// Child world link breaks dart for now. Do we need to support it?
gzerr << "Skip tests for child world link cases "
<< "since DART does not allow joint with world as child. "
<< "Please see issue #914. "
<< "(https://bitbucket.org/osrf/gazebo/issue/914)"
<< std::endl;
}
else
{
gzdbg << "SpawnJoint " << _jointType << " world parent" << std::endl;
physics::JointPtr joint = SpawnJoint(_jointType, true, false);
ASSERT_TRUE(joint != nullptr);
// Check parent link
physics::LinkPtr child = joint->GetChild();
physics::LinkPtr parent = joint->GetParent();
EXPECT_TRUE(child == nullptr);
ASSERT_TRUE(parent != nullptr);
EXPECT_EQ(parent->GetChildJoints().size(), 1u);
EXPECT_EQ(parent->GetParentJoints().size(), 0u);
for (unsigned int i = 0; i < joint->DOF(); ++i)
{
CheckJointProperties(i, joint);
}
}
// world as child of a joint is not supported in sdf 1.7
}

////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit e4b3095

Please sign in to comment.