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
d63d152f
Commit
d63d152f
authored
May 31, 2023
by
wangdawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
03b9b75f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
mesharea.cpp
libs/voxel_map/libs/area/mesharea.cpp
+1
-6
No files found.
libs/voxel_map/libs/area/mesharea.cpp
View file @
d63d152f
...
...
@@ -163,7 +163,6 @@ double MeshArea::AreaAvgGridCnt(const Vector3d &pose)
return
false
;
}
double
total
=
0
;
size_t
cnt
=
0
;
Vector2i
shiftedIndexToLoad
=
calShiftedIndex
(
pose
.
x
(),
pose
.
y
());
for
(
unsigned
int
i
=
0
;
i
<
loadNeighbors_
.
size
();
i
++
){
...
...
@@ -172,13 +171,9 @@ double MeshArea::AreaAvgGridCnt(const Vector3d &pose)
if
(
blockContent
.
blockState
==
CurrMesh
&&
blockContent
.
block
->
isLoad
()){
total
+=
blockContent
.
block
->
GetGridSize
();
cnt
++
;
}
}
if
(
0
==
cnt
){
return
0
;
}
return
total
/
cnt
;
return
total
/
loadNeighbors_
.
size
();
}
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