Copy header in convert_pointcloud_to_image
This commit is contained in:
parent
360b87131b
commit
b1c6428c83
@ -64,6 +64,7 @@ public:
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
pcl::toROSMsg (*cloud, image_); //convert the cloud
|
pcl::toROSMsg (*cloud, image_); //convert the cloud
|
||||||
|
image_.header = cloud->header;
|
||||||
image_pub_.publish (image_); //publish our cloud image
|
image_pub_.publish (image_); //publish our cloud image
|
||||||
}
|
}
|
||||||
catch (std::runtime_error &e)
|
catch (std::runtime_error &e)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user