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
4e7489fb
You need to sign in or sign up before continuing.
Commit
4e7489fb
authored
5 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Add SolverType to solver registration macro
parent
646fc46d
No related branches found
No related tags found
No related merge requests found
Pipeline
#4255
passed
5 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/core/solver/solver_factory.h
+2
-2
2 additions, 2 deletions
include/core/solver/solver_factory.h
src/ceres_wrapper/ceres_manager.cpp
+1
-1
1 addition, 1 deletion
src/ceres_wrapper/ceres_manager.cpp
with
3 additions
and
3 deletions
include/core/solver/solver_factory.h
+
2
−
2
View file @
4e7489fb
...
@@ -219,9 +219,9 @@ inline std::string SolverFactory::getClass()
...
@@ -219,9 +219,9 @@ inline std::string SolverFactory::getClass()
return
"SolverFactory"
;
return
"SolverFactory"
;
}
}
#define WOLF_REGISTER_SOLVER(SolverName) \
#define WOLF_REGISTER_SOLVER(
SolverType,
SolverName) \
namespace{ const bool WOLF_UNUSED SolverName##Registered = \
namespace{ const bool WOLF_UNUSED SolverName##Registered = \
wolf::SolverFactory::get().registerCreator(
"
Solver
"
, SolverName::create); } \
wolf::SolverFactory::get().registerCreator(Solver
Type
, SolverName::create); } \
}
/* namespace wolf */
}
/* namespace wolf */
...
...
This diff is collapsed.
Click to expand it.
src/ceres_wrapper/ceres_manager.cpp
+
1
−
1
View file @
4e7489fb
...
@@ -444,6 +444,6 @@ void CeresManager::check()
...
@@ -444,6 +444,6 @@ void CeresManager::check()
}
// namespace wolf
}
// namespace wolf
#include
"core/solver/solver_factory.h"
#include
"core/solver/solver_factory.h"
namespace
wolf
{
namespace
wolf
{
WOLF_REGISTER_SOLVER
(
CeresManager
)
WOLF_REGISTER_SOLVER
(
"CERES"
,
CeresManager
)
}
// 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