Class JumpDistanceSegmentationMerge

Inheritance Relationships

Base Type

Class Documentation

class JumpDistanceSegmentationMerge : public laser_segmentation::JumpDistanceSegmentation

Jump distance segmentation algorithm which merge segments by checking against the last point of preceding segments.

Public Types

typedef std::shared_ptr<JumpDistanceSegmentationMerge> SharedPtr

Public Functions

JumpDistanceSegmentationMerge() = default

Construct a new Jump Distance Segmentation Merge object.

~JumpDistanceSegmentationMerge() override = default

Destroy the Jump Distance Segmentation Merge object.

virtual void initialize_segmentation(double distance, double angle_resolution, double noise_reduction, std::string method = "") override

Initialize the segmentation algorithm.

Parameters:
  • distance – The maximum distance between two consecutive points to be considered part of the same segment.

  • angle_resolution – The minimum angle between two consecutive points.

  • noise_reduction – Parameter for noise reduction (if applicable).

  • method – The method to be used for segmentation.

virtual void perform_segmentation(const std::vector<slg::Point2D> points, std::vector<slg::Segment2D> &segments) override

Perform the segmentation of the given list of points into a list of segments using Jump Distance Clustering.

Parameters:
  • points – The list of points to be segmented.

  • segments – The resulting list of segments.