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

Remove get() from calls to Factories

parent a44ec227
No related branches found
No related tags found
1 merge request!24After 2nd RAL submission
......@@ -59,8 +59,8 @@ int main(void)
cout << "\n================== ParamsSensor Factory ===================" << endl;
// Use params factory for camera intrinsics
ParamsSensorBasePtr intr_cam_ptr = ParamsSensorFactory::get().create("CAMERA", wolf_config + "/camera_params_ueye_sim.yaml");
ProcessorParamsBasePtr params_ptr = ProcessorParamsFactory::get().create("IMAGE FEATURE", wolf_config + "/processor_image_feature.yaml");
ParamsSensorBasePtr intr_cam_ptr = ParamsSensorFactory::create("CAMERA", wolf_config + "/camera_params_ueye_sim.yaml");
ProcessorParamsBasePtr params_ptr = ProcessorParamsFactory::create("IMAGE FEATURE", wolf_config + "/processor_image_feature.yaml");
cout << "CAMERA with intrinsics : " << (static_pointer_cast<ParamsSensorCamera>(intr_cam_ptr))->pinhole_model_raw.transpose() << endl;
// cout << "Processor IMAGE image width : " << (static_pointer_cast<ProcessorParamsImage>(params_ptr))->image.width << endl;
......
......@@ -70,7 +70,7 @@ LandmarkBasePtr LandmarkAhp::create(const YAML::Node& _node)
// Register landmark creator
namespace
{
const bool WOLF_UNUSED registered_lmk_ahp = FactoryLandmark::get().registerCreator("LandmarkAhp", LandmarkAhp::create);
const bool WOLF_UNUSED registered_lmk_ahp = FactoryLandmark::registerCreator("LandmarkAhp", LandmarkAhp::create);
}
} // namespace wolf
......@@ -56,7 +56,7 @@ LandmarkBasePtr LandmarkHp::create(const YAML::Node& _node)
// Register landmark creator
namespace
{
const bool WOLF_UNUSED registered_lmk_hp = FactoryLandmark::get().registerCreator("LandmarkHp", LandmarkHp::create);
const bool WOLF_UNUSED registered_lmk_hp = FactoryLandmark::registerCreator("LandmarkHp", LandmarkHp::create);
}
} // namespace wolf
......@@ -64,7 +64,7 @@ static ParamsProcessorBasePtr createParamsProcessorBundleAdjustment(const std::s
}
// Register in the FactorySensor
const bool WOLF_UNUSED registered_prc_bundle_adjustment = FactoryParamsProcessor::get().registerCreator("ProcessorBundleAdjustment", createParamsProcessorBundleAdjustment);
const bool WOLF_UNUSED registered_prc_bundle_adjustment = FactoryParamsProcessor::registerCreator("ProcessorBundleAdjustment", createParamsProcessorBundleAdjustment);
} // namespace [unnamed]
......
......@@ -63,8 +63,8 @@ static ParamsProcessorBasePtr createParamsProcessorImage(const std::string & _fi
}
// Register in the FactorySensor
const bool WOLF_UNUSED registered_prc_image_feature_par = FactoryParamsProcessor::get().registerCreator("ProcessorTrackerFeatureImage", createParamsProcessorImage);
const bool WOLF_UNUSED registered_prc_image_landmark_par = FactoryParamsProcessor::get().registerCreator("ProcessorTrackerLandmarkImage", createParamsProcessorImage);
const bool WOLF_UNUSED registered_prc_image_feature_par = FactoryParamsProcessor::registerCreator("ProcessorTrackerFeatureImage", createParamsProcessorImage);
const bool WOLF_UNUSED registered_prc_image_landmark_par = FactoryParamsProcessor::registerCreator("ProcessorTrackerLandmarkImage", createParamsProcessorImage);
}
}
......@@ -66,7 +66,7 @@ static ParamsProcessorBasePtr createParamsProcessorTrackerFeatureTrifocal(const
}
// Register in the FactorySensor
const bool WOLF_UNUSED registered_prc_trifocal = FactoryParamsProcessor::get().registerCreator("ProcessorTrackerFeatureTrifocal", createParamsProcessorTrackerFeatureTrifocal);
const bool WOLF_UNUSED registered_prc_trifocal = FactoryParamsProcessor::registerCreator("ProcessorTrackerFeatureTrifocal", createParamsProcessorTrackerFeatureTrifocal);
} // namespace [unnamed]
......
......@@ -106,7 +106,7 @@ static ParamsSensorBasePtr createParamsSensorCamera(const std::string & _filenam
}
// Register in the FactorySensor
const bool WOLF_UNUSED registered_camera_intr = FactoryParamsSensor::get().registerCreator("SensorCamera", createParamsSensorCamera);
const bool WOLF_UNUSED registered_camera_intr = FactoryParamsSensor::registerCreator("SensorCamera", createParamsSensorCamera);
} // namespace [unnamed]
......
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