Skip to content

Commit

Permalink
Merge pull request #2774 from mqcmd196/PR/pcl_nodelet_log
Browse files Browse the repository at this point in the history
[jsk_pcl_ros_utils] use nodelet logger and fix logging info
  • Loading branch information
k-okada committed Jun 26, 2023
2 parents ef04a20 + 6200b42 commit f264687
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions jsk_pcl_ros_utils/src/pointcloud_to_pcd_nodelet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ namespace jsk_pcl_ros_utils
return;
}

ROS_INFO ("Received %d data points in frame %s with the following fields: %s",
NODELET_INFO ("Received %d data points in frame %s with the following fields: %s",
(int)cloud->width * cloud->height,
cloud->header.frame_id.c_str (),
pcl::getFieldsList (*cloud).c_str ());
Expand All @@ -76,7 +76,7 @@ namespace jsk_pcl_ros_utils
Eigen::Quaternionf q = Eigen::Quaternionf::Identity ();
if (!fixed_frame_.empty ()) {
if (!tf_listener_->waitForTransform (fixed_frame_, cloud->header.frame_id, pcl_conversions::fromPCL (cloud->header).stamp, ros::Duration (duration_))) {
ROS_WARN("Could not get transform!");
NODELET_WARN("Could not get transform!");
return;
}
tf::StampedTransform transform_stamped;
Expand All @@ -90,7 +90,7 @@ namespace jsk_pcl_ros_utils

std::stringstream ss;
ss << prefix_ << cloud->header.stamp << ".pcd";
ROS_INFO ("Data saved to %s", ss.str ().c_str ());
NODELET_INFO ("Data saved to %s", ss.str ().c_str ());

pcl::PCDWriter writer;
if(binary_)
Expand Down Expand Up @@ -122,16 +122,16 @@ namespace jsk_pcl_ros_utils
{
if(compressed_)
{
ROS_INFO_STREAM ("Saving as binary compressed PCD");
NODELET_INFO("Saving as binary compressed PCD") ;
}
else
{
ROS_INFO_STREAM ("Saving as binary PCD");
NODELET_INFO("Saving as binary PCD");
}
}
else
{
ROS_INFO_STREAM ("Saving as binary PCD");
NODELET_INFO("Saving as ASCII PCD");
}
}

Expand Down

0 comments on commit f264687

Please sign in to comment.