Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
laser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
plugins
laser
Commits
4457f124
Commit
4457f124
authored
5 years ago
by
Joaquim Casals Buñuel
Browse files
Options
Downloads
Plain Diff
Merge branch '14-adapt-to-std-set-and-std-map-instead-of-std-list-in-wolf-nodes' into devel
parents
a3bc4429
1bee20aa
No related branches found
No related tags found
3 merge requests
!30
Release after RAL
,
!29
After 2nd RAL submission
,
!20
WIP: Resolve "Adapt to std::set and std::map instead of std::list in wolf nodes"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/processor/processor_closeloop_icp.cpp
+2
-2
2 additions, 2 deletions
src/processor/processor_closeloop_icp.cpp
test/gtest_processor_odom_icp.cpp
+4
-3
4 additions, 3 deletions
test/gtest_processor_odom_icp.cpp
with
6 additions
and
5 deletions
src/processor/processor_closeloop_icp.cpp
+
2
−
2
View file @
4457f124
...
...
@@ -141,11 +141,11 @@ FrameBasePtrList ProcessorCloseloopIcp::selectCandidates(FrameBasePtr _keyframe_
{
FrameBasePtrList
candidates
;
int
key_frames_counter
=
0
;
const
auto
&
f
ra
mes
=
this
->
getProblem
()
->
getTrajectory
()
->
getFrameList
()
;
const
auto
&
t
ra
jectory
=
getProblem
()
->
getTrajectory
();
//Consider only key_frames from 1 to n - match_past_key_frame_
// std::copy_if(frames.begin(), frames.end(), std::back_inserter(candidates), [&](FrameBasePtr _frame) { if(_frame->isKey()) {key_frames_counter++; return (key_frames_counter % match_past_key_frame_ == 0);
// }else{ return false;};});
for
(
auto
it
=
f
ra
mes
.
rbegin
();
it
!=
f
ra
mes
.
rend
();
it
++
){
for
(
auto
it
=
t
ra
jectory
->
rbegin
();
it
!=
t
ra
jectory
->
rend
();
it
++
){
if
((
*
it
)
->
isKey
()){
// WOLF_DEBUG("TIMESTAMP KEY FRAME ", (*it)->id(), " ", (*it)->getTimeStamp());
key_frames_counter
++
;
...
...
This diff is collapsed.
Click to expand it.
test/gtest_processor_odom_icp.cpp
+
4
−
3
View file @
4457f124
...
...
@@ -125,7 +125,8 @@ TEST_F(ProcessorOdomIcp_Test, full)
CaptureLaser2dPtr
scan
=
std
::
make_shared
<
CaptureLaser2d
>
(
t
,
lidar
,
ranges
);
scan
->
process
();
F
=
problem
->
getLastFrame
();
// F = problem->getLastFrame();
F
=
processor
->
getLast
()
->
getFrame
();
ASSERT_MATRIX_APPROX
(
F
->
getState
().
vector
(
"PO"
),
x0
.
vector
(
"PO"
),
1e-6
);
...
...
@@ -158,7 +159,7 @@ TEST_F(ProcessorOdomIcp_Test, solve)
t
+=
1.0
;
}
for
(
auto
F
:
problem
->
getTrajectory
()
->
getFrameList
()
)
for
(
auto
F
:
*
problem
->
getTrajectory
())
{
if
(
F
->
isKey
())
F
->
perturb
(
0.5
);
...
...
@@ -167,7 +168,7 @@ TEST_F(ProcessorOdomIcp_Test, solve)
std
::
string
report
=
solver
->
solve
(
SolverManager
::
ReportVerbosity
::
BRIEF
);
WOLF_TRACE
(
report
);
for
(
auto
F
:
problem
->
getTrajectory
()
->
getFrameList
()
)
for
(
auto
F
:
*
problem
->
getTrajectory
())
{
if
(
F
->
isKey
())
{
...
...
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