Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
localize_for_ppk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangdawei
localize_for_ppk
Commits
7330a65c
Commit
7330a65c
authored
May 31, 2023
by
wangdawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
5002d792
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
localize_ppk.cpp
apps/localize_ppk.cpp
+6
-6
fast_voxel_matcher.cc
libs/localize/voxel_map/fast_voxel_matcher.cc
+3
-3
No files found.
apps/localize_ppk.cpp
View file @
7330a65c
...
...
@@ -68,15 +68,15 @@ int main(int argc, char *argv[])
for
(;
bag_iter
!=
bag_end_iter
;
bag_iter
++
)
{
if
(
bag_iter
->
path
().
extension
().
string
()
==
".bag"
){
LOG
(
INFO
)
<<
"bag found: "
<<
bag_iter
->
path
().
string
();
Timer
::
Evaluate
(
[
&
,
nullptr
]()
{
adjustPPK
.
ReadBag
(
bag_iter
->
path
().
string
()
);
},
"1 ReadBag"
)
;
auto
start
=
std
::
chrono
::
high_resolution_clock
::
now
();
adjustPPK
.
ReadBag
(
bag_iter
->
path
().
string
());
auto
end
=
std
::
chrono
::
high_resolution_clock
::
now
(
);
auto
time_used
=
std
::
chrono
::
duration_cast
<
std
::
chrono
::
duration
<
double
>>
(
end
-
start
).
count
()
*
1000
;
LOG
(
INFO
)
<<
"ReadBag time_used "
<<
time_used
;
break
;
}
}
Timer
::
PrintAll
();
return
0
;
}
libs/localize/voxel_map/fast_voxel_matcher.cc
View file @
7330a65c
...
...
@@ -383,9 +383,9 @@ void FastVoxelMatcher::ScoreCandidates(const VoxelMap &voxel_map,
no_map_cnt
++
;
}
}
LOG
(
INFO
)
<<
"search_depth: "
<<
candidates
->
front
().
search_depth
<<
" grid_indexes: "
<<
candidates
->
front
().
scan
->
grid_indexes
.
size
()
<<
", no_map_cnt: "
<<
no_map_cnt
;
//
LOG(INFO) << "search_depth: " << candidates->front().search_depth
//
<< " grid_indexes: " << candidates->front().scan->grid_indexes.size()
//
<< ", no_map_cnt: " << no_map_cnt;
}
if
(
0
!=
no_map_cnt
)
{
float
multi
=
(
float
)
candidates
->
front
().
scan
->
grid_indexes
.
size
()
/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment