Skip to content

Commit

Permalink
Fix optimization for none distortion when compiled with default flags
Browse files Browse the repository at this point in the history
  • Loading branch information
VladyslavUsenko committed Oct 30, 2018
1 parent ca85905 commit dbeeb73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aslam_optimizer/aslam_backend/src/Optimizer2.cpp
Expand Up @@ -296,7 +296,8 @@ namespace aslam {
const int dbd = d->minimalDimensions();
Eigen::VectorXd dxS = _dx.segment(startIdx, dbd);
dxS *= d->scaling();
d->update(&dxS[0], dbd);
if(dbd > 0)
d->update(&dxS[0], dbd);
startIdx += dbd;
}
// Track the maximum delta
Expand Down

0 comments on commit dbeeb73

Please sign in to comment.