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
49c663b9
Commit
49c663b9
authored
May 31, 2023
by
wangdawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
aa88961b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
10 deletions
+7
-10
adjust_ppk.cpp
libs/locate_system/adjust_ppk_by_locate/adjust_ppk.cpp
+1
-1
mesharea.cpp
libs/voxel_map/libs/area/mesharea.cpp
+6
-9
No files found.
libs/locate_system/adjust_ppk_by_locate/adjust_ppk.cpp
View file @
49c663b9
...
...
@@ -490,7 +490,7 @@ bool AdjustPPK::LoadMesh(const string &streamPath, boost::shared_ptr<VoxelMapMat
LOG
(
INFO
)
<<
"mesh to load: "
<<
streamPath
;
VoxelMapMatcherOption
option
;
option
.
option
.
filter_resolution
=
0.8
;
option
.
option
.
filter_resolution
=
1.2
;
option
.
option
.
cloud_range
=
80
;
option
.
fast_option
.
accepted_score
=
0.4
;
option
.
fast_option
.
accepted_low_score
=
0.5
;
...
...
libs/voxel_map/libs/area/mesharea.cpp
View file @
49c663b9
...
...
@@ -160,20 +160,17 @@ void MeshArea::backendFunc(uint8_t type, Vector2d point)
double
MeshArea
::
AreaAvgGridCnt
(
const
Vector3d
&
pose
)
{
if
(
!
inited_
){
return
false
;
return
0
;
}
double
total
=
0
;
Vector2i
shiftedIndexToLoad
=
calShiftedIndex
(
pose
.
x
(),
pose
.
y
());
for
(
unsigned
int
i
=
0
;
i
<
loadNeighbors_
.
size
();
i
++
){
Vector2i
curr_index
=
shiftedIndexToLoad
+
loadNeighbors_
[
i
];
const
BlockContent
&
blockContent
=
blockAreaTable_
[
curr_index
.
x
()][
curr_index
.
y
()];
if
(
blockContent
.
blockState
==
CurrMesh
&&
blockContent
.
block
->
isLoad
()){
total
+=
blockContent
.
block
->
GetGridSize
();
}
const
BlockContent
&
blockContent
=
blockAreaTable_
[
shiftedIndexToLoad
.
x
()][
shiftedIndexToLoad
.
y
()];
if
(
blockContent
.
blockState
==
CurrMesh
&&
blockContent
.
block
->
isLoad
()){
total
=
blockContent
.
block
->
GetGridSize
();
}
return
total
/
loadNeighbors_
.
size
()
;
return
total
;
}
void
MeshArea
::
loadArea
(
const
Vector2d
&
bl
)
...
...
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