mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 01:50:24 +08:00
Fixed build without SuperGlue
This commit is contained in:
@@ -79,8 +79,11 @@ RegistrationVis::RegistrationVis(const ParametersMap & parameters, Registration
|
|||||||
_minInliersDistributionThr(Parameters::defaultVisMinInliersDistribution()),
|
_minInliersDistributionThr(Parameters::defaultVisMinInliersDistribution()),
|
||||||
_maxInliersMeanDistance(Parameters::defaultVisMeanInliersDistance()),
|
_maxInliersMeanDistance(Parameters::defaultVisMeanInliersDistance()),
|
||||||
_detectorFrom(0),
|
_detectorFrom(0),
|
||||||
_detectorTo(0),
|
_detectorTo(0)
|
||||||
|
#ifdef RTABMAP_SUPERGLUE_PYTORCH
|
||||||
|
,
|
||||||
_superGlueMatcher(0)
|
_superGlueMatcher(0)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
_featureParameters = Parameters::getDefaultParameters();
|
_featureParameters = Parameters::getDefaultParameters();
|
||||||
uInsert(_featureParameters, ParametersPair(Parameters::kKpNNStrategy(), _featureParameters.at(Parameters::kVisCorNNType())));
|
uInsert(_featureParameters, ParametersPair(Parameters::kKpNNStrategy(), _featureParameters.at(Parameters::kVisCorNNType())));
|
||||||
|
|||||||
@@ -10,8 +10,6 @@ IF(QT4_FOUND)
|
|||||||
INCLUDE(${QT_USE_FILE})
|
INCLUDE(${QT_USE_FILE})
|
||||||
ENDIF(QT4_FOUND)
|
ENDIF(QT4_FOUND)
|
||||||
|
|
||||||
find_package (Python3 COMPONENTS Interpreter Development REQUIRED)
|
|
||||||
|
|
||||||
SET(LIBRARIES
|
SET(LIBRARIES
|
||||||
${OpenCV_LIBRARIES}
|
${OpenCV_LIBRARIES}
|
||||||
${PCL_LIBRARIES}
|
${PCL_LIBRARIES}
|
||||||
@@ -23,7 +21,7 @@ add_definitions(${PCL_DEFINITIONS})
|
|||||||
INCLUDE_DIRECTORIES(${INCLUDE_DIRS})
|
INCLUDE_DIRECTORIES(${INCLUDE_DIRS})
|
||||||
|
|
||||||
ADD_EXECUTABLE(matcher main.cpp)
|
ADD_EXECUTABLE(matcher main.cpp)
|
||||||
TARGET_LINK_LIBRARIES(matcher Python3::Python rtabmap_core rtabmap_utilite rtabmap_gui ${LIBRARIES})
|
TARGET_LINK_LIBRARIES(matcher rtabmap_core rtabmap_utilite rtabmap_gui ${LIBRARIES})
|
||||||
|
|
||||||
SET_TARGET_PROPERTIES( matcher
|
SET_TARGET_PROPERTIES( matcher
|
||||||
PROPERTIES OUTPUT_NAME ${PROJECT_PREFIX}-matcher)
|
PROPERTIES OUTPUT_NAME ${PROJECT_PREFIX}-matcher)
|
||||||
|
|||||||
Reference in New Issue
Block a user