C++ example: explicitly close rtabmap without saving to db to avoid error when quitting

This commit is contained in:
matlabbe
2017-08-16 15:03:43 -04:00
parent b5b96a3edb
commit aa4f7571b9

View File

@@ -251,5 +251,7 @@ int main(int argc, char * argv[])
printf("Saving rtabmap_trajectory.txt... failed!\n");
}
rtabmap->close(false);
return 0;
}