Autoware.Auto
autoware::perception::segmentation::euclidean_cluster::Config Class Reference

Configuration class for euclidean cluster In the future this can become a base class with subclasses defining different threshold functions. This configuration's threshold function currently assumes isotropy, and minor details in the clustering implementation also assume this property. More...

#include <euclidean_cluster.hpp>

Public Member Functions

 Config (const std::string &frame_id, const std::size_t min_cluster_size, const std::size_t max_num_clusters)
 Constructor. More...
 
std::size_t min_cluster_size () const
 Gets minimum number of points needed for a cluster to not be considered noise. More...
 
std::size_t max_num_clusters () const
 Gets maximum preallocated number of clusters. More...
 
const std::string & frame_id () const
 Get frame id. More...
 

Detailed Description

Configuration class for euclidean cluster In the future this can become a base class with subclasses defining different threshold functions. This configuration's threshold function currently assumes isotropy, and minor details in the clustering implementation also assume this property.

Constructor & Destructor Documentation

◆ Config()

autoware::perception::segmentation::euclidean_cluster::Config::Config ( const std::string &  frame_id,
const std::size_t  min_cluster_size,
const std::size_t  max_num_clusters 
)

Constructor.

Parameters
[in]frame_idThe frame id for which all clusters are initialized with
[in]min_cluster_sizeThe number of points that must be in a cluster before it is not considered noise
[in]max_num_clustersThe maximum preallocated number of clusters in a scene

Member Function Documentation

◆ frame_id()

const std::string & autoware::perception::segmentation::euclidean_cluster::Config::frame_id ( ) const

Get frame id.

Returns
The frame id

◆ max_num_clusters()

std::size_t autoware::perception::segmentation::euclidean_cluster::Config::max_num_clusters ( ) const

Gets maximum preallocated number of clusters.

Returns
Maximum number of clusters

◆ min_cluster_size()

std::size_t autoware::perception::segmentation::euclidean_cluster::Config::min_cluster_size ( ) const

Gets minimum number of points needed for a cluster to not be considered noise.

Returns
Minimum cluster size

The documentation for this class was generated from the following files: