#include <ObservationModel.h>
Public Member Functions | |
virtual void | integrateMeasurement (Particles &particles, const PointCloud &pc, const std::vector< float > &ranges, float max_range, const tf::Transform &baseToSensor)=0 |
virtual void | integratePoseMeasurement (Particles &particles, double roll, double pitch, const tf::StampedTransform &footprintToTorso) |
ObservationModel (ros::NodeHandle *nh, boost::shared_ptr< MapModel > mapModel, EngineT *rngEngine) | |
virtual void | setMap (boost::shared_ptr< octomap::OcTree > map) |
virtual | ~ObservationModel () |
Static Public Member Functions | |
static double | logLikelihood (double x, double sigma) |
Helper function to compute the log likelihood. More... | |
static double | logLikelihoodSq (double x_sq, double sigma) |
Helper function to compute the log likelihood based on sqared distances. More... | |
Protected Member Functions | |
virtual bool | getHeightError (const Particle &p, const tf::StampedTransform &footprintToBase, double &heightError) const =0 |
Protected Attributes | |
boost::shared_ptr< octomap::OcTree > | m_map |
boost::shared_ptr< MapModel > | m_mapModel |
ros::Publisher | m_pc_pub |
EngineT | m_rngEngine |
NormalGeneratorT | m_rngNormal |
UniformGeneratorT | m_rngUniform |
double | m_sigmaPitch |
double | m_sigmaRoll |
double | m_sigmaZ |
bool | m_use_squared_error |
double | m_weightPitch |
double | m_weightRoll |
double | m_weightZ |
Definition at line 51 of file ObservationModel.h.
humanoid_localization::ObservationModel::ObservationModel | ( | ros::NodeHandle * | nh, |
boost::shared_ptr< MapModel > | mapModel, | ||
EngineT * | rngEngine | ||
) |
Definition at line 31 of file ObservationModel.cpp.
|
virtual |
Definition at line 55 of file ObservationModel.cpp.
|
protectedpure virtual |
Implemented in humanoid_localization::EndpointModel, and humanoid_localization::RaycastingModel.
|
pure virtual |
Integrate a measurement in particle set, update weights accordingly Particle weights should be in log scale before, weights are added.
Implemented in humanoid_localization::EndpointModel, and humanoid_localization::RaycastingModel.
|
virtual |
Definition at line 58 of file ObservationModel.cpp.
|
inlinestatic |
Helper function to compute the log likelihood.
Definition at line 57 of file ObservationModel.h.
|
inlinestatic |
Helper function to compute the log likelihood based on sqared distances.
Definition at line 63 of file ObservationModel.h.
|
virtual |
Reimplemented in humanoid_localization::EndpointModel.
Definition at line 81 of file ObservationModel.cpp.
|
protected |
Definition at line 88 of file ObservationModel.h.
|
protected |
Definition at line 84 of file ObservationModel.h.
|
protected |
Definition at line 89 of file ObservationModel.h.
|
protected |
Definition at line 85 of file ObservationModel.h.
|
protected |
Definition at line 86 of file ObservationModel.h.
|
protected |
Definition at line 87 of file ObservationModel.h.
|
protected |
Definition at line 97 of file ObservationModel.h.
|
protected |
Definition at line 96 of file ObservationModel.h.
|
protected |
Definition at line 95 of file ObservationModel.h.
|
protected |
Definition at line 99 of file ObservationModel.h.
|
protected |
Definition at line 92 of file ObservationModel.h.
|
protected |
Definition at line 91 of file ObservationModel.h.
|
protected |
Definition at line 93 of file ObservationModel.h.