Skip to content

Commit

Permalink
fix a [-Werror=uninitialized] problem
Browse files Browse the repository at this point in the history
  • Loading branch information
LiuLimingCode committed Feb 23, 2022
1 parent 13b2f52 commit 0ae3dfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions svo_common/src/frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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)
{}

Expand Down

0 comments on commit 0ae3dfb

Please sign in to comment.