Monado OpenXR Runtime
|
EuRoC dataset recorder utility. More...
Go to the source code of this file.
Macros | |
#define | CSV_EOL "\r\n" |
#define | CSV_PRECISION 10 |
Functions | |
struct xrt_slam_sinks * | euroc_recorder_create (struct xrt_frame_context *xfctx, const char *record_path, int cam_count, bool record_from_start) |
Create SLAM sinks to record samples in EuRoC format. More... | |
void | euroc_recorder_start (struct xrt_slam_sinks *er_sinks) |
Start recording samples sent to the recorder sinks. More... | |
void | euroc_recorder_stop (struct xrt_slam_sinks *er_sinks) |
Stop recording samples sent to the recorder sinks. More... | |
void | euroc_recorder_add_ui (struct xrt_slam_sinks *er_sinks, void *root, const char *prefix) |
Add EuRoC recorder UI button to start recording after creation. More... | |
EuRoC dataset recorder utility.
void euroc_recorder_add_ui | ( | struct xrt_slam_sinks * | er_sinks, |
void * | root, | ||
const char * | prefix | ||
) |
Add EuRoC recorder UI button to start recording after creation.
er_sinks | The sinks returned by euroc_recorder_create |
root | The pointer to add UI button to |
prefix | Prefix in case you have multiple recorders, otherwise pass an empty string |
References u_var_button::cb, container_of, and euroc_recorder::recording_btn.
void euroc_recorder_start | ( | struct xrt_slam_sinks * | er_sinks | ) |
Start recording samples sent to the recorder sinks.
er_sinks | The recorder sinks returned by euroc_recorder_create |
References container_of, os_realtime_get_ns(), euroc_recorder::path, euroc_recorder::path_prefix, euroc_recorder::recording, U_1_000_000_000, and U_LOG_W.
void euroc_recorder_stop | ( | struct xrt_slam_sinks * | er_sinks | ) |
Stop recording samples sent to the recorder sinks.
You can start and stop as many times as you like.
er_sinks | The recorder sinks returned by euroc_recorder_create |
References container_of, euroc_recorder::path, euroc_recorder::recording, and U_LOG_W.