Bayes Filters Library
|
This class represent a generic measurement model f(x, w), where x is a state vector and w is random noise. More...
#include <MeasurementModel.h>
Public Member Functions | |
virtual | ~MeasurementModel () noexcept=default |
virtual bool | freeze (const Data &data=Data())=0 |
virtual std::pair< bool, Data > | measure (const Data &data=Data()) const =0 |
virtual std::pair< bool, Data > | predictedMeasure (const Eigen::Ref< const Eigen::MatrixXd > &cur_states) const =0 |
virtual std::pair< bool, Data > | innovation (const Data &predicted_measurements, const Data &measurements) const =0 |
virtual std::pair< bool, Eigen::MatrixXd > | getNoiseCovarianceMatrix () const |
virtual bool | setProperty (const std::string &property) |
virtual VectorDescription | getInputDescription () const |
virtual VectorDescription | getMeasurementDescription () const |
bool | enable_log (const std::string &folder_path, const std::string &file_name_prefix) |
bool | disable_log () |
std::string | get_folder_path () const |
std::string | get_file_name_prefix () const |
template<typename DatumType > | |
void | logger (DatumType datum) |
template<typename... DataType> | |
void | logger (DataType... data) |
template<typename DatumType > | |
void | logger (DatumType datum) const |
template<typename... DataType> | |
void | logger (DataType... data) const |
Protected Member Functions | |
virtual std::vector< std::string > | log_file_names (const std::string &folder_path, const std::string &file_name_prefix) |
virtual void | log () |
Private Member Functions | |
template<typename DatumType > | |
void | logger_helper (const size_t pos, DatumType datum) |
template<typename DatumType , typename... DataType> | |
void | logger_helper (const size_t pos, DatumType datum, DataType... data) |
template<typename DatumType > | |
void | logger_helper (const size_t pos, DatumType datum) const |
template<typename DatumType , typename... DataType> | |
void | logger_helper (const size_t pos, DatumType datum, DataType... data) const |
Private Attributes | |
std::string | folder_path_ |
std::string | file_name_prefix_ |
std::vector< std::string > | file_names_ |
bool | log_enabled_ = false |
std::vector< std::ofstream > | log_files_ |
This class represent a generic measurement model f(x, w), where x is a state vector and w is random noise.
Definition at line 29 of file MeasurementModel.h.
|
virtualdefaultnoexcept |
|
inherited |
Definition at line 68 of file Logger.cpp.
References bfl::Logger::file_names_, bfl::Logger::log_enabled_, and bfl::Logger::log_files_.
Referenced by bfl::Logger::~Logger().
|
inherited |
Definition at line 22 of file Logger.cpp.
References bfl::Logger::file_name_prefix_, bfl::Logger::file_names_, bfl::Logger::folder_path_, bfl::Logger::log_enabled_, bfl::Logger::log_file_names(), and bfl::Logger::log_files_.
Implemented in bfl::MeasurementModelDecorator, and bfl::SimulatedLinearSensor.
|
inherited |
Definition at line 91 of file Logger.cpp.
References bfl::Logger::file_name_prefix_.
|
inherited |
Definition at line 85 of file Logger.cpp.
References bfl::Logger::folder_path_.
|
virtual |
Reimplemented in bfl::SimulatedLinearSensor.
Definition at line 30 of file MeasurementModel.cpp.
|
virtual |
Reimplemented in bfl::SimulatedLinearSensor.
Definition at line 37 of file MeasurementModel.cpp.
Referenced by bfl::UKFCorrection::correctStep(), and bfl::sigma_point::unscented_transform().
|
virtual |
Reimplemented in bfl::LinearModel, bfl::LTIMeasurementModel, and bfl::MeasurementModelDecorator.
Definition at line 16 of file MeasurementModel.cpp.
Referenced by bfl::UKFCorrection::correctStep(), bfl::GaussianLikelihood::likelihood(), and bfl::sigma_point::unscented_transform().
|
pure virtual |
Implemented in bfl::LinearMeasurementModel, and bfl::MeasurementModelDecorator.
Referenced by bfl::UKFCorrection::correctStep(), and bfl::GaussianLikelihood::likelihood().
|
protectedvirtualinherited |
Reimplemented in bfl::SimulatedStateModel, bfl::SIS, and bfl::SimulatedLinearSensor.
Definition at line 109 of file Logger.cpp.
|
protectedvirtualinherited |
Reimplemented in bfl::LinearModel, bfl::SimulatedStateModel, and bfl::SIS.
Definition at line 97 of file Logger.cpp.
Referenced by bfl::Logger::enable_log().
|
inlineinherited |
Definition at line 42 of file Logger.h.
References bfl::Logger::log_enabled_, and bfl::Logger::logger_helper().
|
inlineinherited |
Definition at line 56 of file Logger.h.
References bfl::Logger::log_enabled_, and bfl::Logger::logger_helper().
|
inlineinherited |
Definition at line 35 of file Logger.h.
References bfl::Logger::log_enabled_, and bfl::Logger::log_files_.
Referenced by bfl::SimulatedLinearSensor::log().
|
inlineinherited |
Definition at line 49 of file Logger.h.
References bfl::Logger::log_enabled_, and bfl::Logger::log_files_.
|
inlineprivateinherited |
Definition at line 81 of file Logger.h.
References bfl::Logger::log_files_.
Referenced by bfl::Logger::logger(), and bfl::Logger::logger_helper().
|
inlineprivateinherited |
Definition at line 95 of file Logger.h.
References bfl::Logger::log_files_.
|
inlineprivateinherited |
Definition at line 87 of file Logger.h.
References bfl::Logger::log_files_, and bfl::Logger::logger_helper().
|
inlineprivateinherited |
Definition at line 101 of file Logger.h.
References bfl::Logger::log_files_, and bfl::Logger::logger_helper().
|
pure virtual |
Implemented in bfl::SimulatedLinearSensor, and bfl::MeasurementModelDecorator.
Referenced by bfl::UKFCorrection::correctStep(), and bfl::GaussianLikelihood::likelihood().
|
pure virtual |
Implemented in bfl::LinearMeasurementModel, and bfl::MeasurementModelDecorator.
Referenced by bfl::GaussianLikelihood::likelihood(), and bfl::sigma_point::unscented_transform().
|
virtual |
Reimplemented in bfl::MeasurementModelDecorator.
Definition at line 22 of file MeasurementModel.cpp.
|
privateinherited |
Definition at line 72 of file Logger.h.
Referenced by bfl::Logger::enable_log(), and bfl::Logger::get_file_name_prefix().
|
privateinherited |
Definition at line 74 of file Logger.h.
Referenced by bfl::Logger::disable_log(), and bfl::Logger::enable_log().
|
privateinherited |
Definition at line 70 of file Logger.h.
Referenced by bfl::Logger::enable_log(), and bfl::Logger::get_folder_path().
|
privateinherited |
Definition at line 76 of file Logger.h.
Referenced by bfl::Logger::disable_log(), bfl::Logger::enable_log(), bfl::Logger::logger(), and bfl::Logger::~Logger().
|
mutableprivateinherited |
Definition at line 78 of file Logger.h.
Referenced by bfl::Logger::disable_log(), bfl::Logger::enable_log(), bfl::Logger::logger(), and bfl::Logger::logger_helper().