mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-01 17:10:26 +08:00
util3d: Refactored laserScanFromPointCloud() functions to return LaserScan with correct format instead of cv::Mat.
This commit is contained in:
@@ -507,7 +507,7 @@ int main(int argc, char * argv[])
|
||||
if(saveInDb)
|
||||
{
|
||||
printf("Saving in db... (%d points)\n", (int)mergedClouds->size());
|
||||
driver->saveOptimizedMesh(util3d::laserScanFromPointCloud(*mergedClouds, Transform(), false));
|
||||
driver->saveOptimizedMesh(util3d::laserScanFromPointCloud(*mergedClouds, Transform(), false).data());
|
||||
printf("Saving in db... done!\n");
|
||||
}
|
||||
else
|
||||
|
||||
@@ -402,7 +402,7 @@ int main(int argc, char * argv[])
|
||||
scanVoxel,
|
||||
scanNormalK,
|
||||
scanNormalRadius,
|
||||
true);
|
||||
0.8f);
|
||||
}
|
||||
|
||||
float detectionRate = Parameters::defaultRtabmapDetectionRate();
|
||||
|
||||
Reference in New Issue
Block a user