LCAS / bayestracking

C++ framework for Bayesian Filter Tracking (UKF, EKF, Particles)
Other
143 stars 51 forks source link

Labelled data associations always used #20

Open SeanTasker opened 6 years ago

SeanTasker commented 6 years ago

I noticed an issue where the labels on observations were always used regardless of the whether a labelled association type was used.

The problem is due to an error in condition logic which is present four times in multitracker.h. The condition is written as:

if (alg == NNJPDA || NNJPDA_LABELED)

Which always succeeds since NNJPDA_LABELED will evaluate to true. The lines should read:

if (alg == NNJPDA || alg == NNJPDA_LABELED) 

The lines in question are: 220, 235, 252 and 275