2 from test_case
import TestCase
10 capsule = hppfcl.Capsule(1.0, 2.0)
11 M1 = hppfcl.Transform3f()
12 M2 = hppfcl.Transform3f(np.eye(3), np.array([3, 0, 0]))
14 req = hppfcl.CollisionRequest()
15 res = hppfcl.CollisionResult()
17 self.assertTrue(
not hppfcl.collide(capsule, M1, capsule, M2, req, res))
20 capsule = hppfcl.Capsule(1.0, 2.0)
21 M1 = hppfcl.Transform3f()
22 M2 = hppfcl.Transform3f(np.eye(3), np.array([3, 0, 0]))
24 req = hppfcl.DistanceRequest()
25 res = hppfcl.DistanceResult()
27 self.assertTrue(hppfcl.distance(capsule, M1, capsule, M2, req, res) > 0)
30 if __name__ ==
"__main__":