mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-04 17:17:47 +08:00
fixing enum
This commit is contained in:
@@ -246,10 +246,10 @@ void RegistrationIcp::parseParameters(const ParametersMap & parameters)
|
|||||||
bool pointToPlane = _pointToPlane;
|
bool pointToPlane = _pointToPlane;
|
||||||
|
|
||||||
#ifndef RTABMAP_POINTMATCHER
|
#ifndef RTABMAP_POINTMATCHER
|
||||||
if(_strategy==1)
|
if(_strategy==kIcpPointMatcher)
|
||||||
{
|
{
|
||||||
UWARN("Parameter %s is set to 1 but RTAB-Map has not been built with libpointmatcher support. Setting to 0.", Parameters::kIcpStrategy().c_str());
|
UWARN("Parameter %s is set to 1 but RTAB-Map has not been built with libpointmatcher support. Setting to 0.", Parameters::kIcpStrategy().c_str());
|
||||||
_strategy = 0;
|
_strategy = kIcpPCL;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
delete (PM::ICP*)_libpointmatcherICP;
|
delete (PM::ICP*)_libpointmatcherICP;
|
||||||
@@ -379,12 +379,12 @@ void RegistrationIcp::parseParameters(const ParametersMap & parameters)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef RTABMAP_CCCORELIB
|
#ifndef RTABMAP_CCCORELIB
|
||||||
if(_strategy==2)
|
if(_strategy==kIcpCCCoreLib)
|
||||||
{
|
{
|
||||||
#ifdef RTABMAP_POINTMATCHER
|
#ifdef RTABMAP_POINTMATCHER
|
||||||
_strategy = 1;
|
_strategy = kIcpPointMatcher;
|
||||||
#else
|
#else
|
||||||
_strategy = 0;
|
_strategy = kIcpPCL;
|
||||||
#endif
|
#endif
|
||||||
UWARN("Parameter %s is set to 2 but RTAB-Map has not been built with CCCoreLib support. Setting to %d.", Parameters::kIcpStrategy().c_str(), _strategy);
|
UWARN("Parameter %s is set to 2 but RTAB-Map has not been built with CCCoreLib support. Setting to %d.", Parameters::kIcpStrategy().c_str(), _strategy);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user