Skip to content

Commit 7ad94e9

Browse files
kobayu858kyoichi-sugahara
authored andcommitted
fix(autoware_compare_map_segmentation): fix unusedFunction (autowarefoundation#8565)
fix:unusedFunction Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
1 parent 6c53f20 commit 7ad94e9

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

perception/autoware_compare_map_segmentation/src/voxel_grid_map_loader/voxel_grid_map_loader.cpp

-9
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,6 @@ VoxelGridMapLoader::VoxelGridMapLoader(
3131
debug_ = node->declare_parameter<bool>("publish_debug_pcd");
3232
}
3333

34-
bool VoxelGridMapLoader::is_close_points(
35-
const pcl::PointXYZ point, const pcl::PointXYZ target_point, const double distance_threshold)
36-
{
37-
if (distance3D(point, target_point) < distance_threshold * distance_threshold) {
38-
return true;
39-
}
40-
return false;
41-
}
42-
4334
void VoxelGridMapLoader::publish_downsampled_map(
4435
const pcl::PointCloud<pcl::PointXYZ> & downsampled_pc)
4536
{

perception/autoware_compare_map_segmentation/src/voxel_grid_map_loader/voxel_grid_map_loader.hpp

-3
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ class VoxelGridEx : public pcl::VoxelGrid<PointT>
8888
inline Eigen::Vector4i get_max_b() const { return max_b_; }
8989
inline Eigen::Vector4i get_div_b() const { return div_b_; }
9090
inline Eigen::Array4f get_inverse_leaf_size() const { return inverse_leaf_size_; }
91-
inline std::vector<int> getLeafLayout() { return (leaf_layout_); }
9291
};
9392

9493
class VoxelGridMapLoader
@@ -122,8 +121,6 @@ class VoxelGridMapLoader
122121
const double distance_threshold, const PointCloudPtr & map, VoxelGridPointXYZ & voxel) const;
123122

124123
void publish_downsampled_map(const pcl::PointCloud<pcl::PointXYZ> & downsampled_pc);
125-
static bool is_close_points(
126-
const pcl::PointXYZ point, const pcl::PointXYZ target_point, const double distance_threshold);
127124
std::string * tf_map_input_frame_;
128125
};
129126

0 commit comments

Comments
 (0)