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
7ed19312
Commit
7ed19312
authored
5 years ago
by
Joaquim Casals Buñuel
Browse files
Options
Downloads
Patches
Plain Diff
Fix code format
parent
3949107a
No related branches found
No related tags found
1 merge request
!346
Resolve "Frame/Capture/Feature/Landmark Other as list/vectors in FactorBase"
Pipeline
#5061
passed
5 years ago
Changes
2
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/core/utils/check_log.hpp
+7
-7
7 additions, 7 deletions
include/core/utils/check_log.hpp
src/problem/problem.cpp
+233
-233
233 additions, 233 deletions
src/problem/problem.cpp
with
240 additions
and
240 deletions
include/core/utils/check_log.hpp
+
7
−
7
View file @
7ed19312
...
@@ -17,11 +17,11 @@ class CheckLog
...
@@ -17,11 +17,11 @@ class CheckLog
is_consistent_
=
true
;
is_consistent_
=
true
;
explanation_
=
""
;
explanation_
=
""
;
}
}
CheckLog
(
bool
consistent
,
std
::
string
explanation
)
CheckLog
(
bool
_
consistent
,
std
::
string
_
explanation
)
{
{
is_consistent_
=
consistent
;
is_consistent_
=
_
consistent
;
if
(
not
consistent
)
if
(
not
_
consistent
)
explanation_
=
explanation
;
explanation_
=
_
explanation
;
else
else
explanation_
=
""
;
explanation_
=
""
;
}
}
...
@@ -31,12 +31,12 @@ class CheckLog
...
@@ -31,12 +31,12 @@ class CheckLog
is_consistent_
=
is_consistent_
and
l
.
is_consistent_
;
is_consistent_
=
is_consistent_
and
l
.
is_consistent_
;
explanation_
=
explanation_
+
l
.
explanation_
;
explanation_
=
explanation_
+
l
.
explanation_
;
}
}
void
addAssertion
(
bool
condition
,
std
::
stringstream
&
stream
)
void
addAssertion
(
bool
_
condition
,
std
::
stringstream
&
_
stream
)
{
{
auto
cl
=
CheckLog
(
condition
,
stream
.
str
());
auto
cl
=
CheckLog
(
_
condition
,
_
stream
.
str
());
this
->
compose
(
cl
);
this
->
compose
(
cl
);
// Clear inconsistency_explanation
// Clear inconsistency_explanation
std
::
stringstream
().
swap
(
stream
);
std
::
stringstream
().
swap
(
_
stream
);
}
}
};
};
}
// namespace wolf
}
// namespace wolf
...
...
This diff is collapsed.
Click to expand it.
src/problem/problem.cpp
+
233
−
233
View file @
7ed19312
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