Skip to content

Commit

Permalink
fixed const get_model of imm
Browse files Browse the repository at this point in the history
  • Loading branch information
EirikKolas committed Mar 10, 2024
1 parent ae0ceb3 commit a8f6c06
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions vortex-filtering/include/vortex_filtering/models/imm_model.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,13 @@ template <concepts::DynamicModel... DynModels> class ImmModel {
* @return Reference to tuple of dynamic models
*/
DynModTuple &get_models() { return models_; }
{
return std::get<i>(models_);
}

/**
* @brief Get specific dynamic model
* @tparam i Index of model
* @return DynModT<i> model reference
*/
template <size_t i> const DynModT<i> &get_model() const { return std::get<i>(models_); }

/**
* @brief Get specific dynamic model (non-const)
Expand Down

0 comments on commit a8f6c06

Please sign in to comment.