MichaelGrupp / evo

Python package for the evaluation of odometry and SLAM
https://michaelgrupp.github.io/evo/
GNU General Public License v3.0
3.32k stars 743 forks source link

Converting the dataframe to PoseTrajectory3D #647

Closed benghalensis closed 2 months ago

benghalensis commented 3 months ago

This library has a method to convert dataframe to PoseTrajectory3D in pandas_bridge but not the other way around. I saw a PR to do that but I do not see the code here.

MichaelGrupp commented 2 months ago

This is now possible in version v1.27.1.

df = pandas_bridge.trajectory_to_df(traj_in)

traj_out = pandas_bridge.df_to_trajectory(df)

assert traj_in == traj_out

See the linked commit for details.