start at frame 1 instead of 0
This commit is contained in:
parent
1a8253aa24
commit
90d0ccc14a
@ -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 += [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 = pd.DataFrame(marker_positions, columns=marker_set_names_xyz)
|
||||||
marker_positions_pd.insert(0, 'time', times)
|
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
|
return marker_positions_pd, marker_set_names
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user