From 0ae3dfb41821b342fb412c25e58a52d777c740fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8A=9B=E9=93=AD?= <1104257233@qq.com> Date: Wed, 23 Feb 2022 13:47:03 +0000 Subject: [PATCH] fix a [-Werror=uninitialized] problem --- svo_common/src/frame.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/svo_common/src/frame.cpp b/svo_common/src/frame.cpp index 7786de5..731a9ea 100644 --- a/svo_common/src/frame.cpp +++ b/svo_common/src/frame.cpp @@ -31,7 +31,7 @@ Frame::Frame( size_t n_pyr_levels) : id_(frame_counter_++) // TEMPORARY , cam_(cam) - , key_pts_(5, std::make_pair(-1, BearingVector())) + , key_pts_(5, std::make_pair(-1, BearingVector::Zero())) , timestamp_(timestamp_ns) { initFrame(img, n_pyr_levels); @@ -45,7 +45,7 @@ Frame::Frame( : id_(id) , cam_(cam) , T_f_w_(T_world_cam.inverse()) - , key_pts_(5, std::make_pair(-1, BearingVector())) + , key_pts_(5, std::make_pair(-1, BearingVector::Zero())) , timestamp_(timestamp_ns) {}