Skip to content

Commit 3fb5ce1

Browse files
committed
chore: edit comments
1 parent cfd1af4 commit 3fb5ce1

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

perception/probabilistic_occupancy_grid_map/src/pointcloud_based_occupancy_grid_map/occupancy_grid_map_fixed.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ void OccupancyGridMapFixedBlindSpot::updateWithPointCloud(
9595
const size_t obstacle_pointcloud_size = obstacle_pointcloud.width * obstacle_pointcloud.height;
9696
const size_t raw_reserve_size = raw_pointcloud_size / angle_bin_size;
9797
const size_t obstacle_reserve_size = obstacle_pointcloud_size / angle_bin_size;
98+
// Reserve a certain amount of memory in advance for performance reasons
9899
for (auto & raw_pointcloud_angle_bin : raw_pointcloud_angle_bins) {
99100
raw_pointcloud_angle_bin.reserve(raw_reserve_size);
100101
}

perception/probabilistic_occupancy_grid_map/src/pointcloud_based_occupancy_grid_map/occupancy_grid_map_projective.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ void OccupancyGridMapProjectiveBlindSpot::updateWithPointCloud(
110110
const size_t obstacle_pointcloud_size = obstacle_pointcloud.width * obstacle_pointcloud.height;
111111
const size_t raw_reserve_size = raw_pointcloud_size / angle_bin_size;
112112
const size_t obstacle_reserve_size = obstacle_pointcloud_size / angle_bin_size;
113+
// Reserve a certain amount of memory in advance for performance reasons
113114
for (auto & raw_pointcloud_angle_bin : raw_pointcloud_angle_bins) {
114115
raw_pointcloud_angle_bin.reserve(raw_reserve_size);
115116
}

perception/probabilistic_occupancy_grid_map/src/pointcloud_based_occupancy_grid_map/pointcloud_based_occupancy_grid_map_node.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ void PointcloudBasedOccupancyGridMapNode::onPointcloudWithObstacleAndRaw(
147147
bool is_obstacle_transformed = false;
148148
// Prepare for applying height filter
149149
if (use_height_filter_) {
150-
// make sure that frame is base_link
150+
// Make sure that the frame is base_link
151151
if (input_raw_msg->header.frame_id != base_link_frame_) {
152152
if (!utils::transformPointcloud(*input_raw_msg, *tf2_, base_link_frame_, trans_input_raw)) {
153153
return;

0 commit comments

Comments
 (0)