diff --git a/navipy/trajectories/__init__.py b/navipy/trajectories/__init__.py index 9b024aa37b61b9fe4c1c720bc13c310121313740..f1ad52da265441ebe35aedf78a6a1a42b34fbebb 100644 --- a/navipy/trajectories/__init__.py +++ b/navipy/trajectories/__init__.py @@ -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')],