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.]))
def test_pitch(self): self.assertEqual(euler.pitch([1.,2.,3.]), 1.)