34 #ifndef MRPT_LOCALIZATION_CORE_H 35 #define MRPT_LOCALIZATION_CORE_H 40 #include <mrpt/bayes/CParticleFilter.h> 41 #include <mrpt/poses/CPose2D.h> 42 #include <mrpt/poses/CPosePDFGaussian.h> 43 #include <mrpt/utils/CTicTac.h> 44 #include <mrpt/slam/CMonteCarloLocalization2D.h> 45 #include <mrpt_bridge/mrpt_log_macros.h> 47 #include <mrpt/version.h> 48 #include <mrpt/obs/CActionRobotMovement2D.h> 49 #include <mrpt/obs/CActionCollection.h> 50 #include <mrpt/obs/CObservationOdometry.h> 51 #include <mrpt/obs/CSensoryFrame.h> 52 #include <mrpt/maps/CMultiMetricMap.h> 58 MRPT_VIRTUAL_LOG_MACROS
86 CSensoryFrame::Ptr _sf, CObservationOdometry::Ptr _odometry);
90 CActionRobotMovement2D::TMotionModelOptions
92 CActionRobotMovement2D::TMotionModelOptions
95 mrpt::bayes::CParticleFilter
97 mrpt::bayes::CParticleFilter::TParticleFilterStats
99 mrpt::slam::CMonteCarloLocalization2D
pdf_;
100 mrpt::poses::CPosePDFGaussian
112 float init_PDF_min_x;
125 void initializeFilter();
127 void updateFilter(CActionCollection::Ptr _action, CSensoryFrame::Ptr _sf);
130 #endif // MRPT_LOCALIZATION_CORE_H CMultiMetricMap metric_map_
map
mrpt::utils::CTicTac tictac_
timer to measure performance
mrpt::bayes::CParticleFilter::TParticleFilterStats pf_stats_
filter statistics
int initial_particle_count_
number of particles for initialization
mrpt::poses::CPose2D odom_last_observation_
correct time
mrpt::slam::CMonteCarloLocalization2D pdf_
the filter
mrpt::poses::CPosePDFGaussian initial_pose_
initial posed used in initializeFilter()
CActionRobotMovement2D::TMotionModelOptions motion_model_options_
used with odom value motion noise
mrpt::bayes::CParticleFilter pf_
common interface for particle filters
mrpt::system::TTimeStamp time_last_update_
time of the last update
bool use_motion_model_default_options_
used default odom_params
CActionRobotMovement2D::TMotionModelOptions motion_model_default_options_
used if there are is not odom