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
f077ff06
Commit
f077ff06
authored
Jun 01, 2023
by
wangdawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v1.0
parent
5945288a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
adjust_ppk.cpp
libs/locate_system/adjust_ppk_by_locate/adjust_ppk.cpp
+3
-1
mesharea.cpp
libs/voxel_map/libs/area/mesharea.cpp
+6
-2
No files found.
libs/locate_system/adjust_ppk_by_locate/adjust_ppk.cpp
View file @
f077ff06
...
...
@@ -253,8 +253,10 @@ void AdjustPPK::CalPPKPeriod()
if
(
period
.
startTime
>
0
){
period
.
endTime
=
rawPPK
.
unix_time
;
period
.
endId
=
i
-
1
;
LOG
(
INFO
)
<<
setprecision
(
15
)
<<
"period.meshId: "
<<
period
.
meshId
<<
" period.startTime: "
<<
period
.
startTime
<<
" period.endId: "
<<
period
.
endId
;
ppkPeriodVec_
.
emplace_back
(
period
);
LOG
(
INFO
)
<<
"period.meshId: "
<<
period
.
meshId
;
}
period
.
startTime
=
rawPPK
.
unix_time
;
period
.
startId
=
i
;
...
...
libs/voxel_map/libs/area/mesharea.cpp
View file @
f077ff06
...
...
@@ -172,9 +172,13 @@ double MeshArea::AreaAvgGridCnt(const Vector3d &pose)
calShiftedIndex
(
pose
.
x
(),
pose
.
y
());
for
(
unsigned
int
i
=
0
;
i
<
checkGridNeighbors_
.
size
();
i
++
){
Vector2i
curr_index
=
shiftedIndexToLoad
+
checkGridNeighbors_
[
i
];
if
(
curr_index
.
x
()
<
0
||
curr_index
.
x
()
>=
rowItemCnt_
||
curr_index
.
y
()
<
0
||
curr_index
.
y
()
>=
colItemCnt_
){
continue
;
}
const
BlockContent
&
blockContent
=
blockAreaTable_
[
curr_index
.
x
()][
curr_index
.
y
()];
if
(
blockContent
.
blockState
==
CurrMesh
&&
blockContent
.
block
->
isLoad
()){
if
(
blockContent
.
blockState
==
CurrMesh
&&
blockContent
.
block
&&
blockContent
.
block
->
isLoad
()){
total
+=
blockContent
.
block
->
GetGridSize
();
}
}
...
...
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