diff --git a/include/core/common/factory.h b/include/core/common/factory.h index d97810fe3f6fb83f14ee2e802ea8f07b2049485f..1510362e65c0a457f8982eec5e8e5cc130798668 100644 --- a/include/core/common/factory.h +++ b/include/core/common/factory.h @@ -244,7 +244,7 @@ class Factory bool registerCreator(const std::string& _type, CreatorCallback createFn); bool unregisterCreator(const std::string& _type); TypeBasePtr create(const std::string& _type, TypeInput... _input); - std::string getClass(); + std::string getClass() const; private: CallbackMap callbacks_; @@ -301,7 +301,7 @@ inline Factory<TypeBase, TypeInput...>& Factory<TypeBase, TypeInput...>::get() } template<class TypeBase, typename... TypeInput> -inline std::string Factory<TypeBase, TypeInput...>::getClass() +inline std::string Factory<TypeBase, TypeInput...>::getClass() const { return "Factory<class TypeBase>"; } @@ -319,7 +319,7 @@ class LandmarkBase; typedef Factory<LandmarkBase, const YAML::Node&> FactoryLandmark; template<> -inline std::string FactoryLandmark::getClass() +inline std::string FactoryLandmark::getClass() const { return "FactoryLandmark"; } diff --git a/include/core/processor/factory_processor.h b/include/core/processor/factory_processor.h index 738d3558a41124377dffa39731ed1c859d09f873..5fc2f8f14ccffc52653c6f43fa0c07fdb03be825 100644 --- a/include/core/processor/factory_processor.h +++ b/include/core/processor/factory_processor.h @@ -170,7 +170,7 @@ struct ParamsProcessorBase; typedef Factory<ParamsProcessorBase, const std::string&> FactoryParamsProcessor; template<> -inline std::string FactoryParamsProcessor::getClass() +inline std::string FactoryParamsProcessor::getClass() const { return "FactoryParamsProcessor"; } @@ -180,7 +180,7 @@ typedef Factory<ProcessorBase, const std::string&, const ParamsProcessorBasePtr> FactoryProcessor; template<> -inline std::string FactoryProcessor::getClass() +inline std::string FactoryProcessor::getClass() const { return "FactoryProcessor"; } @@ -193,7 +193,7 @@ typedef Factory<ProcessorBase, const std::string&, const ParamsServer&> AutoConfFactoryProcessor; template<> -inline std::string AutoConfFactoryProcessor::getClass() +inline std::string AutoConfFactoryProcessor::getClass() const { return "AutoConfFactoryProcessor"; } diff --git a/include/core/sensor/factory_sensor.h b/include/core/sensor/factory_sensor.h index 67ef5f597108f7ddc3bc264fb1c0cbc218bdba0a..ff0574aaadc6a52015a6c9e4f076a1ec64d968c0 100644 --- a/include/core/sensor/factory_sensor.h +++ b/include/core/sensor/factory_sensor.h @@ -212,9 +212,9 @@ namespace wolf // ParamsSensor factory struct ParamsSensorBase; typedef Factory<ParamsSensorBase, - const std::string&> FactoryParamsSensor; + const std::string&> FactoryParamsSensor; template<> -inline std::string FactoryParamsSensor::getClass() +inline std::string FactoryParamsSensor::getClass() const { return "FactoryParamsSensor"; } @@ -222,10 +222,11 @@ inline std::string FactoryParamsSensor::getClass() // Sensor factory typedef Factory<SensorBase, const std::string&, - const Eigen::VectorXd&, const ParamsSensorBasePtr> FactorySensor; + const Eigen::VectorXd&, + const ParamsSensorBasePtr> FactorySensor; template<> -inline std::string FactorySensor::getClass() +inline std::string FactorySensor::getClass() const { return "FactorySensor"; } @@ -240,7 +241,7 @@ typedef Factory<SensorBase, const ParamsServer&> AutoConfFactorySensor; template<> -inline std::string AutoConfFactorySensor::getClass() +inline std::string AutoConfFactorySensor::getClass() const { return "AutoConfFactorySensor"; } diff --git a/include/core/solver/factory_solver.h b/include/core/solver/factory_solver.h index b055217828d887169f8e732138b43a4f2067c62a..e3cc58a4a0b6d269026312f9c946a490d1045923 100644 --- a/include/core/solver/factory_solver.h +++ b/include/core/solver/factory_solver.h @@ -214,7 +214,7 @@ typedef Factory<SolverManager, const ParamsServer&> FactorySolver; template<> -inline std::string FactorySolver::getClass() +inline std::string FactorySolver::getClass() const { return "FactorySolver"; } diff --git a/include/core/tree_manager/factory_tree_manager.h b/include/core/tree_manager/factory_tree_manager.h index 91f2b9531d91bdad952760a0670ceece4240e86a..a56dae93e138c0f99cc51f73884a50be9f252707 100644 --- a/include/core/tree_manager/factory_tree_manager.h +++ b/include/core/tree_manager/factory_tree_manager.h @@ -23,7 +23,7 @@ struct ParamsTreeManagerBase; typedef Factory<ParamsTreeManagerBase, const std::string&> FactoryParamsTreeManager; template<> -inline std::string FactoryParamsTreeManager::getClass() +inline std::string FactoryParamsTreeManager::getClass() const { return "FactoryParamsTreeManager"; } @@ -33,7 +33,7 @@ typedef Factory<TreeManagerBase, const std::string&, const ParamsTreeManagerBasePtr> FactoryTreeManager; template<> -inline std::string FactoryTreeManager::getClass() +inline std::string FactoryTreeManager::getClass() const { return "FactoryTreeManager"; } @@ -46,7 +46,7 @@ typedef Factory<TreeManagerBase, const std::string&, const ParamsServer&> AutoConfFactoryTreeManager; template<> -inline std::string AutoConfFactoryTreeManager::getClass() +inline std::string AutoConfFactoryTreeManager::getClass() const { return "AutoConfFactoryTreeManager"; }