FixedState.cpp
Go to the documentation of this file.
1 /************************************************************************
2  * Copyright (C) 2012 Eindhoven University of Technology (TU/e). *
3  * All rights reserved. *
4  ************************************************************************
5  * Redistribution and use in source and binary forms, with or without *
6  * modification, are permitted provided that the following conditions *
7  * are met: *
8  * *
9  * 1. Redistributions of source code must retain the above *
10  * copyright notice, this list of conditions and the following *
11  * disclaimer. *
12  * *
13  * 2. Redistributions in binary form must reproduce the above *
14  * copyright notice, this list of conditions and the following *
15  * disclaimer in the documentation and/or other materials *
16  * provided with the distribution. *
17  * *
18  * THIS SOFTWARE IS PROVIDED BY TU/e "AS IS" AND ANY EXPRESS OR *
19  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED *
20  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE *
21  * ARE DISCLAIMED. IN NO EVENT SHALL TU/e OR CONTRIBUTORS BE LIABLE *
22  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR *
23  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT *
24  * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; *
25  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF *
26  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT *
27  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE *
28  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH *
29  * DAMAGE. *
30  * *
31  * The views and conclusions contained in the software and *
32  * documentation are those of the authors and should not be *
33  * interpreted as representing official policies, either expressed or *
34  * implied, of TU/e. *
35  ************************************************************************/
36 
37 #include "FixedState.h"
38 
40 
41 }
42 
43 FixedState::FixedState(const pbl::PDF& pdf) : pdf_(pdf.clone()) {
44 }
45 
46 FixedState::FixedState(const FixedState& orig) : mhf::IStateEstimator(orig), pdf_(orig.pdf_->clone()) {
47 }
48 
50  delete pdf_;
51 }
52 
54  return new FixedState(*this);
55 }
56 
57 void FixedState::update(const pbl::PDF& z, const mhf::Time& time) {
58 }
59 
60 void FixedState::propagate(const mhf::Time& time) {
61 }
62 
64 }
65 
67  return *pdf_;
68 }
69 
virtual void update(const pbl::PDF &z, const mhf::Time &time)
Performs an update, but since the state is fixed, update will do nothing.
Definition: FixedState.cpp:57
virtual void propagate(const mhf::Time &time)
Propagates the state, but since the state is fixed, propagate will do nothing.
Definition: FixedState.cpp:60
virtual ~FixedState()
Definition: FixedState.cpp:49
double Time
pbl::PDF * pdf_
Definition: FixedState.h:81
virtual void reset()
Resets the state, but since the state is fixed, reset will do nothing.
Definition: FixedState.cpp:63
FixedState is a simple wrapper such that probability density function can be threaded as state estima...
Definition: FixedState.h:47
FixedState * clone() const
Definition: FixedState.cpp:53
#define PLUGINLIB_EXPORT_CLASS(class_type, base_class_type)
const pbl::PDF & getValue() const
Definition: FixedState.cpp:66


wire_state_estimators
Author(s): Sjoerd van den Dries, Jos Elfring
autogenerated on Fri Apr 16 2021 02:32:34