Skip to content

Commit a2130ce

Browse files
authored
Add stamp to published pointclouds
Fixes Issue Huguet57#17. The stamp is the timestamp of its latest point.
1 parent e983c16 commit a2130ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/Headers/Publishers.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ class Publishers {
5353

5454
pcl::PointCloud<full_info::Point> pcl;
5555
pcl.header.frame_id = "map";
56+
pcl.header.stamp = Conversions::sec2Microsec(points.back().time);
5657
Processor::fill(pcl, points);
5758

5859
if (part) this->publish_pcl(pcl, this->pcl_pub);
@@ -216,4 +217,4 @@ class Publishers {
216217
}
217218
}
218219

219-
};
220+
};

0 commit comments

Comments
 (0)