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
376ef0eb
Commit
376ef0eb
authored
Jun 16, 2023
by
wangdawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
config log
parent
5eda41e9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
adjust_ppk.cpp
libs/locate_system/adjust_ppk_by_locate/adjust_ppk.cpp
+2
-1
No files found.
libs/locate_system/adjust_ppk_by_locate/adjust_ppk.cpp
View file @
376ef0eb
...
@@ -112,7 +112,6 @@ Vector3d AdjustPPK::ReadCenter(const string& taskName)
...
@@ -112,7 +112,6 @@ Vector3d AdjustPPK::ReadCenter(const string& taskName)
boost
::
split
(
line_vec
,
line
,
boost
::
is_any_of
(
":"
),
boost
::
token_compress_on
);
boost
::
split
(
line_vec
,
line
,
boost
::
is_any_of
(
":"
),
boost
::
token_compress_on
);
center
.
z
()
=
stof
(
line_vec
.
at
(
1
));
center
.
z
()
=
stof
(
line_vec
.
at
(
1
));
}
}
LOG
(
INFO
)
<<
taskName
<<
" center_: "
<<
center
.
transpose
();
return
center
;
return
center
;
}
}
...
@@ -226,6 +225,7 @@ void AdjustPPK::LoadMapInfo()
...
@@ -226,6 +225,7 @@ void AdjustPPK::LoadMapInfo()
for
(;
task_iter
!=
task_end_iter
;
task_iter
++
)
{
for
(;
task_iter
!=
task_end_iter
;
task_iter
++
)
{
string
taskName
=
task_iter
->
path
().
filename
().
string
();
string
taskName
=
task_iter
->
path
().
filename
().
string
();
auto
taskCenter
=
ReadCenter
(
taskName
);
auto
taskCenter
=
ReadCenter
(
taskName
);
LOG
(
INFO
)
<<
taskName
<<
" center_: "
<<
taskCenter
.
transpose
();
string
pcdDir
=
task_iter
->
path
().
string
()
+
"/pcd_cart"
;
string
pcdDir
=
task_iter
->
path
().
string
()
+
"/pcd_cart"
;
if
(
is_directory
(
pcdDir
)){
if
(
is_directory
(
pcdDir
)){
directory_iterator
pcd_iter
(
pcdDir
);
directory_iterator
pcd_iter
(
pcdDir
);
...
@@ -236,6 +236,7 @@ void AdjustPPK::LoadMapInfo()
...
@@ -236,6 +236,7 @@ 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
;
PCDPathInfo
pcdPathInfo
;
PCDPathInfo
pcdPathInfo
;
pcdPathInfo
.
pcdPath
=
pcd_iter
->
path
().
string
();
pcdPathInfo
.
pcdPath
=
pcd_iter
->
path
().
string
();
if
(
baseTaskName_
!=
taskName
){
if
(
baseTaskName_
!=
taskName
){
...
...
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