Skip to content

Commit f264687

Browse files
authored
Merge pull request #2774 from mqcmd196/PR/pcl_nodelet_log
[jsk_pcl_ros_utils] use nodelet logger and fix logging info
2 parents ef04a20 + 6200b42 commit f264687

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: jsk_pcl_ros_utils/src/pointcloud_to_pcd_nodelet.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ namespace jsk_pcl_ros_utils
6767
return;
6868
}
6969

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

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

9595
pcl::PCDWriter writer;
9696
if(binary_)
@@ -122,16 +122,16 @@ namespace jsk_pcl_ros_utils
122122
{
123123
if(compressed_)
124124
{
125-
ROS_INFO_STREAM ("Saving as binary compressed PCD");
125+
NODELET_INFO("Saving as binary compressed PCD") ;
126126
}
127127
else
128128
{
129-
ROS_INFO_STREAM ("Saving as binary PCD");
129+
NODELET_INFO("Saving as binary PCD");
130130
}
131131
}
132132
else
133133
{
134-
ROS_INFO_STREAM ("Saving as binary PCD");
134+
NODELET_INFO("Saving as ASCII PCD");
135135
}
136136
}
137137

0 commit comments

Comments
 (0)