Correct conversion of time stamp (#319)

* Add test to verify that stamps are correctly converted

* Fix bug in fromPCL function for headers
The time stamp was not set.
This commit is contained in:
Markus Vieth
2020-12-04 19:57:37 +01:00
committed by GitHub
parent 2d21467423
commit 135a2c29e3
2 changed files with 5 additions and 2 deletions
@@ -111,8 +111,7 @@ namespace pcl_conversions {
inline
void fromPCL(const pcl::PCLHeader &pcl_header, std_msgs::msg::Header &header)
{
auto time_stamp = rclcpp::Time(header.stamp);
fromPCL(pcl_header.stamp, time_stamp);
header.stamp = fromPCL(pcl_header.stamp);
header.frame_id = pcl_header.frame_id;
}