Skip to content

Commit

Permalink
Merge pull request ethz-asl#237 from VladyslavUsenko/fix/distortion_none
Browse files Browse the repository at this point in the history
Fix optimization for none distortion when compiled with default flags ethz-asl#236
  • Loading branch information
VladyslavUsenko authored Oct 31, 2018
2 parents 82ed673 + dbeeb73 commit 694ca20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aslam_optimizer/aslam_backend/src/Optimizer2.cpp
Original file line number Diff line number Diff line change
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 694ca20

Please sign in to comment.