Copy header in convert_pointcloud_to_image

This commit is contained in:
Martin Guenther
2018-04-30 11:44:37 -04:00
committed by Paul Bovbel
parent 360b87131b
commit b1c6428c83
@@ -64,6 +64,7 @@ public:
try
{
pcl::toROSMsg (*cloud, image_); //convert the cloud
image_.header = cloud->header;
image_pub_.publish (image_); //publish our cloud image
}
catch (std::runtime_error &e)