mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
RegIcp: fixed KDTreeMatcherIntensity build error on Mac.
This commit is contained in:
@@ -590,15 +590,7 @@ void RegistrationIcp::parseParameters(const ParametersMap & parameters)
|
||||
|
||||
if(_libpointmatcherIntensity)
|
||||
{
|
||||
PointMatcher<float> matcher;
|
||||
typedef typename PointMatcherSupport::Registrar< PointMatcher<float>::Matcher >::template GenericClassDescriptor< KDTreeMatcherIntensity<float> > Desc;
|
||||
#if POINTMATCHER_VERSION_INT >= 10300
|
||||
matcher.MatcherRegistrar.reg("KDTreeMatcherIntensity", std::make_shared<Desc>() );
|
||||
icp->matcher = matcher.MatcherRegistrar.create("KDTreeMatcherIntensity", params);
|
||||
#else
|
||||
matcher.MatcherRegistrar.reg("KDTreeMatcherIntensity", new Desc() );
|
||||
icp->matcher.reset(matcher.MatcherRegistrar.create("KDTreeMatcherIntensity", params));
|
||||
#endif
|
||||
icp->matcher.reset(new KDTreeMatcherIntensity<float>(params));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user