dstl / Stone-Soup

A software project to provide the target tracking community with a framework for the development and testing of tracking algorithms.
https://stonesoup.rtfd.io
MIT License
412 stars 139 forks source link

JPDA in Tutorial 9 does not work #639

Closed adielstatman closed 2 years ago

adielstatman commented 2 years ago

Hi. modifying Lines 125-130 of Tutorial 9 to:

from stonesoup.hypothesiser.probability import PDAHypothesiser hypothesiser = PDAHypothesiser(predictor, updater, clutter_spatial_density=0.1) from stonesoup.dataassociator.probability import JPDA data_associator = JPDA(hypothesiser)

outputs:

AttributeError: 'MultipleHypothesis' object has no attribute 'prediction'

What else should I do in order to operate the JPDA there? Thanks, Adiel.

sdhiscocks commented 2 years ago

You'll need to replace the MultiTargetTracker with the MultiTargetMixtureTracker.

adielstatman commented 2 years ago

Hi. In Tutorial 10 I've modified only the following:

from stonesoup.hypothesiser.probability import PDAHypothesiser hypothesiser = PDAHypothesiser(predictor, updater, clutter_spatial_density=0.1)

from stonesoup.dataassociator.probability import JPDA data_associator = JPDA(hypothesiser)

from stonesoup.tracker.simple import MultiTargetMixtureTracker tracker = MultiTargetMixtureTracker(

And get the mentioned error:

AttributeError: 'MultipleHypothesis' object has no attribute 'prediction'

Do you know what else should be modified for probabilistic data associator? Thanks.