2 from test_case
import PinocchioTestCase
as TestCase
4 import pinocchio
as pin
13 huamnoid_1 = pin.buildSampleModelHumanoidRandom()
14 huamnoid_2 = pin.buildSampleModelHumanoidRandom(
True)
15 huamnoid_3 = pin.buildSampleModelHumanoidRandom(
False)
17 self.assertTrue(huamnoid_1 != huamnoid_2)
18 self.assertTrue(huamnoid_1 != huamnoid_3)
20 manipulator_1 = pin.buildSampleModelManipulator()
23 geometry_manipulator_1 = pin.buildSampleGeometryModelManipulator(manipulator_1)
25 humanoid_4 = pin.buildSampleModelHumanoid()
26 humanoid_5 = pin.buildSampleModelHumanoid(
True)
27 humanoid_6 = pin.buildSampleModelHumanoid(
False)
29 self.assertTrue(humanoid_4 == humanoid_5)
30 self.assertTrue(humanoid_4 != humanoid_6)
33 geometry_humanoid_2 = pin.buildSampleGeometryModelHumanoid(humanoid_4)
35 if __name__ ==
'__main__':
def test_all_sampled_models(self)