fix(src): fixed error setting extrinsics

This commit is contained in:
Osenberg 2019-08-21 16:04:02 +08:00
parent dd839a3cfd
commit 50509d539e
2 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ void Synthetic::InitCalibInfo() {
intr_left_ = api_->GetIntrinsicsBase(Stream::LEFT);
intr_right_ = api_->GetIntrinsicsBase(Stream::RIGHT);
extr_ = std::make_shared<Extrinsics>(
api_->GetExtrinsics(Stream::LEFT, Stream::RIGHT));
api_->GetExtrinsics(Stream::RIGHT, Stream::LEFT));
}
Synthetic::Synthetic(API *api, CalibrationModel calib_model)
@ -91,7 +91,7 @@ void Synthetic::NotifyImageParamsChanged() {
intr_left_ = api_->GetIntrinsicsBase(Stream::LEFT);
intr_right_ = api_->GetIntrinsicsBase(Stream::RIGHT);
extr_ = std::make_shared<Extrinsics>(
api_->GetExtrinsics(Stream::LEFT, Stream::RIGHT));
api_->GetExtrinsics(Stream::RIGHT, Stream::LEFT));
}
auto processor = getProcessorWithStream(Stream::LEFT_RECTIFIED);

View File

@ -713,7 +713,7 @@ void Device::UpdateStreamIntrinsics(
VLOG(2) << "Intrinsics left: {" << *GetIntrinsics(Stream::LEFT) << "}";
VLOG(2) << "Intrinsics right: {" << *GetIntrinsics(Stream::RIGHT) << "}";
VLOG(2) << "Extrinsics left to right: {"
<< GetExtrinsics(Stream::LEFT, Stream::RIGHT) << "}";
<< GetExtrinsics(Stream::RIGHT, Stream::LEFT) << "}";
break;
}
}