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
2cfb378b
Commit
2cfb378b
authored
Jun 16, 2023
by
wangdawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
meshes.center
parent
3a75f2c8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
adjust_ppk.cpp
libs/locate_system/adjust_ppk_by_locate/adjust_ppk.cpp
+7
-2
No files found.
libs/locate_system/adjust_ppk_by_locate/adjust_ppk.cpp
View file @
2cfb378b
...
@@ -97,7 +97,7 @@ void AdjustPPK::ReadBag(const string &bagPath)
...
@@ -97,7 +97,7 @@ void AdjustPPK::ReadBag(const string &bagPath)
Vector3d
AdjustPPK
::
ReadCenter
(
const
string
&
taskName
)
Vector3d
AdjustPPK
::
ReadCenter
(
const
string
&
taskName
)
{
{
Vector3d
center
;
Vector3d
center
;
string
centerPath
=
mapDir_
+
taskName
+
"/"
+
taskName
+
"meshes.center.txt
.txt
"
;
string
centerPath
=
mapDir_
+
taskName
+
"/"
+
taskName
+
"meshes.center.txt"
;
std
::
ifstream
ifs
(
centerPath
);
std
::
ifstream
ifs
(
centerPath
);
string
line
;
string
line
;
vector
<
string
>
line_vec
;
vector
<
string
>
line_vec
;
...
@@ -232,6 +232,7 @@ void AdjustPPK::LoadMapInfo()
...
@@ -232,6 +232,7 @@ void AdjustPPK::LoadMapInfo()
auto
taskCenter
=
ReadCenter
(
taskName
);
auto
taskCenter
=
ReadCenter
(
taskName
);
LOG
(
INFO
)
<<
taskName
<<
" center_: "
<<
taskCenter
.
transpose
();
LOG
(
INFO
)
<<
taskName
<<
" center_: "
<<
taskCenter
.
transpose
();
string
pcdDir
=
task_iter
->
path
().
string
()
+
"/pcd_cart"
;
string
pcdDir
=
task_iter
->
path
().
string
()
+
"/pcd_cart"
;
string
meshInTask
;
if
(
is_directory
(
pcdDir
)){
if
(
is_directory
(
pcdDir
)){
directory_iterator
pcd_iter
(
pcdDir
);
directory_iterator
pcd_iter
(
pcdDir
);
directory_iterator
pcd_end_iter
;
directory_iterator
pcd_end_iter
;
...
@@ -241,7 +242,10 @@ void AdjustPPK::LoadMapInfo()
...
@@ -241,7 +242,10 @@ void AdjustPPK::LoadMapInfo()
}
}
auto
fileName
=
pcd_iter
->
path
().
filename
().
string
();
auto
fileName
=
pcd_iter
->
path
().
filename
().
string
();
ulong
meshId
=
stoi
(
split_string
(
fileName
,
'_'
).
front
());
ulong
meshId
=
stoi
(
split_string
(
fileName
,
'_'
).
front
());
LOG
(
INFO
)
<<
"meshId: "
<<
meshId
;
if
(
meshInTask
.
size
()){
meshInTask
+=
", "
;
}
meshInTask
+=
to_string
(
meshId
);
PCDPathInfo
pcdPathInfo
;
PCDPathInfo
pcdPathInfo
;
pcdPathInfo
.
pcdPath
=
pcd_iter
->
path
().
string
();
pcdPathInfo
.
pcdPath
=
pcd_iter
->
path
().
string
();
if
(
baseTaskName_
!=
taskName
){
if
(
baseTaskName_
!=
taskName
){
...
@@ -257,6 +261,7 @@ void AdjustPPK::LoadMapInfo()
...
@@ -257,6 +261,7 @@ void AdjustPPK::LoadMapInfo()
}
}
}
}
}
}
LOG
(
INFO
)
<<
"meshId: "
<<
meshInTask
;
}
}
}
}
...
...
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