Skip to content

Commit

Permalink
Update Map.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
izhengfan committed Jun 4, 2024
1 parent fab42cd commit 86cc2fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,8 @@ void Map::loadLocalGraph(SlamOptimizer &optimizer)
int id1 = it - mLocalGraphKFs.begin();

{
Eigen::Map<Eigen::Matrix3d, RowMajor> info(meas.cov);
Eigen::Map<Eigen::Matrix3d, RowMajor> meas_cov(meas.cov);
Eigen::Matrix3d info = meas_cov.inverse();
addEdgeSE2(optimizer, Vector3D(meas.meas), i, id1, info);
}

Expand Down

1 comment on commit 86cc2fa

@izhengfan
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix according to #38

Please sign in to comment.