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
f040eae6
Commit
f040eae6
authored
May 23, 2023
by
wangdawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
cdfd5fde
Pipeline
#1530
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
14 deletions
+33
-14
adjust_ppk.cpp
libs/locate_system/adjust_ppk_by_locate/adjust_ppk.cpp
+33
-14
No files found.
libs/locate_system/adjust_ppk_by_locate/adjust_ppk.cpp
View file @
f040eae6
...
...
@@ -129,26 +129,45 @@ void AdjustPPK::LoadPPK()
void
AdjustPPK
::
LoadMapInfo
()
{
// string meshDir = mapDir_ + "/mesh";
// if(is_directory(meshDir)){
// directory_iterator mesh_iter(meshDir);
// directory_iterator mesh_end_iter;
// for(; mesh_iter != mesh_end_iter; mesh_iter++) {
// if (!is_directory(mesh_iter->path())){
// continue;
// }
// string meshId = mesh_iter->path().stem().string();
// MashMap meshMap;
// meshMap.pcdPathVec.reserve(10);
// directory_iterator pcd_iter(mesh_iter->path());
// directory_iterator pcd_end_iter;
// for(; pcd_iter != pcd_end_iter; pcd_iter++) {
// if(pcd_iter->path().extension().string() != ".pcd"){
// continue;
// }
// meshMap.pcdPathVec.push_back(pcd_iter->path().string());
// }
// meshVec_.insert(make_pair(ulong(stoi(meshId)), meshMap));
// }
// }
string
meshDir
=
mapDir_
+
"/pcd_cart"
;
if
(
is_directory
(
meshDir
)){
directory_iterator
mesh
_iter
(
meshDir
);
directory_iterator
mesh
_end_iter
;
for
(;
mesh_iter
!=
mesh_end_iter
;
mesh
_iter
++
)
{
if
(
!
is_directory
(
mesh_iter
->
path
())
){
directory_iterator
pcd
_iter
(
meshDir
);
directory_iterator
pcd
_end_iter
;
for
(;
pcd_iter
!=
pcd_end_iter
;
pcd
_iter
++
)
{
if
(
pcd_iter
->
path
().
extension
().
string
()
!=
".pcd"
){
continue
;
}
string
meshId
=
mesh_iter
->
path
().
stem
().
string
();
MashMap
meshMap
;
meshMap
.
pcdPathVec
.
reserve
(
10
);
directory_iterator
pcd_iter
(
mesh_iter
->
path
());
directory_iterator
pcd_end_iter
;
for
(;
pcd_iter
!=
pcd_end_iter
;
pcd_iter
++
)
{
if
(
pcd_iter
->
path
().
extension
().
string
()
!=
".pcd"
){
continue
;
}
auto
fileName
=
pcd_iter
->
path
().
filename
().
string
();
ulong
meshId
=
stoi
(
split_string
(
fileName
,
'_'
).
front
());
if
(
meshVec_
.
find
(
meshId
)
==
meshVec_
.
end
()){
MashMap
meshMap
;
meshMap
.
pcdPathVec
.
push_back
(
pcd_iter
->
path
().
string
());
meshVec_
.
insert
(
make_pair
(
ulong
(
stoi
(
meshId
)),
meshMap
));
}
else
{
meshVec_
.
at
(
meshId
).
pcdPathVec
.
push_back
(
pcd_iter
->
path
().
string
());
}
meshVec_
.
insert
(
make_pair
(
ulong
(
stoi
(
meshId
)),
meshMap
));
}
}
LOG
(
INFO
)
<<
"meshVec_.size(): "
<<
meshVec_
.
size
();
...
...
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