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
868a7556
Commit
868a7556
authored
May 31, 2023
by
wangdawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
fda22805
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
adjust_ppk.cpp
libs/locate_system/adjust_ppk_by_locate/adjust_ppk.cpp
+6
-2
blockarea.cpp
libs/voxel_map/libs/area/blockarea.cpp
+2
-0
blockarea.h
libs/voxel_map/libs/area/blockarea.h
+3
-1
No files found.
libs/locate_system/adjust_ppk_by_locate/adjust_ppk.cpp
View file @
868a7556
...
...
@@ -128,7 +128,11 @@ void AdjustPPK::OnReceivedCloud(const PPointCloud &cloud)
// }
// pcl::io::savePCDFileBinary(ieBaseDir_ + "/" + to_string(cloudPacket.timestamp) + "_raw.pcd", cloud);
// exit(0);
for
(
const
auto
&
p
:
cloud
){
for
(
size_t
i
=
0
;
i
<
cloud
.
size
();
i
++
){
if
(
i
%
5
!=
0
){
continue
;
}
const
auto
&
p
=
cloud
.
at
(
i
);
PointInter
point
;
point
.
x
=
p
.
x
;
point
.
y
=
p
.
y
;
...
...
@@ -493,7 +497,7 @@ bool AdjustPPK::LoadMesh(const string &streamPath, boost::shared_ptr<VoxelMapMat
LOG
(
INFO
)
<<
"mesh to load: "
<<
streamPath
;
VoxelMapMatcherOption
option
;
option
.
option
.
filter_resolution
=
1.2
;
option
.
option
.
filter_resolution
=
0.5
;
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/blockarea.cpp
View file @
868a7556
...
...
@@ -81,6 +81,7 @@ void BlockArea::parseBitmapBlock(
{
vector
<
uint32_t
>
activeGridIndexes
=
parseBitMap
(
blockInfo
.
bit_map
(),
blockInfo
.
bit_map_size
());
activeGridSize_
=
activeGridIndexes
.
size
();
vector
<
pair
<
uint32_t
,
uint32_t
>>
shiftedAndFeatureVec
;
distributionVec_
.
reserve
(
activeGridIndexes
.
size
()
*
60
);
hashMap_
.
reserve
(
activeGridIndexes
.
size
()
*
15
);
...
...
@@ -103,6 +104,7 @@ void BlockArea::parseIndexBlock(
const
BlockInfo
&
blockInfo
)
{
uint32_t
gridFeatureIndexSize
=
blockInfo
.
grid_feature_index_size
();
activeGridSize_
=
gridFeatureIndexSize
;
distributionVec_
.
reserve
(
gridFeatureIndexSize
*
60
);
hashMap_
.
reserve
(
gridFeatureIndexSize
*
15
);
vector
<
pair
<
uint32_t
,
uint32_t
>>
shiftedAndFeatureVec
;
...
...
libs/voxel_map/libs/area/blockarea.h
View file @
868a7556
...
...
@@ -69,7 +69,7 @@ public:
}
inline
size_t
GetGridSize
(){
return
hashMap_
.
size
()
;
return
activeGridSize_
;
}
private
:
void
parseBitmapBlock
(
const
BlockInfo
&
blockInfo
);
...
...
@@ -114,6 +114,8 @@ private:
vector
<
double
>
plainParams_
;
bool
plainParamValid_
=
false
;
uint32_t
activeGridSize_
;
};
}
...
...
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