MYNT-EYE-S-SDK/tools/writer/imu_params_writer.cc

28 lines
490 B
C++
Raw Normal View History

2018-04-21 10:45:33 +03:00
#include "mynteye/glog_init.h"
#include "mynteye/device.h"
#include "mynteye/utils.h"
#include "writer/device_writer.h"
MYNTEYE_USE_NAMESPACE
int main(int argc, char *argv[]) {
glog_init _(argc, argv);
const char *filepath;
if (argc >= 2) {
filepath = argv[1];
} else {
LOG(ERROR) << "Usage: ./imu_params_writer <filepath>";
return 2;
}
auto &&device = device::select();
tools::DeviceWriter writer(device);
writer.WriteImuParams(filepath);
return 0;
}