Skip to content

Commit 2d61ac9

Browse files
committed
Added comprehensive message when .grid files is no found
1 parent 37aa699 commit 2d61ac9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/grid3d.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ class Grid3d
538538
pf = fopen(fileName.c_str(), "rb");
539539
if(pf == NULL)
540540
{
541-
std::cout << "Error opening file " << fileName << " for reading" << std::endl;
541+
std::cout << fileName << " not found!" << std::endl;
542542
return false;
543543
}
544544

@@ -636,7 +636,7 @@ class Grid3d
636636
index = ix + iy*m_gridStepY + iz*m_gridStepZ;
637637
++count;
638638
percent = count/size *100.0;
639-
ROS_INFO_THROTTLE(0.5,"Progress: %lf %%", percent);
639+
printf("Computing grid map: %3.6lf%% \r", percent);
640640

641641
if(m_kdtree.nearestKSearch(searchPoint, 1, pointIdxNKNSearch, pointNKNSquaredDistance) > 0)
642642
{

0 commit comments

Comments
 (0)