bindings_sample_models.py
Go to the documentation of this file.
1 import unittest
2 from test_case import PinocchioTestCase as TestCase
3 
4 import pinocchio as pin
5 
6 class TestSampleModels(TestCase):
7 
8  def setUp(self):
9  pass
10 
12 
13  huamnoid_1 = pin.buildSampleModelHumanoidRandom()
14  huamnoid_2 = pin.buildSampleModelHumanoidRandom(True)
15  huamnoid_3 = pin.buildSampleModelHumanoidRandom(False)
16 
17  self.assertTrue(huamnoid_1 != huamnoid_2)
18  self.assertTrue(huamnoid_1 != huamnoid_3)
19 
20  manipulator_1 = pin.buildSampleModelManipulator()
21 
22  if pin.WITH_HPP_FCL:
23  geometry_manipulator_1 = pin.buildSampleGeometryModelManipulator(manipulator_1)
24 
25  humanoid_4 = pin.buildSampleModelHumanoid()
26  humanoid_5 = pin.buildSampleModelHumanoid(True)
27  humanoid_6 = pin.buildSampleModelHumanoid(False)
28 
29  self.assertTrue(humanoid_4 == humanoid_5)
30  self.assertTrue(humanoid_4 != humanoid_6)
31 
32  if pin.WITH_HPP_FCL:
33  geometry_humanoid_2 = pin.buildSampleGeometryModelHumanoid(humanoid_4)
34 
35 if __name__ == '__main__':
36  unittest.main()


pinocchio
Author(s):
autogenerated on Tue Jun 1 2021 02:45:02