Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
Samahu committed Sep 16, 2024
1 parent 358919d commit 85e6a65
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/os_cloud_nodelet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ class OusterCloud : public nodelet::Nodelet {
throw std::runtime_error("min_range equal to or exceeds max_range!");
}
// convert to millimeters
uint64_t min_range = impl::ulround(min_range_m * 1000);
uint64_t max_range = impl::ulround(max_range_m * 1000);
uint32_t min_range = impl::ulround(min_range_m * 1000);
uint32_t max_range = impl::ulround(max_range_m * 1000);
auto rows_step = pnh.param("rows_step", 1);
processors.push_back(
PointCloudProcessorFactory::create_point_cloud_processor(
Expand Down
6 changes: 3 additions & 3 deletions src/os_driver_nodelet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,16 +136,16 @@ class OusterDriver : public OusterSensor {
throw std::runtime_error("min_range equal to or exceeds max_range!");
}
// convert to millimeters
uint64_t min_range = impl::ulround(min_range_m * 1000);
uint64_t max_range = impl::ulround(max_range_m * 1000);
uint32_t min_range = impl::ulround(min_range_m * 1000);
uint32_t max_range = impl::ulround(max_range_m * 1000);
auto rows_step = pnh.param("rows_step", 1);
processors.push_back(
PointCloudProcessorFactory::create_point_cloud_processor(point_type, info,
tf_bcast.point_cloud_frame_id(), tf_bcast.apply_lidar_to_sensor_transform(),
organized, destagger, min_range, max_range, rows_step,
[this](PointCloudProcessor_OutputType msgs) {
for (size_t i = 0; i < msgs.size(); ++i)
lidar_pubs[i].publish(*msgs[i]);
lidar_pubs[i].publish(*msgs[i]);
}
)
);
Expand Down

0 comments on commit 85e6a65

Please sign in to comment.