Unpack image data

This commit is contained in:
John Zhao
2018-04-09 01:20:00 +08:00
parent cfcb1ca531
commit bb075468ef
6 changed files with 125 additions and 8 deletions

View File

@@ -345,6 +345,21 @@ struct MYNTEYE_API ImgData {
timestamp = 0;
exposure_time = 0;
}
ImgData() {
Reset();
}
ImgData(const ImgData &other) {
frame_id = other.frame_id;
timestamp = other.timestamp;
exposure_time = other.exposure_time;
}
ImgData &operator=(const ImgData &other) {
frame_id = other.frame_id;
timestamp = other.timestamp;
exposure_time = other.exposure_time;
return *this;
}
};
/**
@@ -370,6 +385,10 @@ struct MYNTEYE_API ImuData {
std::fill(gyro, gyro + 3, 0);
temperature = 0;
}
ImuData() {
Reset();
}
};
MYNTEYE_END_NAMESPACE