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

Remove get() from calls to Factories

parent 0d58af22
No related branches found
No related tags found
2 merge requests!30Release after RAL,!29After 2nd RAL submission
......@@ -1077,7 +1077,7 @@ void LandmarkPolyline2d::tryMergeLandmarks(LandmarkPolyline2dPtrList& _lmk_list,
// Register landmark creator
namespace
{
const bool WOLF_UNUSED registered_lmk_polyline_2d = FactoryLandmark::get().registerCreator("LandmarkPolyline2d", LandmarkPolyline2d::create);
const bool WOLF_UNUSED registered_lmk_polyline_2d = FactoryLandmark::registerCreator("LandmarkPolyline2d", LandmarkPolyline2d::create);
}
} /* namespace wolf */
......@@ -58,7 +58,7 @@ ParamsProcessorBasePtr createParamsProcessorOdomIcp(const std::string& _filename
}
// register into factory
const bool WOLF_UNUSED registered_odom_Icp_params = FactoryParamsProcessor::get().registerCreator("ProcessorOdomIcp", createParamsProcessorOdomIcp);
const bool WOLF_UNUSED registered_odom_Icp_params = FactoryParamsProcessor::registerCreator("ProcessorOdomIcp", createParamsProcessorOdomIcp);
} // namespace [void]
} // namespace wolf
......@@ -52,7 +52,7 @@ ParamsSensorBasePtr createIntrinsicsLaser2d(const std::string& _filename_dot_yam
}
// register into factory
const bool WOLF_UNUSED registered_laser_params = FactoryParamsSensor::get().registerCreator("SensorLaser2d", createIntrinsicsLaser2d);
const bool WOLF_UNUSED registered_laser_params = FactoryParamsSensor::registerCreator("SensorLaser2d", createIntrinsicsLaser2d);
} // namespace [void]
} // namespace wolf
......@@ -84,7 +84,7 @@ TEST(ParamsProcessorOdomIcp, default_construct_and_print)
TEST(ParamsProcessorOdomIcp, factory_and_print)
{
auto params = std::static_pointer_cast<ParamsProcessorOdomIcp>(FactoryParamsProcessor::get().create("ProcessorOdomIcp", laser_root_dir + "/test/yaml/processor_odom_icp.yaml"));
auto params = std::static_pointer_cast<ParamsProcessorOdomIcp>(FactoryParamsProcessor::create("ProcessorOdomIcp", laser_root_dir + "/test/yaml/processor_odom_icp.yaml"));
ASSERT_TRUE(params); // not nullptr
// check a couple of entries.
......@@ -105,7 +105,7 @@ TEST(ProcessorOdomIcp, Constructor)
TEST(ProcessorOdomIcp, creator_yaml)
{
auto params = std::static_pointer_cast<ParamsProcessorOdomIcp>(FactoryParamsProcessor::get().create("ProcessorOdomIcp", laser_root_dir + "/test/yaml/processor_odom_icp.yaml"));
auto params = std::static_pointer_cast<ParamsProcessorOdomIcp>(FactoryParamsProcessor::create("ProcessorOdomIcp", laser_root_dir + "/test/yaml/processor_odom_icp.yaml"));
auto prc = std::make_shared<ProcessorOdomIcp>(params);
ASSERT_TRUE(prc); // not nullptr
......
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