Skip to content
Snippets Groups Projects
Commit 668edf18 authored by Olivier Bertrand's avatar Olivier Bertrand
Browse files

Fix converstion euler to quaternion

parent 798c1e73
No related branches found
No related tags found
No related merge requests found
......@@ -145,9 +145,9 @@ class Trajectory(pd.DataFrame):
neworient.drop(inplace=True, labels='location', level=0, axis=1)
for index_i, row in self.iterrows():
if rotation_mode == 'quaternion':
orient = htq.from_euler(row.angle_0,
row.angle_1,
row.angle_2,
orient = htq.from_euler(row.loc[oldrotmod, 'alpha_0'],
row.loc[oldrotmod, 'alpha_1'],
row.loc[oldrotmod, 'alpha_2'],
axes=oldrotmod)
else:
m = hte.matrix(ai=row.loc[(self.rotation_mode, 'alpha_0')],
......
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