Bayes Filters Library
DrawParticles.h
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 
8 #ifndef DRAWPARTICLES_H
9 #define DRAWPARTICLES_H
10 
13 
14 namespace bfl {
15  class DrawParticles;
16 }
17 
18 
20 {
21 public:
22  DrawParticles(std::unique_ptr<StateModel> state_model) noexcept;
23 
24  DrawParticles(std::unique_ptr<StateModel> state_model, std::unique_ptr<ExogenousModel> exogenous_model) noexcept;
25 
26  DrawParticles(const DrawParticles& prediction) noexcept = delete;
27 
28  DrawParticles& operator=(const DrawParticles& prediction) noexcept = delete;
29 
30  DrawParticles(DrawParticles&& prediction) noexcept;
31 
32  DrawParticles& operator=(DrawParticles&& prediction) noexcept;
33 
34  virtual ~DrawParticles() noexcept = default;
35 
36  StateModel& getStateModel() noexcept override;
37 
38 
39 protected:
40  void predictStep(const ParticleSet& prev_particles, ParticleSet& pred_particles) override;
41 
42  std::unique_ptr<StateModel> state_model_;
43 
44  std::unique_ptr<ExogenousModel> exogenous_model_;
45 };
46 
47 #endif /* DRAWPARTICLES_H */
bfl::DrawParticles::getStateModel
StateModel & getStateModel() noexcept override
Definition: DrawParticles.cpp:46
bfl::DrawParticles::exogenous_model_
std::unique_ptr< ExogenousModel > exogenous_model_
Definition: DrawParticles.h:44
bfl
Port of boost::any for C++11 compilers.
Definition: AdditiveMeasurementModel.h:13
bfl::DrawParticles
Definition: DrawParticles.h:19
bfl::PFPrediction
Definition: PFPrediction.h:25
PFPrediction.h
bfl::DrawParticles::DrawParticles
DrawParticles(std::unique_ptr< StateModel > state_model) noexcept
Definition: DrawParticles.cpp:16
bfl::DrawParticles::~DrawParticles
virtual ~DrawParticles() noexcept=default
bfl::StateModel
Definition: StateModel.h:22
ParticleSet.h
bfl::DrawParticles::operator=
DrawParticles & operator=(const DrawParticles &prediction) noexcept=delete
bfl::ParticleSet
Definition: ParticleSet.h:20
bfl::DrawParticles::state_model_
std::unique_ptr< StateModel > state_model_
Definition: DrawParticles.h:42
bfl::DrawParticles::predictStep
void predictStep(const ParticleSet &prev_particles, ParticleSet &pred_particles) override
Definition: DrawParticles.cpp:52