mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
Refactored RegistrationIcp: libpointmatcher yaml config usage / integrated CCCoreLib (#704)
* Refactored RegistrationIcp so that libpointmatcher yaml can work with icp odometry (we can then avoid refiltering data with local map of F2M). All data filtering (including libpointmatcher DataFilters) are done at the beginning of the function. * ICP: Restored ref and data scans order for libpointmatcher (seems more stable this way). * Fixed compilation error without libpointmatcher * CCCoreLib integration (Icp/Strategy=2). Icp/PMForce4DoF is now Icp/Force4DoF. Icp/PM is now Icp/Strategy. Icp/PMOutlierRatio is now Icp/OutlierRatio. * Fixed build without CCCoreLib * Cleanup RegistrationIcp from third party functions. * Preferences: disable libpointmatcher and cccorlib options if not available
This commit is contained in:
@@ -117,6 +117,14 @@ std::string uNumber2Str(double number)
|
||||
|
||||
int uStr2Int(const std::string & str)
|
||||
{
|
||||
if(uStrContains(uToLowerCase(str), "true"))
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
else if(uStrContains(uToLowerCase(str), "false"))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
return atoi(str.c_str());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user