diff --git a/include/drive_ros_image_recognition/common_image_operations.h b/include/drive_ros_image_recognition/common_image_operations.h index 2f32501..6482f75 100644 --- a/include/drive_ros_image_recognition/common_image_operations.h +++ b/include/drive_ros_image_recognition/common_image_operations.h @@ -6,7 +6,6 @@ #include #include #include -#include #include #include @@ -442,35 +441,26 @@ class ImageOperator : public TransformHelper { public: ImageOperator(): - TransformHelper(), - config_() + TransformHelper() { } ImageOperator(ImageOperator& image_operator): - TransformHelper(), - config_(image_operator.config_) + TransformHelper() { } ImageOperator& operator=(ImageOperator&& other) { - std::swap(config_, other.config_); return *this; } ImageOperator(TransformHelper& helper): - TransformHelper(helper), - config_() + TransformHelper(helper) { } - void setConfig(const LineDetectionConfig& config) { - config_ = config; - } -private: - LineDetectionConfig config_; }; // class ImageOperator diff --git a/src/line_detection.cpp b/src/line_detection.cpp index 9196fa6..b520d87 100644 --- a/src/line_detection.cpp +++ b/src/line_detection.cpp @@ -433,7 +433,6 @@ void LineDetection::findLane() { /// \param level /// void LineDetection::reconfigureCB(drive_ros_image_recognition::LineDetectionConfig& config, uint32_t level){ - image_operator_.setConfig(config); lineWidth_ = config.lineWidth; lineAngle_ = config.lineAngle; lineVar_ = config.lineVar;