diff --git a/src/line_detector.cpp b/src/line_detector.cpp index f674add5bfbf19149267f423ed342ec69c25b3b9..acc816425f5004e4eebf0994f3151ee89f094552 100644 --- a/src/line_detector.cpp +++ b/src/line_detector.cpp @@ -211,11 +211,12 @@ unsigned int laserscanutils::extractLinesHough( const std::vector<Eigen::MatrixX double theta, range; int kr; Line line; + double xmax, xmin, ymax, ymin; //A 2D array of lists. Each cell is a (r,theta) discretization in the line parameter space. //Each list keeps the laser point coordinates that support that cell std::vector<std::vector<std::list<std::pair<double,double> > > > hough_grid; - std::list<std::pair<double,double>::iterator pt_it; //iterator over the points of a given cell list + std::list<std::pair<double,double> >::iterator pt_it; //iterator over the points of a given cell list //clear line list _line_list.clear(); @@ -279,8 +280,8 @@ unsigned int laserscanutils::extractLinesHough( const std::vector<Eigen::MatrixX //set the limiting points of the line if (ii < hough_grid_rows_half) //first and third quartile { - line.point_first_ << ,,1; - line.point_last_ << ,,1; +// line.point_first_ << ,,1; +// line.point_last_ << ,,1; } else //second and fourth quartile