StateEstimation::Tracker
StateEstimation::Tracker
The new tracker implementing iterative RTS smoothing without dynamic measurement noise. More…
#include <Tracker.hpp>
Public Types
| Name | |
|---|---|
| using std::map< TimeFrameIndex, std::map< GroupId, EntityId > > | GroundTruthMap |
Public Functions
| Name | |
|---|---|
| Tracker(std::unique_ptr< IFilter > filter_prototype, std::unique_ptr< IFeatureExtractor< DataType > > feature_extractor, std::unique_ptr< IAssigner > assigner) Construct a new TrackerNew. |
|
| template <typename Source > SmoothedResults |
process(Source && data_source, EntityGroupManager & group_manager, GroundTruthMap const & ground_truth, TimeFrameIndex start_frame, TimeFrameIndex end_frame, int max_iterations, ProgressCallback progress =[nullptr]) Process a range of frames with iterative RTS smoothing until consistency. |
| template <typename Source > SmoothedResults |
process(Source && data_source, EntityGroupManager & group_manager, GroundTruthMap const & ground_truth, TimeFrameIndex start_frame, TimeFrameIndex end_frame) Compatibility overload without max_iterations or progress. |
| template <typename Source > SmoothedResults |
process(Source && data_source, EntityGroupManager & group_manager, GroundTruthMap & ground_truth, TimeFrameIndex & start_frame, TimeFrameIndex & end_frame, ProgressCallback & progress) Compatibility overload matching the previous API (no max_iterations parameter). |
| double | getIdentityConfidence(GroupId ) const Compatibility getter for identity confidence. |
| double | getMeasurementNoiseScale(GroupId ) const Compatibility getter for measurement noise scale. |
| double | getMinConfidenceSinceAnchor(GroupId ) const Compatibility getter for minimum confidence since last anchor. |
| void | enableDebugLogging(std::string const & file_path) |
Detailed Description
template <typename DataType >
class StateEstimation::Tracker;The new tracker implementing iterative RTS smoothing without dynamic measurement noise.
Template Parameters:
DataType raw observation type (e.g., Line2D)
No identity-dependent measurement noise scaling (fixed R in the filter)
No backward Kalman filter; use standard Rauch–Tung–Striebel smoothing
Iteratively refine: forward pass with assignment -> RTS smoothing -> re-assignment on smoothed predictions, until assignments at anchors match ground truth or max iterations reached.
Public Types Documentation
using GroundTruthMap
using StateEstimation::Tracker< DataType >::GroundTruthMap = std::map<TimeFrameIndex, std::map<GroupId, EntityId>>;Public Functions Documentation
function Tracker
inline Tracker(
std::unique_ptr< IFilter > filter_prototype,
std::unique_ptr< IFeatureExtractor< DataType > > feature_extractor,
std::unique_ptr< IAssigner > assigner
)Construct a new TrackerNew.
Parameters:
- filter_prototype Prototype filter (cloned per group)
- feature_extractor Feature extractor for DataType
- assigner Assigner used for data-to-group association
Precondition: All pointers are valid
function process
template <typename Source >
inline SmoothedResults process(
Source && data_source,
EntityGroupManager & group_manager,
GroundTruthMap const & ground_truth,
TimeFrameIndex start_frame,
TimeFrameIndex end_frame,
int max_iterations,
ProgressCallback progress =nullptr
)Process a range of frames with iterative RTS smoothing until consistency.
Parameters:
- data_source Zero-copy data source
- group_manager Group manager to read existing groups and record assignments
- ground_truth Ground truth at specific frames for certain groups (anchors)
- start_frame Inclusive start frame
- end_frame Inclusive end frame
- max_iterations Maximum smoothing/assignment refinement iterations
- progress Optional progress callback
Template Parameters:
- Source Range of tuples (DataType, EntityId, TimeFrameIndex)
Return: Smoothed states per group across processed frames
Precondition: start_frame <= end_frame
Postcondition: Returned results contain per-group smoothed states aligned with processed frames
function process
template <typename Source >
inline SmoothedResults process(
Source && data_source,
EntityGroupManager & group_manager,
GroundTruthMap const & ground_truth,
TimeFrameIndex start_frame,
TimeFrameIndex end_frame
)Compatibility overload without max_iterations or progress.
function process
template <typename Source >
inline SmoothedResults process(
Source && data_source,
EntityGroupManager & group_manager,
GroundTruthMap & ground_truth,
TimeFrameIndex & start_frame,
TimeFrameIndex & end_frame,
ProgressCallback & progress
)Compatibility overload matching the previous API (no max_iterations parameter).
Parameters:
- data_source Zero-copy data source
- group_manager Group manager to read existing groups and record assignments
- ground_truth Ground truth at specific frames for certain groups (anchors)
- start_frame Inclusive start frame
- end_frame Inclusive end frame
- progress Optional progress callback
Template Parameters:
- Source Range of tuples (DataType, EntityId, TimeFrameIndex)
Precondition: start_frame <= end_frame
Postcondition: Returned results contain per-group smoothed states aligned with processed frames
For now, runs a default limited number of iterations.
function getIdentityConfidence
inline double getIdentityConfidence(
GroupId
) constCompatibility getter for identity confidence.
Parameters:
- group_id Group identifier
Return: Confidence in [0,1]; fixed 1.0 in this implementation.
function getMeasurementNoiseScale
inline double getMeasurementNoiseScale(
GroupId
) constCompatibility getter for measurement noise scale.
Parameters:
- group_id Group identifier
Return: Fixed scale 1.0 (no dynamic inflation).
function getMinConfidenceSinceAnchor
inline double getMinConfidenceSinceAnchor(
GroupId
) constCompatibility getter for minimum confidence since last anchor.
Parameters:
- group_id Group identifier
Return: Fixed 1.0 in this implementation.
function enableDebugLogging
inline void enableDebugLogging(
std::string const & file_path
)Updated on 2026-11-13 at 20:25:41 +0000