Open Fyor opened 1 year ago
As discussed with Gij, probably this happens from lines with length zero. Gij mentioned the disabled length check in the line detection, which should be active usually. The question is why you have lines of length zero at all. The localization only isometrically transforms the measured lines (only translation and rotation). So the zero length lines should originate from the line detection. Since RANSAC always uses two distinct points (without reuses), these should also be different (resulting in length greater than zero). So the only possibility is in the line detection where we are calculating the final start and end line points. If you only have one point, it will be used for start and end. The single point might get calculated if you have a large gap after one point. The line is split at the gap resulting in a line with length zero.