MCPcopy Create free account
hub / github.com/dartsim/dart / TEST

Function TEST

tests/integration/test_InvalidDynamicsInputs.cpp:94–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92} // namespace
93
94TEST(InvalidDynamicsInputs, ZeroMassLeafDoesNotCrash)
95{
96 auto world = World::create();
97 auto skeleton = createTwoLinkSkeleton(0.0, 0.0);
98 world->addSkeleton(skeleton);
99
100 EXPECT_NO_THROW({
101 for (int i = 0; i < 5; ++i) {
102 world->step();
103 }
104 });
105
106 EXPECT_TRUE(skeleton->getPositions().allFinite());
107 EXPECT_TRUE(skeleton->getVelocities().allFinite());
108}
109
110TEST(InvalidDynamicsInputs, EpsilonMassLeafDoesNotCrash)
111{

Callers

nothing calls this directly

Calls 12

createTwoLinkSkeletonFunction · 0.85
createBoxSkeletonFunction · 0.85
stepMethod · 0.80
setMomentOfInertiaMethod · 0.80
setConstraintSolverMethod · 0.80
addSkeletonMethod · 0.45
getPositionsMethod · 0.45
getVelocitiesMethod · 0.45
setMassMethod · 0.45
setSpringStiffnessMethod · 0.45
setRestPositionMethod · 0.45
setPositionMethod · 0.45

Tested by

no test coverage detected