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
95459e7c
Commit
95459e7c
authored
6 years ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
private constraint and localparam for wrappers, getters added
parent
5a9ee70f
No related branches found
No related tags found
1 merge request
!216
StateBlocks notifications
Pipeline
#2204
failed
6 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/ceres_wrapper/cost_function_wrapper.h
+11
-1
11 additions, 1 deletion
src/ceres_wrapper/cost_function_wrapper.h
src/ceres_wrapper/local_parametrization_wrapper.h
+7
-0
7 additions, 0 deletions
src/ceres_wrapper/local_parametrization_wrapper.h
with
18 additions
and
1 deletion
src/ceres_wrapper/cost_function_wrapper.h
+
11
−
1
View file @
95459e7c
...
...
@@ -17,14 +17,19 @@ WOLF_PTR_TYPEDEFS(CostFunctionWrapper);
class
CostFunctionWrapper
:
public
ceres
::
CostFunction
{
public:
private:
ConstraintBasePtr
constraint_ptr_
;
public:
CostFunctionWrapper
(
ConstraintBasePtr
_constraint_ptr
);
virtual
~
CostFunctionWrapper
();
virtual
bool
Evaluate
(
const
double
*
const
*
parameters
,
double
*
residuals
,
double
**
jacobians
)
const
;
ConstraintBasePtr
getConstraintPtr
()
const
;
};
inline
CostFunctionWrapper
::
CostFunctionWrapper
(
ConstraintBasePtr
_constraint_ptr
)
:
...
...
@@ -44,6 +49,11 @@ inline bool CostFunctionWrapper::Evaluate(const double* const * parameters, doub
return
constraint_ptr_
->
evaluate
(
parameters
,
residuals
,
jacobians
);
}
inline
ConstraintBasePtr
CostFunctionWrapper
::
getConstraintPtr
()
const
{
return
constraint_ptr_
;
}
}
// namespace wolf
...
...
This diff is collapsed.
Click to expand it.
src/ceres_wrapper/local_parametrization_wrapper.h
+
7
−
0
View file @
95459e7c
...
...
@@ -30,6 +30,8 @@ class LocalParametrizationWrapper : public ceres::LocalParameterization
virtual
int
GlobalSize
()
const
;
virtual
int
LocalSize
()
const
;
LocalParametrizationBasePtr
getLocalParametrizationPtr
()
const
;
};
using
LocalParametrizationWrapperPtr
=
std
::
shared_ptr
<
LocalParametrizationWrapper
>
;
...
...
@@ -55,6 +57,11 @@ inline int LocalParametrizationWrapper::LocalSize() const
return
local_parametrization_ptr_
->
getLocalSize
();
}
inline
LocalParametrizationBasePtr
LocalParametrizationWrapper
::
getLocalParametrizationPtr
()
const
{
return
local_parametrization_ptr_
;
}
}
// namespace wolf
#endif
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