MRPT
2.0.1
|
#include <gtest/gtest.h>
#include <mrpt/apps/MonteCarloLocalization_App.h>
#include <mrpt/poses/Lie/SE.h>
#include <mrpt/system/filesystem.h>
#include <test_mrpt_common.h>
#include <iostream>
Go to the source code of this file.
Typedefs | |
using | config_changer_t = std::function< void(mrpt::config::CConfigFileBase &)> |
using | post_tester_t = std::function< void(mrpt::apps::MonteCarloLocalization_Base &)> |
using | MCL = mrpt::apps::MonteCarloLocalization_Rawlog |
Functions | |
void | generic_pf_test (const std::string &ini_filename, const std::string &rawlog_filename, const std::string &map_filename, config_changer_t cfg_changer, post_tester_t post_tester) |
TEST (MonteCarloLocalization_Rawlog, RunForSampleDataset_2D) | |
TEST (MonteCarloLocalization_Rawlog, RunForSampleDataset_3D) | |
Variables | |
static bool | tester_result_ok = true |
static auto | tester_for_localization_demo |
using config_changer_t = std::function<void(mrpt::config::CConfigFileBase&)> |
Definition at line 17 of file MonteCarloLocalization_App_unittest.cpp.
Definition at line 21 of file MonteCarloLocalization_App_unittest.cpp.
using post_tester_t = std::function<void(mrpt::apps::MonteCarloLocalization_Base&)> |
Definition at line 19 of file MonteCarloLocalization_App_unittest.cpp.
void generic_pf_test | ( | const std::string & | ini_filename, |
const std::string & | rawlog_filename, | ||
const std::string & | map_filename, | ||
config_changer_t | cfg_changer, | ||
post_tester_t | post_tester | ||
) |
Definition at line 23 of file MonteCarloLocalization_App_unittest.cpp.
References mrpt::apps::MonteCarloLocalization_Base::allow_quit_on_esc_key, argc, argv, ASSERT_FILE_EXISTS_, mrpt::exception_to_str(), mrpt::apps::MonteCarloLocalization_Base::fill_out_estimated_path, mrpt::system::getTempFileName(), ini_fil, mrpt::apps::MonteCarloLocalization_Base::initialize(), mrpt::system::LVL_ERROR, mrpt::apps::MonteCarloLocalization_Base::params, mrpt::apps::MonteCarloLocalization_Base::run(), mrpt::apps::MonteCarloLocalization_Base::sect, mrpt::system::COutputLogger::setMinLoggingLevel(), and mrpt::config::CConfigFileBase::write().
Referenced by TEST().
TEST | ( | MonteCarloLocalization_Rawlog | , |
RunForSampleDataset_2D | |||
) |
Definition at line 112 of file MonteCarloLocalization_App_unittest.cpp.
References generic_pf_test(), mrpt::apps::MonteCarloLocalization_Base::sect, tester_for_localization_demo, tester_result_ok, and mrpt::config::CConfigFileBase::write().
TEST | ( | MonteCarloLocalization_Rawlog | , |
RunForSampleDataset_3D | |||
) |
Definition at line 130 of file MonteCarloLocalization_App_unittest.cpp.
References generic_pf_test(), mrpt::apps::MonteCarloLocalization_Base::sect, tester_for_localization_demo, tester_result_ok, and mrpt::config::CConfigFileBase::write().
|
static |
Definition at line 84 of file MonteCarloLocalization_App_unittest.cpp.
Referenced by TEST().
|
static |
Definition at line 82 of file MonteCarloLocalization_App_unittest.cpp.
Referenced by TEST().
Page generated by Doxygen 1.8.14 for MRPT 2.0.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020 |