mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
Fixed Force4DoF param not used exception on older libpointmatcher versions
This commit is contained in:
@@ -615,7 +615,11 @@ void RegistrationIcp::parseParameters(const ParametersMap & parameters)
|
||||
params.clear();
|
||||
|
||||
params["force2D"] = force3DoF()?"1":"0";
|
||||
params["force4DOF"] = !force3DoF()&&_libpointmatcherForce4DoF?"1":"0";
|
||||
|
||||
if(!force3DoF()&&_libpointmatcherForce4DoF)
|
||||
{
|
||||
params["force4DOF"] = "1";
|
||||
}
|
||||
#if POINTMATCHER_VERSION_INT >= 10300
|
||||
icp->errorMinimizer = PM::get().ErrorMinimizerRegistrar.create("PointToPlaneErrorMinimizer", params);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user