fix(src): fixed error setting extrinsics.

This commit is contained in:
Osenberg 2019-08-21 15:57:14 +08:00
parent 593abc1b3d
commit dd839a3cfd

View File

@ -660,7 +660,7 @@ void Device::ReadAllInfos() {
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;
}
}
@ -709,7 +709,7 @@ void Device::UpdateStreamIntrinsics(
if (ok) {
SetIntrinsics(Stream::LEFT, img_params.in_left);
SetIntrinsics(Stream::RIGHT, img_params.in_right);
SetExtrinsics(Stream::LEFT, Stream::RIGHT, img_params.ex_right_to_left);
SetExtrinsics(Stream::RIGHT, Stream::LEFT, img_params.ex_right_to_left);
VLOG(2) << "Intrinsics left: {" << *GetIntrinsics(Stream::LEFT) << "}";
VLOG(2) << "Intrinsics right: {" << *GetIntrinsics(Stream::RIGHT) << "}";
VLOG(2) << "Extrinsics left to right: {"