Skip to content

Commit

Permalink
Fix curr_keyfrm in graph_optimizer
Browse files Browse the repository at this point in the history
  • Loading branch information
ymd-stella committed Feb 24, 2024
1 parent 641e079 commit 5bd1c14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stella_vslam/optimize/graph_optimizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ void graph_optimizer::optimize(const std::shared_ptr<data::keyframe>& loop_keyfr
}

// Fix the loop keyframe or root keyframe
if (*keyfrm == *loop_keyfrm || keyfrm->graph_node_->is_spanning_root()) {
if (*keyfrm == *loop_keyfrm || *keyfrm == *curr_keyfrm || keyfrm->graph_node_->is_spanning_root()) {
keyfrm_vtx->setFixed(true);
}

Expand Down

0 comments on commit 5bd1c14

Please sign in to comment.