Skip to content

Commit

Permalink
remove LineDetectionConfig objects from common image operations
Browse files Browse the repository at this point in the history
is not being used anywhere
  • Loading branch information
Unknown committed Jun 11, 2018
1 parent 250b4cf commit 4f0c18a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
16 changes: 3 additions & 13 deletions include/drive_ros_image_recognition/common_image_operations.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include <image_geometry/pinhole_camera_model.h>
#include <geometry_msgs/PointStamped.h>
#include <tf/transform_listener.h>
#include <drive_ros_image_recognition/LineDetectionConfig.h>
#include <sensor_msgs/CameraInfo.h>
#include <drive_ros_msgs/Homography.h>

Expand Down Expand Up @@ -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

Expand Down
1 change: 0 additions & 1 deletion src/line_detection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4f0c18a

Please sign in to comment.