Skip to content

Commit

Permalink
Merge pull request #28 from LiuLimingCode/master
Browse files Browse the repository at this point in the history
fix a [-Werror=uninitialized] problem
  • Loading branch information
gcioffi authored Aug 4, 2022
2 parents 13b2f52 + 0ae3dfb commit 26a092b
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 26a092b

Please sign in to comment.