Skip to content

Commit

Permalink
refactor(pointcloud_preprocessor): move roi_mode_map_ definition insi…
Browse files Browse the repository at this point in the history
…de DualReturnOutlierFilterComponent class (#6654)

move roi_mode_map_ definition inside DualReturnOutlierFilterComponent class

Signed-off-by: kyoichi-sugahara <[email protected]>
  • Loading branch information
kyoichi-sugahara authored Mar 20, 2024
1 parent 46ac827 commit a8364b4
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ namespace pointcloud_preprocessor
using diagnostic_updater::DiagnosticStatusWrapper;
using diagnostic_updater::Updater;

std::unordered_map<std::string, uint8_t> roi_mode_map_ = {
{"No_ROI", 0},
{"Fixed_xyz_ROI", 1},
{"Fixed_azimuth_ROI", 2},
};

class DualReturnOutlierFilterComponent : public pointcloud_preprocessor::Filter
{
protected:
Expand Down Expand Up @@ -86,6 +80,12 @@ class DualReturnOutlierFilterComponent : public pointcloud_preprocessor::Filter
float max_azimuth_deg_;
float max_distance_;

std::unordered_map<std::string, uint8_t> roi_mode_map_ = {
{"No_ROI", 0},
{"Fixed_xyz_ROI", 1},
{"Fixed_azimuth_ROI", 2},
};

public:
PCL_MAKE_ALIGNED_OPERATOR_NEW
explicit DualReturnOutlierFilterComponent(const rclcpp::NodeOptions & options);
Expand Down

0 comments on commit a8364b4

Please sign in to comment.