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

Rename createAutoconf --> create

parent 71b3335d
No related branches found
No related tags found
No related merge requests found
Pipeline #4236 passed
...@@ -32,8 +32,8 @@ namespace wolf { ...@@ -32,8 +32,8 @@ namespace wolf {
* ProcessorClass(const ProcessorParamsClassPtr _params); * ProcessorClass(const ProcessorParamsClassPtr _params);
*/ */
#define WOLF_PROCESSOR_CREATE(ProcessorClass, ProcessorParamsClass) \ #define WOLF_PROCESSOR_CREATE(ProcessorClass, ProcessorParamsClass) \
static ProcessorBasePtr createAutoConf(const std::string& _unique_name, \ static ProcessorBasePtr create(const std::string& _unique_name, \
const ParamsServer& _server) \ const ParamsServer& _server) \
{ \ { \
auto params = std::make_shared<ProcessorParamsClass>(_unique_name, _server); \ auto params = std::make_shared<ProcessorParamsClass>(_unique_name, _server); \
\ \
......
...@@ -188,9 +188,9 @@ inline std::string AutoConfProcessorFactory::getClass() ...@@ -188,9 +188,9 @@ inline std::string AutoConfProcessorFactory::getClass()
} }
#define WOLF_REGISTER_PROCESSOR_AUTO(ProcessorType, ProcessorName) \ #define WOLF_REGISTER_PROCESSOR_AUTO(ProcessorType, ProcessorName) \
namespace{ const bool WOLF_UNUSED ProcessorName##AutoConfRegistered = \ namespace{ const bool WOLF_UNUSED ProcessorName##AutoConfRegistered = \
wolf::AutoConfProcessorFactory::get().registerCreator(ProcessorType, ProcessorName::createAutoConf); } \ wolf::AutoConfProcessorFactory::get().registerCreator(ProcessorType, ProcessorName::create); } \
} /* namespace wolf */ } /* namespace wolf */
......
...@@ -34,7 +34,7 @@ namespace wolf { ...@@ -34,7 +34,7 @@ namespace wolf {
*/ */
#define WOLF_SENSOR_CREATE(SensorClass, IntrinsicsClass, ExtrinsicsSize) \ #define WOLF_SENSOR_CREATE(SensorClass, IntrinsicsClass, ExtrinsicsSize) \
static \ static \
SensorBasePtr createAutoConf(const std::string& _unique_name, const ParamsServer& _server) \ SensorBasePtr create(const std::string& _unique_name, const ParamsServer& _server) \
{ \ { \
Eigen::VectorXs extrinsics = _server.template getParam<Eigen::VectorXs>(_unique_name + "/extrinsic/pose"); \ Eigen::VectorXs extrinsics = _server.template getParam<Eigen::VectorXs>(_unique_name + "/extrinsic/pose"); \
\ \
......
...@@ -233,9 +233,9 @@ inline std::string AutoConfSensorFactory::getClass() ...@@ -233,9 +233,9 @@ inline std::string AutoConfSensorFactory::getClass()
return "AutoConfSensorFactory"; return "AutoConfSensorFactory";
} }
#define WOLF_REGISTER_SENSOR_AUTO(SensorType, SensorName) \ #define WOLF_REGISTER_SENSOR_AUTO(SensorType, SensorName) \
namespace{ const bool WOLF_UNUSED SensorName##AutoConfRegistered = \ namespace{ const bool WOLF_UNUSED SensorName##AutoConfRegistered = \
AutoConfSensorFactory::get().registerCreator(SensorType, SensorName::createAutoConf); } \ AutoConfSensorFactory::get().registerCreator(SensorType, SensorName::create); } \
} /* namespace wolf */ } /* namespace wolf */
......
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