Skip to content

Commit

Permalink
Merge pull request PointCloudLibrary#5 from locusrobotics/make-empty-…
Browse files Browse the repository at this point in the history
…debug

Make 0-size pointcloud messages debug level
  • Loading branch information
paulbovbel authored Aug 21, 2023
2 parents 951780b + 983f928 commit a5d1f66
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion common/include/pcl/conversions.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ namespace pcl
// check if there is data to copy
if (msg.width * msg.height == 0)
{
PCL_INFO("[pcl::fromPCLPointCloud2] No data to copy.\n");
PCL_DEBUG("[pcl::fromPCLPointCloud2] No data to copy.\n");
return;
}

Expand Down
8 changes: 4 additions & 4 deletions common/include/pcl/point_cloud.h
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,8 @@ namespace pcl
assign(InputIterator first, InputIterator last, index_t new_width)
{
if (new_width == 0) {
PCL_INFO("Assignment with new_width equal to 0,"
"setting width to size of the cloud and height to 1\n");
PCL_DEBUG("Assignment with new_width equal to 0,"
"setting width to size of the cloud and height to 1\n");
return assign(std::move(first), std::move(last));
}

Expand Down Expand Up @@ -638,8 +638,8 @@ namespace pcl
inline assign(std::initializer_list<PointT> ilist, index_t new_width)
{
if (new_width == 0) {
PCL_INFO("Assignment with new_width equal to 0,"
"setting width to size of the cloud and height to 1\n");
PCL_DEBUG("Assignment with new_width equal to 0,"
"setting width to size of the cloud and height to 1\n");
return assign(std::move(ilist));
}
points.assign(std::move(ilist));
Expand Down

0 comments on commit a5d1f66

Please sign in to comment.