Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
wolf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile_robotics
wolf_projects
wolf_lib
wolf
Commits
a37757f8
Commit
a37757f8
authored
5 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Remove FrameFactory and its registering macro
parent
4830a058
No related branches found
Branches containing commit
No related tags found
1 merge request
!316
Arrange factories
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/core/common/factory.h
+0
-18
0 additions, 18 deletions
include/core/common/factory.h
include/core/sensor/sensor_factory.h
+1
-0
1 addition, 0 deletions
include/core/sensor/sensor_factory.h
with
1 addition
and
18 deletions
include/core/common/factory.h
+
0
−
18
View file @
a37757f8
...
@@ -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_ */
This diff is collapsed.
Click to expand it.
include/core/sensor/sensor_factory.h
+
1
−
0
View file @
a37757f8
...
@@ -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
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment