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

Move params factories to sensor_base and processor_base

parent a37757f8
No related branches found
No related tags found
1 merge request!316Arrange factories
Pipeline #4239 passed
......@@ -314,26 +314,6 @@ namespace wolf
// Some specializations
//======================
// Intrinsics
struct IntrinsicsBase;
typedef Factory<IntrinsicsBase,
const std::string&> IntrinsicsFactory;
template<>
inline std::string IntrinsicsFactory::getClass()
{
return "IntrinsicsFactory";
}
// ProcessorParams
struct ProcessorParamsBase;
typedef Factory<ProcessorParamsBase,
const std::string&> ProcessorParamsFactory;
template<>
inline std::string ProcessorParamsFactory::getClass()
{
return "ProcessorParamsFactory";
}
// Landmarks from YAML
class LandmarkBase;
typedef Factory<LandmarkBase,
......
......@@ -165,6 +165,17 @@ namespace wolf
* You can also check the code in the example file ````src/examples/test_wolf_factories.cpp````.
*/
// ProcessorParams factory
struct ProcessorParamsBase;
typedef Factory<ProcessorParamsBase,
const std::string&> ProcessorParamsFactory;
template<>
inline std::string ProcessorParamsFactory::getClass()
{
return "ProcessorParamsFactory";
}
// Processor factory
typedef Factory<ProcessorBase,
const std::string&,
const ProcessorParamsBasePtr> ProcessorFactory;
......
......@@ -209,6 +209,17 @@ namespace wolf
* You can also check the code in the example file ````src/examples/test_wolf_factories.cpp````.
*/
// Intrinsics factory
struct IntrinsicsBase;
typedef Factory<IntrinsicsBase,
const std::string&> IntrinsicsFactory;
template<>
inline std::string IntrinsicsFactory::getClass()
{
return "IntrinsicsFactory";
}
// Sensor factory
typedef Factory<SensorBase,
const std::string&,
const Eigen::VectorXs&, const IntrinsicsBasePtr> SensorFactory;
......
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