Example #1
0
 def test_create(self):
     self.assertTrue(np.array_equal(euler.create(), [0., 0., 0.]))
     e = euler.create(roll=1., pitch=2., yaw=3.)
     self.assertEqual(euler.roll(e), 1.)
     self.assertEqual(euler.pitch(e), 2.)
     self.assertEqual(euler.yaw(e), 3.)
     self.assertTrue(np.array_equal(e, [1., 2., 3.]))
Example #2
0
 def test_create(self):
     self.assertTrue(np.array_equal(euler.create(), [0., 0., 0.]))
     e = euler.create(roll=1., pitch=2., yaw=3.)
     self.assertEqual(euler.roll(e), 1.)
     self.assertEqual(euler.pitch(e), 2.)
     self.assertEqual(euler.yaw(e), 3.)
     self.assertTrue(np.array_equal(e, [1., 2., 3.]))
Example #3
0
 def test_create(self):
     self.assertTrue(np.array_equal(euler.create(), [0.,0.,0.]))
     self.assertTrue(np.array_equal(euler.create(1.,2.,3.), [1.,2.,3.]))