Bayes Filters Library
AdditiveStateModel.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016-2019 Istituto Italiano di Tecnologia (IIT)
3  *
4  * This software may be modified and distributed under the terms of the
5  * BSD 3-Clause license. See the accompanying LICENSE file for details.
6  */
7 
9 
10 using namespace bfl;
11 using namespace Eigen;
12 
13 
14 void AdditiveStateModel::motion(const Ref<const MatrixXd>& cur_states, Ref<MatrixXd> mot_states)
15 {
16  propagate(cur_states, mot_states);
17 
18  mot_states += getNoiseSample(mot_states.cols());
19 }
20 
21 
23 {
24  VectorDescription input_description = getStateDescription();
25  input_description.add_noise_components(getNoiseCovarianceMatrix().rows());
26 
27  return input_description;
28 }
bfl
Port of boost::any for C++11 compilers.
Definition: AdditiveMeasurementModel.h:13
AdditiveStateModel.h
bfl::AdditiveStateModel::motion
virtual void motion(const Eigen::Ref< const Eigen::MatrixXd > &cur_states, Eigen::Ref< Eigen::MatrixXd > mot_states) override
Definition: AdditiveStateModel.cpp:14
bfl::AdditiveStateModel::getInputDescription
virtual VectorDescription getInputDescription()
Returns the vector description of the input to the state equation.
Definition: AdditiveStateModel.cpp:22
bfl::VectorDescription::add_noise_components
void add_noise_components(const std::size_t &components)
Definition: VectorDescription.cpp:85
bfl::VectorDescription
Definition: VectorDescription.h:18