fix(*): right left error.

This commit is contained in:
TinyO 2019-11-21 11:10:19 +08:00
parent 61d9b7b2e5
commit 0db087a108

View File

@ -80,13 +80,9 @@ int main(int argc, char *argv[]) {
device->WaitForStreams();
device::StreamData left_data = device->GetStreamData(Stream::LEFT);
auto left_data_frame = *(left_data.frame);
device::StreamData right_data = device->GetStreamData(Stream::RIGHT);
auto right_data_frame = *(left_data.frame);
if (left_data.frame->data() == nullptr ||
right_data.frame->data() == nullptr) {
continue;
}
auto left_data_frame = *(left_data.frame);
auto right_data_frame = *(right_data.frame);
auto &&motion_datas = device->GetMotionDatas();
motion_count += motion_datas.size();
@ -101,7 +97,7 @@ int main(int argc, char *argv[]) {
<< ", temperature: " << data.imu->temperature;
}
static cv::Mat img;
cv::Mat img;
// TODO(Kalman): Extract into public or internal method
if (left_data_frame.format() == Format::GREY) {