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


pinocchio
Author(s):
autogenerated on Thu Dec 19 2024 03:41:25