Azure Kinect Sensor SDK  refs/heads/master
Documentation for https://github.com/Microsoft/Azure-Kinect-Sensor-SDK

◆ k4a_record_write_imu_sample()

k4a_result_t k4a_record_write_imu_sample ( k4a_record_t  recording_handle,
k4a_imu_sample_t  imu_sample 
)
related

Writes an imu sample to file.

Parameters
recording_handleThe handle of a new recording, obtained by k4a_record_create().
imu_sampleA structure containing the imu sample data and timestamps.
Returns
K4A_RESULT_SUCCEEDED is returned on success
Remarks
Samples must be written in increasing order of timestamp, and the file's header must already be written.
When writing imu samples at the same time as captures, the samples should be within 1 second of the most recently written capture.