Bayes Filters Library
|
This class represent an linear measurement model Hx + w, where H is a time-invariant measurement matrix, x is a state vector and w is random noise. More...
#include <LTIMeasurementModel.h>
Public Member Functions | |
LTIMeasurementModel (const Eigen::Ref< const Eigen::MatrixXd > &measurement_matrix, const Eigen::Ref< const Eigen::MatrixXd > &noise_covariance_matrix) | |
virtual | ~LTIMeasurementModel () noexcept=default |
std::pair< bool, Eigen::MatrixXd > | getNoiseCovarianceMatrix () const override |
Eigen::MatrixXd | getMeasurementMatrix () const override |
virtual std::pair< bool, bfl::Data > | predictedMeasure (const Eigen::Ref< const Eigen::MatrixXd > &cur_states) const override |
virtual std::pair< bool, bfl::Data > | innovation (const bfl::Data &predicted_measurements, const bfl::Data &measurements) const override |
virtual bool | freeze (const Data &data=Data())=0 |
virtual std::pair< bool, Data > | measure (const Data &data=Data()) const =0 |
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 () |
Protected Attributes | |
Eigen::MatrixXd | H_ |
Measurement matrix. More... | |
Eigen::MatrixXd | R_ |
Convariance matrix of the additive white noise of the measurements. More... | |
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 an linear measurement model Hx + w, where H is a time-invariant measurement matrix, x is a state vector and w is random noise.
Definition at line 23 of file LTIMeasurementModel.h.
LTIMeasurementModel::LTIMeasurementModel | ( | const Eigen::Ref< const Eigen::MatrixXd > & | measurement_matrix, |
const Eigen::Ref< const Eigen::MatrixXd > & | noise_covariance_matrix | ||
) |
Definition at line 16 of file LTIMeasurementModel.cpp.
|
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_.
|
virtualinherited |
Reimplemented in bfl::SimulatedLinearSensor.
Definition at line 30 of file MeasurementModel.cpp.
|
virtualinherited |
Reimplemented in bfl::SimulatedLinearSensor.
Definition at line 37 of file MeasurementModel.cpp.
Referenced by bfl::UKFCorrection::correctStep(), and bfl::sigma_point::unscented_transform().
|
overridevirtual |
Implements bfl::LinearMeasurementModel.
Definition at line 38 of file LTIMeasurementModel.cpp.
|
overridevirtual |
Reimplemented from bfl::MeasurementModel.
Definition at line 32 of file LTIMeasurementModel.cpp.
|
overridevirtualinherited |
Implements bfl::MeasurementModel.
Definition at line 24 of file LinearMeasurementModel.cpp.
|
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 virtualinherited |
Implemented in bfl::SimulatedLinearSensor, and bfl::MeasurementModelDecorator.
Referenced by bfl::UKFCorrection::correctStep(), and bfl::GaussianLikelihood::likelihood().
|
overridevirtualinherited |
Implements bfl::MeasurementModel.
Definition at line 16 of file LinearMeasurementModel.cpp.
|
virtualinherited |
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().
|
protected |
Measurement matrix.
Definition at line 39 of file LTIMeasurementModel.h.
Referenced by bfl::SimulatedLinearSensor::freeze(), and bfl::LinearModel::getMeasurementMatrix().
|
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().
|
protected |
Convariance matrix of the additive white noise of the measurements.
Definition at line 44 of file LTIMeasurementModel.h.
Referenced by bfl::LinearModel::getNoiseCovarianceMatrix().