Copy header in convert_pointcloud_to_image

This commit is contained in:
Martin Guenther 2016-04-22 14:51:07 +02:00 committed by Paul Bovbel
parent 360b87131b
commit b1c6428c83

View File

@ -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)