From 90d0ccc14ac4a9c688a332a2f134d0af76bc57e8 Mon Sep 17 00:00:00 2001 From: David PAGNON Date: Tue, 23 Jul 2024 00:14:15 +0200 Subject: [PATCH] start at frame 1 instead of 0 --- Pose2Sim/Utilities/trc_from_mot_osim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pose2Sim/Utilities/trc_from_mot_osim.py b/Pose2Sim/Utilities/trc_from_mot_osim.py index dc00c52..359ff30 100644 --- a/Pose2Sim/Utilities/trc_from_mot_osim.py +++ b/Pose2Sim/Utilities/trc_from_mot_osim.py @@ -86,7 +86,7 @@ def get_marker_positions(motion_data, model, in_degrees=True, marker_list=[]): marker_positions += [np.array([marker_set.get(mk_name).findLocationInFrame(state, model.getGround()).to_numpy() for mk_name in marker_set_names]).flatten()] marker_positions_pd = pd.DataFrame(marker_positions, columns=marker_set_names_xyz) marker_positions_pd.insert(0, 'time', times) - marker_positions_pd.insert(0, 'frame', np.arange(len(times))) + marker_positions_pd.insert(0, 'frame', np.arange(len(times))+1) return marker_positions_pd, marker_set_names