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

Remove FrameFactory and its registering macro

parent 4830a058
No related branches found
No related tags found
1 merge request!316Arrange factories
...@@ -344,20 +344,6 @@ inline std::string LandmarkFactory::getClass() ...@@ -344,20 +344,6 @@ inline std::string LandmarkFactory::getClass()
return "LandmarkFactory"; return "LandmarkFactory";
} }
// Frames
class TimeStamp;
} // namespace wolf
#include "core/frame/frame_base.h"
namespace wolf{
typedef Factory<FrameBase, const FrameType&, const TimeStamp&, const Eigen::VectorXs&> FrameFactory;
template<>
inline std::string FrameFactory::getClass()
{
return "FrameFactory";
}
//#define UNUSED(x) (void)x;
//#define UNUSED(x) (void)(sizeof((x), 0));
#ifdef __GNUC__ #ifdef __GNUC__
#define WOLF_UNUSED __attribute__((used)) #define WOLF_UNUSED __attribute__((used))
...@@ -372,10 +358,6 @@ inline std::string FrameFactory::getClass() ...@@ -372,10 +358,6 @@ inline std::string FrameFactory::getClass()
# define UNUSED(x) x # define UNUSED(x) x
#endif #endif
#define WOLF_REGISTER_FRAME(FrameType, FrameName) \
namespace{ const bool WOLF_UNUSED FrameName##Registered = \
wolf::FrameFactory::get().registerCreator(FrameType, FrameName::create); }\
} /* namespace wolf */ } /* namespace wolf */
#endif /* FACTORY_H_ */ #endif /* FACTORY_H_ */
...@@ -16,6 +16,7 @@ struct IntrinsicsBase; ...@@ -16,6 +16,7 @@ struct IntrinsicsBase;
// wolf // wolf
#include "core/common/factory.h" #include "core/common/factory.h"
#include "core/utils/params_server.hpp"
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