class testRodrigues(unittest.TestCase): def setUp(self): tmp = np.array([2.33333333, 3.0, 0.66666667]) tmp = tmp / np.linalg.norm(tmp) self.r = Rodrigues(tmp) def test_toQuaternion(self): r = self.r.tondarray() q = self.r.toQuaternion().toRodrigues() np.testing.assert_almost_equal(r, q)
class testRodrigues(unittest.TestCase): def setUp(self): tmp = np.array([2.33333333, 3.0, 0.66666667]) tmp = tmp/np.linalg.norm(tmp) self.r = Rodrigues(tmp) def test_toQuaternion(self): r = self.r.tondarray() q = self.r.toQuaternion().toRodrigues() np.testing.assert_almost_equal(r,q)
def setUp(self): tmp = np.array([2.33333333, 3.0, 0.66666667]) tmp = tmp / np.linalg.norm(tmp) self.r = Rodrigues(tmp)
def setUp(self): tmp = np.array([2.33333333, 3.0, 0.66666667]) tmp = tmp/np.linalg.norm(tmp) self.r = Rodrigues(tmp)