Skip to content

Commit

Permalink
chore: edit comments
Browse files Browse the repository at this point in the history
Signed-off-by: taisa1 <[email protected]>
  • Loading branch information
taisa1 committed Jun 25, 2024
1 parent b2c6ae3 commit dda0c0d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ void OccupancyGridMapFixedBlindSpot::updateWithPointCloud(
const size_t obstacle_pointcloud_size = obstacle_pointcloud.width * obstacle_pointcloud.height;
const size_t raw_reserve_size = raw_pointcloud_size / angle_bin_size;
const size_t obstacle_reserve_size = obstacle_pointcloud_size / angle_bin_size;
// Reserve a certain amount of memory in advance for performance reasons
for (auto & raw_pointcloud_angle_bin : raw_pointcloud_angle_bins) {
raw_pointcloud_angle_bin.reserve(raw_reserve_size);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ void OccupancyGridMapProjectiveBlindSpot::updateWithPointCloud(
const size_t obstacle_pointcloud_size = obstacle_pointcloud.width * obstacle_pointcloud.height;
const size_t raw_reserve_size = raw_pointcloud_size / angle_bin_size;
const size_t obstacle_reserve_size = obstacle_pointcloud_size / angle_bin_size;
// Reserve a certain amount of memory in advance for performance reasons
for (auto & raw_pointcloud_angle_bin : raw_pointcloud_angle_bins) {
raw_pointcloud_angle_bin.reserve(raw_reserve_size);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ void PointcloudBasedOccupancyGridMapNode::onPointcloudWithObstacleAndRaw(
bool is_obstacle_transformed = false;
// Prepare for applying height filter
if (use_height_filter_) {
// make sure that frame is base_link
// Make sure that the frame is base_link
if (input_raw_msg->header.frame_id != base_link_frame_) {
if (!utils::transformPointcloud(*input_raw_msg, *tf2_, base_link_frame_, trans_input_raw)) {
return;
Expand Down

0 comments on commit dda0c0d

Please sign in to comment.