Skip to main content

StateEstimation::IAssigner

StateEstimation::IAssigner

Abstract interface for a data association (assignment) algorithm. More…

#include <IAssigner.hpp>

Inherited by StateEstimation::HungarianAssigner

Public Functions

Name
virtual ~IAssigner() =default
virtual Assignment solve(std::vector< Prediction > const & predictions, std::vector< Observation > const & observations, std::map< EntityId, FeatureCache > const & feature_cache) =0
Solves the assignment problem for a set of predictions and observations.
virtual double getCostThreshold() const =0
virtual std::unique_ptr< IAssigner > clone() const =0
Clones the assigner object.

Detailed Description

class StateEstimation::IAssigner;

Abstract interface for a data association (assignment) algorithm.

This class defines the contract for algorithms that solve the assignment problem, such as the Hungarian algorithm or a simple nearest-neighbor search. It uses a feature cache as a mediator to remain decoupled from the feature extraction process.

Public Functions Documentation

function ~IAssigner

virtual ~IAssigner() =default

function solve

virtual Assignment solve(
    std::vector< Prediction > const & predictions,
    std::vector< Observation > const & observations,
    std::map< EntityId, FeatureCache > const & feature_cache
) =0

Solves the assignment problem for a set of predictions and observations.

Parameters:

  • predictions A vector of predicted states from the filter for each active track.
  • observations A vector of new, unassigned observations from the current frame.
  • feature_cache A map where the key is an EntityId from an observation and the value is a cache of its pre-calculated features. The assigner uses this to retrieve the feature vectors it needs for its cost matrix calculation.

Return: An Assignment object detailing the successful matches.

Reimplemented by: StateEstimation::HungarianAssigner::solve

function getCostThreshold

virtual double getCostThreshold() const =0

Reimplemented by: StateEstimation::HungarianAssigner::getCostThreshold

function clone

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

Clones the assigner object.

Return: A std::unique_ptr to a new instance of the assigner with the same configuration.

Reimplemented by: StateEstimation::HungarianAssigner::clone


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