Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save/Load Atlas Functionality #310

Closed
wants to merge 17 commits into from
Prev Previous commit
Next Next commit
added condition in color index
  • Loading branch information
Thomas Dutrannois committed May 4, 2021
commit 3ae39819515c58180c57764f6326a31b2f091763
6 changes: 6 additions & 0 deletions src/MapDrawer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ void MapDrawer::DrawKeyFrames(const bool bDrawKF, const bool bDrawGraph, const b
cv::Mat Twc = pKF->GetPoseInverse().t();
unsigned int index_color = pKF->mnOriginMapId;

if (index_color > 5)
index_color = 0;

glPushMatrix();

glMultMatrixf(Twc.ptr<GLfloat>(0));
Expand Down Expand Up @@ -307,6 +310,9 @@ void MapDrawer::DrawKeyFrames(const bool bDrawKF, const bool bDrawGraph, const b
cv::Mat Twc = pKF->GetPoseInverse().t();
unsigned int index_color = pKF->mnOriginMapId;

if (index_color > 5)
index_color = 0;

glPushMatrix();

glMultMatrixf(Twc.ptr<GLfloat>(0));
Expand Down