diff --git a/src/laser_geometry.cpp b/src/laser_geometry.cpp index d07b7c55..1bd9849f 100644 --- a/src/laser_geometry.cpp +++ b/src/laser_geometry.cpp @@ -423,8 +423,8 @@ void LaserProjection::transformLaserScanToPointCloud_( double range_cutoff, int channel_options) { - TIME start_time = scan_in.header.stamp; - TIME end_time = scan_in.header.stamp; + TIME start_time(scan_in.header.stamp, RCL_ROS_TIME); + TIME end_time(scan_in.header.stamp, RCL_ROS_TIME); // TODO(anonymous): reconcile all the different time constructs if (!scan_in.ranges.empty()) { end_time = start_time + rclcpp::Duration::from_seconds(