#include <measurement.h>
Public Member Functions | |
virtual bool | active (const State &state) |
virtual void | add (const MeasurementUpdate &update) |
virtual void | cleanup () |
void | disable () |
void | enable () |
bool | enabled () const |
virtual Filter * | filter () const |
virtual int | getDimension () const |
double | getMinInterval () const |
virtual MeasurementModel * | getModel () const |
virtual const std::string & | getName () const |
virtual SystemStatus | getStatusFlags () const |
double | getTimeout () const |
void | increase_timer (double dt) |
virtual bool | init (PoseEstimation &estimator, State &state) |
Measurement (const std::string &name) | |
virtual ParameterList & | parameters () |
virtual const ParameterList & | parameters () const |
virtual bool | process () |
virtual void | reset (State &state) |
virtual void | setFilter (Filter *filter) |
void | setMinInterval (double min_interval) |
void | setName (const std::string &name) |
void | setTimeout (double timeout) |
bool | timedout () const |
virtual bool | update (const MeasurementUpdate &update) |
virtual | ~Measurement () |
Static Public Member Functions | |
template<class ConcreteModel > | |
static boost::shared_ptr < Measurement_< ConcreteModel > > | create (ConcreteModel *model, const std::string &name) |
Protected Member Functions | |
virtual void | onCleanup () |
virtual bool | onInit (PoseEstimation &estimator) |
virtual void | onReset () |
virtual Queue & | queue ()=0 |
virtual bool | updateImpl (const MeasurementUpdate &update) |
Protected Attributes | |
bool | enabled_ |
Filter * | filter_ |
double | min_interval_ |
std::string | name_ |
ParameterList | parameters_ |
SystemStatus | status_flags_ |
double | timeout_ |
double | timer_ |
Definition at line 42 of file measurement.h.
hector_pose_estimation::Measurement::Measurement | ( | const std::string & | name | ) |
Definition at line 35 of file measurement.cpp.
hector_pose_estimation::Measurement::~Measurement | ( | ) | [virtual] |
Definition at line 49 of file measurement.cpp.
bool hector_pose_estimation::Measurement::active | ( | const State & | state | ) | [virtual] |
Definition at line 76 of file measurement.cpp.
void hector_pose_estimation::Measurement::add | ( | const MeasurementUpdate & | update | ) | [virtual] |
Definition at line 91 of file measurement.cpp.
void hector_pose_estimation::Measurement::cleanup | ( | ) | [virtual] |
Definition at line 60 of file measurement.cpp.
boost::shared_ptr< Measurement_< ConcreteModel > > hector_pose_estimation::Measurement::create | ( | ConcreteModel * | model, |
const std::string & | name | ||
) | [static] |
Definition at line 187 of file measurement.h.
void hector_pose_estimation::Measurement::disable | ( | ) | [inline] |
Definition at line 72 of file measurement.h.
void hector_pose_estimation::Measurement::enable | ( | ) | [inline] |
Definition at line 71 of file measurement.h.
bool hector_pose_estimation::Measurement::enabled | ( | ) | const [inline] |
Definition at line 70 of file measurement.h.
virtual Filter* hector_pose_estimation::Measurement::filter | ( | ) | const [inline, virtual] |
Reimplemented in hector_pose_estimation::Measurement_< ConcreteModel >, hector_pose_estimation::Measurement_< HeadingModel >, hector_pose_estimation::Measurement_< GPSModel >, hector_pose_estimation::Measurement_< MagneticModel >, hector_pose_estimation::Measurement_< BaroModel >, and hector_pose_estimation::Measurement_< HeightModel >.
Definition at line 56 of file measurement.h.
virtual int hector_pose_estimation::Measurement::getDimension | ( | ) | const [inline, virtual] |
Reimplemented in hector_pose_estimation::Measurement_< ConcreteModel >, hector_pose_estimation::Measurement_< HeadingModel >, hector_pose_estimation::Measurement_< GPSModel >, hector_pose_estimation::Measurement_< MagneticModel >, hector_pose_estimation::Measurement_< BaroModel >, and hector_pose_estimation::Measurement_< HeightModel >.
Definition at line 54 of file measurement.h.
double hector_pose_estimation::Measurement::getMinInterval | ( | ) | const [inline] |
Definition at line 81 of file measurement.h.
virtual MeasurementModel* hector_pose_estimation::Measurement::getModel | ( | ) | const [inline, virtual] |
Reimplemented in hector_pose_estimation::Measurement_< ConcreteModel >, hector_pose_estimation::Measurement_< HeadingModel >, hector_pose_estimation::Measurement_< GPSModel >, hector_pose_estimation::Measurement_< MagneticModel >, hector_pose_estimation::Measurement_< BaroModel >, and hector_pose_estimation::Measurement_< HeightModel >.
Definition at line 53 of file measurement.h.
virtual const std::string& hector_pose_estimation::Measurement::getName | ( | ) | const [inline, virtual] |
Definition at line 50 of file measurement.h.
virtual SystemStatus hector_pose_estimation::Measurement::getStatusFlags | ( | ) | const [inline, virtual] |
Definition at line 75 of file measurement.h.
double hector_pose_estimation::Measurement::getTimeout | ( | ) | const [inline] |
Definition at line 78 of file measurement.h.
void hector_pose_estimation::Measurement::increase_timer | ( | double | dt | ) |
Definition at line 83 of file measurement.cpp.
bool hector_pose_estimation::Measurement::init | ( | PoseEstimation & | estimator, |
State & | state | ||
) | [virtual] |
Reimplemented in hector_pose_estimation::Measurement_< ConcreteModel >, hector_pose_estimation::Measurement_< HeadingModel >, hector_pose_estimation::Measurement_< GPSModel >, hector_pose_estimation::Measurement_< MagneticModel >, hector_pose_estimation::Measurement_< BaroModel >, and hector_pose_estimation::Measurement_< HeightModel >.
Definition at line 53 of file measurement.cpp.
virtual void hector_pose_estimation::Measurement::onCleanup | ( | ) | [inline, protected, virtual] |
Definition at line 92 of file measurement.h.
virtual bool hector_pose_estimation::Measurement::onInit | ( | PoseEstimation & | estimator | ) | [inline, protected, virtual] |
Definition at line 90 of file measurement.h.
virtual void hector_pose_estimation::Measurement::onReset | ( | ) | [inline, protected, virtual] |
Reimplemented in hector_pose_estimation::Baro, hector_pose_estimation::Magnetic, hector_pose_estimation::Height, and hector_pose_estimation::GPS.
Definition at line 91 of file measurement.h.
virtual ParameterList& hector_pose_estimation::Measurement::parameters | ( | ) | [inline, virtual] |
Definition at line 63 of file measurement.h.
virtual const ParameterList& hector_pose_estimation::Measurement::parameters | ( | ) | const [inline, virtual] |
Definition at line 64 of file measurement.h.
bool hector_pose_estimation::Measurement::process | ( | ) | [virtual] |
Definition at line 95 of file measurement.cpp.
virtual Queue& hector_pose_estimation::Measurement::queue | ( | ) | [protected, pure virtual] |
Implemented in hector_pose_estimation::Measurement_< ConcreteModel >, hector_pose_estimation::Measurement_< HeadingModel >, hector_pose_estimation::Measurement_< GPSModel >, hector_pose_estimation::Measurement_< MagneticModel >, hector_pose_estimation::Measurement_< BaroModel >, hector_pose_estimation::Measurement_< HeightModel >, and hector_pose_estimation::PoseUpdate.
void hector_pose_estimation::Measurement::reset | ( | State & | state | ) | [virtual] |
Reimplemented in hector_pose_estimation::Measurement_< ConcreteModel >, hector_pose_estimation::Measurement_< HeadingModel >, hector_pose_estimation::Measurement_< GPSModel >, hector_pose_estimation::Measurement_< MagneticModel >, hector_pose_estimation::Measurement_< BaroModel >, and hector_pose_estimation::Measurement_< HeightModel >.
Definition at line 66 of file measurement.cpp.
virtual void hector_pose_estimation::Measurement::setFilter | ( | Filter * | filter | ) | [inline, virtual] |
Reimplemented in hector_pose_estimation::Measurement_< ConcreteModel >, hector_pose_estimation::Measurement_< HeadingModel >, hector_pose_estimation::Measurement_< GPSModel >, hector_pose_estimation::Measurement_< MagneticModel >, hector_pose_estimation::Measurement_< BaroModel >, and hector_pose_estimation::Measurement_< HeightModel >.
Definition at line 57 of file measurement.h.
void hector_pose_estimation::Measurement::setMinInterval | ( | double | min_interval | ) | [inline] |
Definition at line 80 of file measurement.h.
void hector_pose_estimation::Measurement::setName | ( | const std::string & | name | ) | [inline] |
Definition at line 51 of file measurement.h.
void hector_pose_estimation::Measurement::setTimeout | ( | double | timeout | ) | [inline] |
Definition at line 77 of file measurement.h.
bool hector_pose_estimation::Measurement::timedout | ( | ) | const |
Definition at line 87 of file measurement.cpp.
bool hector_pose_estimation::Measurement::update | ( | const MeasurementUpdate & | update | ) | [virtual] |
Definition at line 110 of file measurement.cpp.
virtual bool hector_pose_estimation::Measurement::updateImpl | ( | const MeasurementUpdate & | update | ) | [inline, protected, virtual] |
Reimplemented in hector_pose_estimation::Measurement_< ConcreteModel >, hector_pose_estimation::Measurement_< HeadingModel >, hector_pose_estimation::Measurement_< GPSModel >, hector_pose_estimation::Measurement_< MagneticModel >, hector_pose_estimation::Measurement_< BaroModel >, hector_pose_estimation::Measurement_< HeightModel >, and hector_pose_estimation::PoseUpdate.
Definition at line 88 of file measurement.h.
bool hector_pose_estimation::Measurement::enabled_ [protected] |
Definition at line 99 of file measurement.h.
Filter* hector_pose_estimation::Measurement::filter_ [protected] |
Definition at line 105 of file measurement.h.
double hector_pose_estimation::Measurement::min_interval_ [protected] |
Definition at line 100 of file measurement.h.
std::string hector_pose_estimation::Measurement::name_ [protected] |
Definition at line 95 of file measurement.h.
Definition at line 96 of file measurement.h.
Definition at line 97 of file measurement.h.
double hector_pose_estimation::Measurement::timeout_ [protected] |
Definition at line 102 of file measurement.h.
double hector_pose_estimation::Measurement::timer_ [protected] |
Definition at line 103 of file measurement.h.