bindings_geometry_model.py
Go to the documentation of this file.
1 import unittest
2 
3 import pinocchio as pin
4 
5 
6 class TestGeometryModelBindings(unittest.TestCase):
7  def test_pair_equals(self):
8  c1 = pin.CollisionPair(1, 2)
9  c2 = pin.CollisionPair(1, 2)
10  c3 = pin.CollisionPair(3, 4)
11 
12  self.assertEqual(c1, c2)
13  self.assertTrue(c1 == c2)
14  self.assertFalse(c1 != c2)
15 
16  self.assertNotEqual(c1, c3)
17  self.assertTrue(c1 != c3)
18  self.assertFalse(c1 == c3)
19 
20  def test_pair_copy(self):
21  c1 = pin.CollisionPair(1, 2)
22  c2 = c1.copy()
23 
24  self.assertEqual(c1, c2)
25 
26  c2.second = 3
27  self.assertNotEqual(c1, c2)
28 
29 
30 if __name__ == "__main__":
31  unittest.main()
bindings_geometry_model.TestGeometryModelBindings.test_pair_equals
def test_pair_equals(self)
Definition: bindings_geometry_model.py:7
bindings_geometry_model.TestGeometryModelBindings
Definition: bindings_geometry_model.py:6
bindings_geometry_model.TestGeometryModelBindings.test_pair_copy
def test_pair_copy(self)
Definition: bindings_geometry_model.py:20


pinocchio
Author(s):
autogenerated on Sun Dec 22 2024 03:41:06