7 a = pinocchio.SE3.Random()
8 b = pinocchio.SE3.Random()
9 assert cpp2pybind11.multiply_se3_1(a, b) == a * b
10 assert cpp2pybind11.multiply_se3(a, b) == a * b
11 assert cpp2pybind11.no_wrapper.multiply_se3(a, b) == a * b
12 assert cpp2pybind11.multiply_se3(a) == a
21 n = sys.getrefcount(v)
22 print(
"ref count of", what, idv, n)
25 m = cpp2pybind11.make_model()
27 print(cpp2pybind11.get_ptr(m))
31 cpp2pybind11.testModel1(m)
33 assert m.name.startswith(
"testModel1")
35 addr2 = cpp2pybind11.testModel2(m, 1)
37 assert m.name.startswith(
"testModel2")
39 addr3 = cpp2pybind11.testModel3(m, 2)
43 mm = cpp2pybind11.return_same_model_broken(m)
44 assert cpp2pybind11.get_ptr(m) != cpp2pybind11.get_ptr(mm)
46 mm = cpp2pybind11.return_same_model(m)
52 assert cpp2pybind11.get_ptr(m) == cpp2pybind11.get_ptr(mm)