Skip to content
Snippets Groups Projects
Commit 07817cd7 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

gtest the params factory creator

parent 1e0d257b
No related branches found
No related tags found
3 merge requests!30Release after RAL,!29After 2nd RAL submission,!3Resolve "new processor: pc matching for demo"
......@@ -24,6 +24,21 @@ TEST(ProcessorParamsOdomICP, default_construct_and_print)
WOLF_INFO("params: ", params->print());
}
TEST(ProcessorParamsOdomICP, factory_and_print)
{
std::string laser_root = _WOLF_LASER_ROOT_DIR;
auto params = std::static_pointer_cast<ProcessorParamsOdomICP>(ProcessorParamsFactory::get().create("ODOM ICP", laser_root + "/test/yaml/processor_odom_icp.yaml"));
ASSERT_TRUE(params); // not nullptr
// check a couple of entries.
ASSERT_EQ (params->use_corr_tricks , 4 );
ASSERT_DOUBLE_EQ(params->outliers_maxPerc , 5.0 );
WOLF_INFO("params: ", params->print());
}
TEST(ProcessorOdomIcp, Constructor)
{
auto params = std::make_shared<ProcessorParamsOdomICP>();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment