diff --git a/samples/dataset.cc b/samples/dataset.cc index fe20f3c..74a5ef7 100644 --- a/samples/dataset.cc +++ b/samples/dataset.cc @@ -131,15 +131,14 @@ void Dataset::SaveMotionData(const api::MotionData &data) { auto &&writer = GetMotionWriter(); // auto seq = data.imu->serial_number; auto seq = motion_count_; - if (data.imu->flag == 1 || data.imu->flag == 2) { - writer->ofs << seq << ", " << static_cast(data.imu->flag) << ", " + writer->ofs << seq << ", " << static_cast(data.imu->flag) << ", " << data.imu->timestamp << ", " << data.imu->accel[0] << ", " << data.imu->accel[1] << ", " << data.imu->accel[2] << ", " << data.imu->gyro[0] << ", " << data.imu->gyro[1] << ", " << data.imu->gyro[2] << ", " << data.imu->temperature << std::endl; - ++motion_count_; - } + ++motion_count_; + /* if(motion_count_ != seq) { LOG(INFO) << "motion_count_ != seq !" << " motion_count_: " << motion_count_