def test_isometry_implicit(self, T): Isometry3 = Isometry3_[T] # Explicitly disabled, to mirror C++ API. with self.assertRaises(TypeError): self.assertTrue(mtest.TakeRigidTransform(Isometry3())) with catch_drake_warnings(expected_count=1): self.assertTrue(mtest.TakeIsometry3(mut.RigidTransform()))
def test_isometry_implicit(self, T): Isometry3 = Isometry3_[T] # Explicitly disabled, to mirror C++ API. with self.assertRaises(TypeError): self.assertTrue(mtest.TakeRigidTransform(Isometry3())) self.assertTrue(mtest.TakeIsometry3(mut.RigidTransform()))