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
3bd95482
Commit
3bd95482
authored
Jun 03, 2023
by
wangdawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
map dir
parent
8eb8dd5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
dispatch.cpp
libs/voxel_map/libs/dispatch/dispatch.cpp
+5
-1
No files found.
libs/voxel_map/libs/dispatch/dispatch.cpp
View file @
3bd95482
...
...
@@ -48,7 +48,7 @@ void Dispatch::configOffset()
Vector3d
totalPosi
=
Vector3d
::
Zero
();
size_t
cnt
=
0
;
for
(
size_t
i
=
0
;
i
<
pointcloud_
->
size
();
i
++
){
if
(
i
>
0
&&
i
%
5
00000
==
0
){
if
(
i
>
0
&&
i
%
10
00000
==
0
){
LOG
(
INFO
)
<<
"totalPosi: "
<<
totalPosi
.
transpose
()
<<
" cnt: "
<<
cnt
;
avgPosiVec
.
push_back
(
totalPosi
/
cnt
);
...
...
@@ -56,6 +56,10 @@ void Dispatch::configOffset()
cnt
=
0
;
}
const
auto
&
point
=
pointcloud_
->
at
(
i
);
if
(
isnanf
(
point
.
x
)
||
isnanf
(
point
.
y
)){
LOG_EVERY_N
(
INFO
,
9999
)
<<
"nan"
;
continue
;
}
totalPosi
.
x
()
+=
point
.
x
;
totalPosi
.
y
()
+=
point
.
y
;
// z += point.z;
...
...
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