Skip to main content

StateEstimation::IFeatureExtractor

StateEstimation::IFeatureExtractor

Interface for extracting feature vectors from raw data types. More…

#include <IFeatureExtractor.hpp>

Inherited by StateEstimation::CompositeFeatureExtractor< DataType >

Public Functions

Name
virtual ~IFeatureExtractor() =default
virtual Eigen::VectorXd getFilterFeatures(DataType const & data) const =0
Extracts the feature vector used by the filter.
virtual FeatureCache getAllFeatures(DataType const & data) const =0
Extracts all available features for caching.
virtual std::string getFilterFeatureName() const =0
Gets the name of the feature set used by the filter.
virtual FilterState getInitialState(DataType const & data) const =0
Creates an initial FilterState from the first ground-truth measurement. This is responsible for creating a full state vector (e.g., with zero velocity).
virtual std::unique_ptr< IFeatureExtractor< DataType > > clone() const =0
Clones the feature extractor.
virtual FeatureMetadata getMetadata() const =0
Get metadata describing this feature’s characteristics.

Detailed Description

template <typename DataType >
class StateEstimation::IFeatureExtractor;

Interface for extracting feature vectors from raw data types.

Template Parameters:

  • DataType The raw data type to extract features from.

This class abstracts the conversion of a specific data type (e.g., Line2D) into generic feature vectors that the filter and assigner can use.

Each extractor provides metadata describing its temporal behavior, which determines how the state space is constructed for tracking.

Public Functions Documentation

function ~IFeatureExtractor

virtual ~IFeatureExtractor() =default

function getFilterFeatures

virtual Eigen::VectorXd getFilterFeatures(
    DataType const & data
) const =0

Extracts the feature vector used by the filter.

Parameters:

  • data The raw data object.

Return: An Eigen::VectorXd containing features for the filter.

Reimplemented by: LineCentroidExtractor::getFilterFeatures, StateEstimation::CompositeFeatureExtractor::getFilterFeatures, StateEstimation::LineBasePointExtractor::getFilterFeatures, StateEstimation::LineCentroidExtractor::getFilterFeatures, StateEstimation::LineLengthExtractor::getFilterFeatures

function getAllFeatures

virtual FeatureCache getAllFeatures(
    DataType const & data
) const =0

Extracts all available features for caching.

Parameters:

  • data The raw data object.

Return: A FeatureCache map with all calculated features.

Reimplemented by: LineCentroidExtractor::getAllFeatures, StateEstimation::CompositeFeatureExtractor::getAllFeatures, StateEstimation::LineBasePointExtractor::getAllFeatures, StateEstimation::LineCentroidExtractor::getAllFeatures, StateEstimation::LineLengthExtractor::getAllFeatures

function getFilterFeatureName

virtual std::string getFilterFeatureName() const =0

Gets the name of the feature set used by the filter.

Return: A string identifier for the filter features in the cache.

Reimplemented by: LineCentroidExtractor::getFilterFeatureName, StateEstimation::CompositeFeatureExtractor::getFilterFeatureName, StateEstimation::LineBasePointExtractor::getFilterFeatureName, StateEstimation::LineCentroidExtractor::getFilterFeatureName, StateEstimation::LineLengthExtractor::getFilterFeatureName

function getInitialState

virtual FilterState getInitialState(
    DataType const & data
) const =0

Creates an initial FilterState from the first ground-truth measurement. This is responsible for creating a full state vector (e.g., with zero velocity).

Parameters:

  • data The raw data object.

Return: The initial FilterState.

Reimplemented by: LineCentroidExtractor::getInitialState, StateEstimation::CompositeFeatureExtractor::getInitialState, StateEstimation::LineBasePointExtractor::getInitialState, StateEstimation::LineCentroidExtractor::getInitialState, StateEstimation::LineLengthExtractor::getInitialState

function clone

virtual std::unique_ptr< IFeatureExtractor< DataType > > clone() const =0

Clones the feature extractor.

Return: A unique_ptr to a copy of this object.

Reimplemented by: LineCentroidExtractor::clone, StateEstimation::CompositeFeatureExtractor::clone, StateEstimation::LineBasePointExtractor::clone, StateEstimation::LineCentroidExtractor::clone, StateEstimation::LineLengthExtractor::clone

function getMetadata

virtual FeatureMetadata getMetadata() const =0

Get metadata describing this feature’s characteristics.

Return: FeatureMetadata describing this feature

Reimplemented by: LineCentroidExtractor::getMetadata, StateEstimation::CompositeFeatureExtractor::getMetadata, StateEstimation::LineBasePointExtractor::getMetadata, StateEstimation::LineCentroidExtractor::getMetadata, StateEstimation::LineLengthExtractor::getMetadata

This metadata includes:

  • Feature name
  • Measurement dimensionality
  • State dimensionality (may include derivatives)
  • Temporal behavior type (static, kinematic, etc.)

Updated on 2026-11-13 at 20:25:41 +0000