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


pinocchio
Author(s):
autogenerated on Fri Jun 23 2023 02:38:28