17 int PropertySet::N_PROPERTY_SET = 0;
19 PropertySet::PropertySet(
Time timestamp) : timestamp_(timestamp) {
61 it->second =
new Property(attribute, estimator);
71 it->second = property;
101 it->second->propagate(time);
122 double likelihood = 1;
124 const map<Attribute, Property*>& other_props = P.
properties_;
129 const Property* other_prop = it->second;
144 printf(
"Error during likelihood calculation: property '%s' is not in property set.\n",
AttributeConv::attribute_str(attribute).c_str());
146 printf(
"This (%p) constains:\n",
this);
151 printf(
"Other (%p) constains:\n", &P);
const Property * getProperty(const Attribute &attribute) const
Time getTimestamp() const
static Attribute attribute(const std::string &attribute_str)
attribute
const Attribute & getAttribute() const
void update(const pbl::PDF &z, const Time &time)
Updates the internal state based on measurement z.
const std::map< Attribute, Property * > & getPropertyMap() const
virtual double getLikelihood(const pbl::PDF &pdf) const
std::map< Attribute, Property * > properties_
static int N_PROPERTY_SET
void addProperty(const Attribute &attribute, const pbl::PDF &value)
Base class for all state estimators used by the world model.
static std::string attribute_str(const Attribute &attribute)
attribute_str
iterator(field< oT > &in_M, const bool at_end=false)
FixedState is a simple wrapper such that probability density function can be threaded as state estima...
PropertySet * clone() const
void reset()
Resets the internal state of the estimator to its initial value.
const pbl::PDF & getValue() const
Returns the current estimated state value.
const_iterator(const field< oT > &in_M, const bool at_end=false)
virtual double getLikelihood(const PropertySet &P) const
const pbl::PDF & getValue() const
void propagate(const Time &time)
Propagates the internal state to Time time.
std::string toString() const
PropertySet(Time timestamp=0)