Skip to content

Commit

Permalink
Use constructor of rclcpp::Time instead of conversion.
Browse files Browse the repository at this point in the history
Signed-off-by: Guilherme Rodrigues <[email protected]>
  • Loading branch information
AiVerisimilitude committed Nov 13, 2023
1 parent df8a1e3 commit df10ffb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/laser_geometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit df10ffb

Please sign in to comment.