Monado OpenXR Runtime
t_euroc_recorder.h File Reference

EuRoC dataset recorder utility. More...

#include "xrt/xrt_tracking.h"
#include "xrt/xrt_frame.h"
Include dependency graph for t_euroc_recorder.h:

Go to the source code of this file.

Macros

#define CSV_EOL   "\r\n"
 
#define CSV_PRECISION   10
 

Functions

struct xrt_slam_sinkseuroc_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...
 

Detailed Description

EuRoC dataset recorder utility.

Author
Mateo de Mayo mateo.nosp@m..dem.nosp@m.ayo@c.nosp@m.olla.nosp@m.bora..nosp@m.com

Function Documentation

◆ euroc_recorder_add_ui()

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.

Parameters
er_sinksThe sinks returned by euroc_recorder_create
rootThe pointer to add UI button to
prefixPrefix in case you have multiple recorders, otherwise pass an empty string

References u_var_button::cb, container_of, and euroc_recorder::recording_btn.

◆ euroc_recorder_start()

void euroc_recorder_start ( struct xrt_slam_sinks er_sinks)

Start recording samples sent to the recorder sinks.

Parameters
er_sinksThe 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.

◆ euroc_recorder_stop()

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.

Parameters
er_sinksThe recorder sinks returned by euroc_recorder_create

References container_of, euroc_recorder::path, euroc_recorder::recording, and U_LOG_W.