diff --git a/tools/DatabaseViewer/main.cpp b/tools/DatabaseViewer/main.cpp index 0b96e41382..597655dab9 100644 --- a/tools/DatabaseViewer/main.cpp +++ b/tools/DatabaseViewer/main.cpp @@ -28,6 +28,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include #include "rtabmap/gui/DatabaseViewer.h" #include "rtabmap/utilite/ULogger.h" +#ifdef RTABMAP_PYTHON +#include +#endif #include #include @@ -50,6 +53,10 @@ int main(int argc, char * argv[]) QSurfaceFormat::setDefaultFormat(QVTKRenderWidget::defaultFormat()); #endif +#ifdef RTABMAP_PYTHON + rtabmap::PythonInterface pythonInterface; +#endif + QApplication * app = new QApplication(argc, argv); rtabmap::DatabaseViewer * mainWindow = new rtabmap::DatabaseViewer(); diff --git a/tools/Matcher/main.cpp b/tools/Matcher/main.cpp index 12f43ccc6f..8404db8a93 100644 --- a/tools/Matcher/main.cpp +++ b/tools/Matcher/main.cpp @@ -42,6 +42,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include #include #include +#ifdef RTABMAP_PYTHON +#include +#endif #include #include #include @@ -169,6 +172,10 @@ int main(int argc, char * argv[]) printf(" --from_depth = \"%s\"\n", fromDepthPath.c_str()); printf(" --to_depth = \"%s\"\n", toDepthPath.c_str()); +#ifdef RTABMAP_PYTHON + rtabmap::PythonInterface pythonInterface; +#endif + ParametersMap parameters = Parameters::parseArguments(argc, argv); parameters.insert(ParametersPair(Parameters::kRegRepeatOnce(), "false"));