Skip to main content

StateEstimation::FeatureMetadata

StateEstimation::FeatureMetadata

Metadata describing a feature’s characteristics. More…

#include <FeatureMetadata.hpp>

Public Functions

Name
int calculateStateSize(int measurement_size, FeatureTemporalType temporal_type)
Calculate state size from measurement size and temporal type.
FeatureMetadata create(std::string name, int measurement_size, FeatureTemporalType temporal_type)
Construct metadata with automatic state size calculation.
bool hasDerivatives() const
Check if this feature tracks derivatives (velocity, etc.).
int getDerivativeOrder() const
Get the order of derivatives tracked.

Public Attributes

Name
std::string name
Human-readable name for the feature (e.g., “line_centroid”).
int measurement_size
Dimensionality of the measurement vector.
int state_size
Dimensionality of the state vector (typically >= measurement_size).
FeatureTemporalType temporal_type
Type of temporal behavior.

Detailed Description

struct StateEstimation::FeatureMetadata;

Metadata describing a feature’s characteristics.

This structure provides all information needed to integrate a feature into the tracking system, including its dimensionality, temporal behavior, and how to construct the appropriate state space.

Public Functions Documentation

function calculateStateSize

static inline int calculateStateSize(
    int measurement_size,
    FeatureTemporalType temporal_type
)

Calculate state size from measurement size and temporal type.

Parameters:

  • measurement_size Dimensionality of the measurement
  • temporal_type Type of temporal behavior

Return: Corresponding state size

Helper function to automatically determine the state size based on the temporal type and measurement dimensionality.

function create

static inline FeatureMetadata create(
    std::string name,
    int measurement_size,
    FeatureTemporalType temporal_type
)

Construct metadata with automatic state size calculation.

Parameters:

  • name Feature name
  • measurement_size Measurement dimensionality
  • temporal_type Temporal behavior type

Return: FeatureMetadata with calculated state size

function hasDerivatives

inline bool hasDerivatives() const

Check if this feature tracks derivatives (velocity, etc.).

Return: true if state size > measurement size (derivatives present)

function getDerivativeOrder

inline int getDerivativeOrder() const

Get the order of derivatives tracked.

Return: 0 for STATIC, 1 for features with velocity, etc.

Public Attributes Documentation

variable name

std::string name;

Human-readable name for the feature (e.g., “line_centroid”).

variable measurement_size

int measurement_size;

Dimensionality of the measurement vector.

variable state_size

int state_size;

Dimensionality of the state vector (typically >= measurement_size).

variable temporal_type

FeatureTemporalType temporal_type;

Type of temporal behavior.


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