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
fe08cf8f
Commit
fe08cf8f
authored
6 years ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
disable changing loss function for now (it's not handled by the solver)
parent
bc95ea83
No related branches found
No related tags found
1 merge request
!274
Resolve "Emplace API inconsistent with ProcessorTrackerFeature/Landmark functions"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/core/factor/factor_base.h
+1
-1
1 addition, 1 deletion
include/core/factor/factor_base.h
src/factor/factor_base.cpp
+5
-14
5 additions, 14 deletions
src/factor/factor_base.cpp
with
6 additions
and
15 deletions
include/core/factor/factor_base.h
+
1
−
1
View file @
fe08cf8f
...
...
@@ -136,7 +136,7 @@ class FactorBase : public NodeBase, public std::enable_shared_from_this<FactorBa
/** \brief Gets the apply loss function flag
*/
void
setApplyLossFunction
(
const
bool
_apply
);
//
void setApplyLossFunction(const bool _apply);
/** \brief Returns a pointer to the frame constrained to
**/
...
...
This diff is collapsed.
Click to expand it.
src/factor/factor_base.cpp
+
5
−
14
View file @
fe08cf8f
...
...
@@ -131,20 +131,11 @@ void FactorBase::setStatus(FactorStatus _status)
status_
=
_status
;
}
void
FactorBase
::
setApplyLossFunction
(
const
bool
_apply
)
{
if
(
apply_loss_function_
!=
_apply
)
{
if
(
getProblem
()
==
nullptr
)
std
::
cout
<<
"factor not linked with Problem, apply loss function change not notified"
<<
std
::
endl
;
else
{
FactorBasePtr
this_c
=
shared_from_this
();
getProblem
()
->
removeFactor
(
this_c
);
getProblem
()
->
addFactor
(
this_c
);
}
}
}
//void FactorBase::setApplyLossFunction(const bool _apply)
//{
// apply_loss_function_ = _apply;
//}
void
FactorBase
::
link
(
FeatureBasePtr
_ftr_ptr
)
{
if
(
this
->
getFeature
()
!=
_ftr_ptr
)
...
...
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