rofunc.devices.mmodal.sync#

1.  Module Contents#

1.1.  Functions#

get_optitrack_time

Args:

optitrack_time_path: the path of optitrack csv file time_reference: the time reference of optitrack csv file, ‘PM’ or ‘AM’ time_zone: the time zone of optitrack csv file, check your timezone name by pytz.all_timezones

get_xsens_time

Args:

mvnx_path: the path of xsens mvnx file init_unix_time: the time of the first frame of xsens (millisecond)

get_zed_time

data_sync

1.2.  API#

rofunc.devices.mmodal.sync.get_optitrack_time(optitrack_input_path, time_reference='PM', time_zone='Etc/GMT-8')[source]#
Args:

optitrack_time_path: the path of optitrack csv file time_reference: the time reference of optitrack csv file, ‘PM’ or ‘AM’ time_zone: the time zone of optitrack csv file, check your timezone name by pytz.all_timezones

Returns: the time list of optitrack (np.array)

rofunc.devices.mmodal.sync.get_xsens_time(mvnx_input_path)[source]#
Args:

mvnx_path: the path of xsens mvnx file init_unix_time: the time of the first frame of xsens (millisecond)

Returns: the time list of xsens (np.array)

rofunc.devices.mmodal.sync.get_zed_time(svo_input_path)[source]#
rofunc.devices.mmodal.sync.data_sync(optitrack_input_path, mvnx_input_path, svo_input_path)[source]#