Skip to content

Commit

Permalink
Made ipda use ellisoid instead of ellipse
Browse files Browse the repository at this point in the history
  • Loading branch information
EirikKolas committed Oct 28, 2024
1 parent 1eec05b commit b95a938
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions vortex-filtering/include/vortex_filtering/filters/ipda.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <vortex_filtering/filters/pdaf.hpp>
#include <vortex_filtering/models/dynamic_model_interfaces.hpp>
#include <vortex_filtering/models/sensor_model_interfaces.hpp>
#include <vortex_filtering/utils/ellipsoid.hpp>

namespace vortex::filter {

Expand Down Expand Up @@ -115,9 +116,7 @@ template <concepts::DynamicModelLTVWithDefinedSizes DynModT, concepts::SensorMod
size_t m_k = num_measurements;
double P_d = config.pdaf.prob_of_detection;
double r_k = predicted_existence_probability;
// TODO: make this work for N_DIM_z /= 2
static_assert(N_DIM_z == 2);
double V_k = utils::Ellipse(z_pred, config.pdaf.mahalanobis_threshold).area(); // gate area
double V_k = utils::Ellipsoid<N_DIM_z>(z_pred, config.pdaf.mahalanobis_threshold).volume(); // gate area

if (m_k == 0) {
return 0.0;
Expand Down

0 comments on commit b95a938

Please sign in to comment.