38     const TPose3D* newPoseToBeInserted)
    41     if (newPoseToBeInserted)
    75 CMonteCarloLocalization3D::CMonteCarloLocalization3D(
size_t M)
    82     const size_t i, 
bool& is_valid_pose)
 const   109     PF_SLAM_implementation_pfStandardProposal<mrpt::slam::detail::TPoseBin3D>(
   160     PF_SLAM_implementation_pfAuxiliaryPFOptimal<mrpt::slam::detail::TPoseBin3D>(
   173         const size_t particleIndexForMap, 
const CSensoryFrame& observation,
   185     for (
const auto& it : observation)
   186         ret += map->computeObservationLikelihood(
   198     *particleData = newPose;
   202     CParticleList& old_particles, 
const vector<TPose3D>& newParticles,
   203     const vector<double>& newParticlesWeight,
   204     [[maybe_unused]] 
const vector<size_t>& newParticlesDerivedFromIdx)
 const   206     ASSERT_(
size_t(newParticlesWeight.size()) == newParticles.size());
   216     const size_t N = newParticles.size();
   217     old_particles.resize(N);
   218     for (
size_t i = 0; i < N; i++)
   220         old_particles[i].log_w = newParticlesWeight[i];
   221         old_particles[i].d = newParticles[i];
 
void PF_SLAM_implementation_replaceByNewParticleSet(CParticleList &old_particles, const std::vector< mrpt::math::TPose3D > &newParticles, const std::vector< double > &newParticlesWeight, const std::vector< size_t > &newParticlesDerivedFromIdx) const override
 
#define THROW_EXCEPTION(msg)
 
CParticleList m_particles
The array of particles. 
 
double roll
Roll coordinate (rotation angle over X coordinate). 
 
The namespace for Bayesian filtering algorithm: different particle filters and Kalman filter algorith...
 
void prediction_and_update_pfStandardProposal(const mrpt::obs::CActionCollection *action, const mrpt::obs::CSensoryFrame *observation, const bayes::CParticleFilter::TParticleFilterOptions &PF_options) override
Update the m_particles, predicting the posterior of robot pose and map after a movement command...
 
void PF_SLAM_implementation_pfAuxiliaryPFStandard(const mrpt::obs::CActionCollection *actions, const mrpt::obs::CSensoryFrame *sf, const mrpt::bayes::CParticleFilter::TParticleFilterOptions &PF_options, const TKLDParams &KLD_options)
A generic implementation of the PF method "prediction_and_update_pfAuxiliaryPFStandard" (Auxiliary pa...
 
This file contains the implementations of the template members declared in mrpt::slam::PF_implementat...
 
Option set for KLD algorithm. 
 
mrpt::maps::TMetricMapList metricMaps
[update stage] Alternative way (if metricMap==nullptr): A metric map is supplied for each particle: T...
 
double yaw
Yaw coordinate (rotation angle over Z axis). 
 
mrpt::maps::CMetricMap * metricMap
[update stage] Must be set to a metric map used to estimate the likelihood of observations ...
 
Declares a class for storing a collection of robot actions. 
 
void prediction_and_update_pfAuxiliaryPFStandard(const mrpt::obs::CActionCollection *action, const mrpt::obs::CSensoryFrame *observation, const bayes::CParticleFilter::TParticleFilterOptions &PF_options) override
Update the m_particles, predicting the posterior of robot pose and map after a movement command...
 
#define ASSERT_(f)
Defines an assertion mechanism. 
 
TMonteCarloLocalizationParams options
MCL parameters. 
 
This base provides a set of functions for maths stuff. 
 
void setLoggerName(const std::string &name)
Set the name of the COutputLogger instance. 
 
This namespace contains representation of robot actions and observations. 
 
Declares a class for storing a "sensory frame", a set of "observations" taken by the robot approximat...
 
double KLD_binSize_XY
Parameters for the KLD adaptive sample size algorithm (see Dieter Fox's papers), which is used only i...
 
Classes for 2D/3D geometry representation, both of single values and probability density distribution...
 
double pitch
Pitch coordinate (rotation angle over Y axis). 
 
Auxiliary structure used in KLD-sampling in particle filters. 
 
void PF_SLAM_implementation_custom_update_particle_with_new_pose(CParticleDataContent *particleData, const mrpt::math::TPose3D &newPose) const override
 
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries. 
 
Declares a virtual base class for all metric maps storage classes. 
 
A class used to store a 3D pose (a 3D translation + a rotation in 3D). 
 
The configuration of a particle filter. 
 
Lightweight 3D pose (three spatial coordinates, plus three angular coordinates). 
 
void prediction_and_update_pfAuxiliaryPFOptimal(const mrpt::obs::CActionCollection *action, const mrpt::obs::CSensoryFrame *observation, const bayes::CParticleFilter::TParticleFilterOptions &PF_options) override
Update the m_particles, predicting the posterior of robot pose and map after a movement command...
 
mrpt::math::TPose3D getLastPose(const size_t i, bool &is_valid_pose) const override
Return the robot pose for the i'th particle. 
 
double PF_SLAM_computeObservationLikelihoodForParticle(const mrpt::bayes::CParticleFilter::TParticleFilterOptions &PF_options, const size_t particleIndexForMap, const mrpt::obs::CSensoryFrame &observation, const mrpt::poses::CPose3D &x) const override
Evaluate the observation likelihood for one particle at a given location. 
 
Declares a class that represents a Probability Density function (PDF) of a 3D pose. 
 
TKLDParams KLD_params
Parameters for dynamic sample size, KLD method. 
 
for(unsigned int i=0;i< NUM_IMGS;i++)
 
void KLF_loadBinFromParticle(mrpt::slam::detail::TPoseBin3D &outBin, const TKLDParams &opts, const CMonteCarloLocalization3D::CParticleDataContent *currentParticleValue, const TPose3D *newPoseToBeInserted)
Fills out a "TPoseBin3D" variable, given a path hypotesis and (if not set to nullptr) a new pose appe...
 
int round(const T value)
Returns the closer integer (int) to x.