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
4b609458
Commit
4b609458
authored
5 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Move params factories to sensor_base and processor_base
parent
a37757f8
No related branches found
No related tags found
1 merge request
!316
Arrange factories
Pipeline
#4239
passed
5 years ago
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/core/common/factory.h
+0
-20
0 additions, 20 deletions
include/core/common/factory.h
include/core/processor/processor_factory.h
+11
-0
11 additions, 0 deletions
include/core/processor/processor_factory.h
include/core/sensor/sensor_factory.h
+11
-0
11 additions, 0 deletions
include/core/sensor/sensor_factory.h
with
22 additions
and
20 deletions
include/core/common/factory.h
+
0
−
20
View file @
4b609458
...
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
include/core/processor/processor_factory.h
+
11
−
0
View file @
4b609458
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
include/core/sensor/sensor_factory.h
+
11
−
0
View file @
4b609458
...
...
@@ -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
;
...
...
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