Skip to content
Snippets Groups Projects
Commit de02570f authored by Luise Odenthal's avatar Luise Odenthal
Browse files

repaired optic flow test

parent 6ecfbc62
No related branches found
No related tags found
No related merge requests found
...@@ -107,12 +107,12 @@ class TestCase(unittest.TestCase): ...@@ -107,12 +107,12 @@ class TestCase(unittest.TestCase):
tuples = [('location', 'x'), ('location', 'y'), tuples = [('location', 'x'), ('location', 'y'),
('location', 'z'), ('location', 'dx'), ('location', 'z'), ('location', 'dx'),
('location', 'dy'), ('location', 'dz'), ('location', 'dy'), ('location', 'dz'),
(self.convention, 'alpha_0'), (convention, 'alpha_0'),
(self.convention, 'alpha_1'), (convention, 'alpha_1'),
(self.convention, 'alpha_2'), (convention, 'alpha_2'),
(self.convention, 'dalpha_0'), (convention, 'dalpha_0'),
(self.convention, 'dalpha_1'), (convention, 'dalpha_1'),
(self.convention, 'dalpha_2')] (convention, 'dalpha_2')]
index = pd.MultiIndex.from_tuples(tuples, index = pd.MultiIndex.from_tuples(tuples,
names=['position', names=['position',
'orientation']) 'orientation'])
...@@ -120,16 +120,15 @@ class TestCase(unittest.TestCase): ...@@ -120,16 +120,15 @@ class TestCase(unittest.TestCase):
velocity['location']['x'] = x velocity['location']['x'] = x
velocity['location']['y'] = y velocity['location']['y'] = y
velocity['location']['z'] = z velocity['location']['z'] = z
velocity[self.convention]['alpha_0'] = yaw velocity[convention]['alpha_0'] = yaw
velocity[self.convention]['alpha_1'] = pitch velocity[convention]['alpha_1'] = pitch
velocity[self.convention]['alpha_2'] = roll velocity[convention]['alpha_2'] = roll
velocity['location']['dx'] = dx velocity['location']['dx'] = dx
velocity['location']['dy'] = dy velocity['location']['dy'] = dy
velocity['location']['dz'] = dz velocity['location']['dz'] = dz
velocity[self.convention]['dalpha_0'] = dyaw velocity[convention]['dalpha_0'] = dyaw
velocity[self.convention]['dalpha_1'] = dpitch velocity[convention]['dalpha_1'] = dpitch
velocity[self.convention]['dalpha_2'] = droll velocity[convention]['dalpha_2'] = droll
print("convention", convention)
with self.assertRaises(ValueError): with self.assertRaises(ValueError):
rof, hof, vof = mcode.optic_flow(self.scene, rof, hof, vof = mcode.optic_flow(self.scene,
self.viewing_directions, self.viewing_directions,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment