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
65f57bcd
Commit
65f57bcd
authored
Jun 29, 2023
by
wangdawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
radio
parent
ceb29187
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
adjust_ppk.cpp
libs/locate_system/adjust_ppk_by_locate/adjust_ppk.cpp
+4
-5
adjust_ppk.h
libs/locate_system/adjust_ppk_by_locate/adjust_ppk.h
+1
-1
No files found.
libs/locate_system/adjust_ppk_by_locate/adjust_ppk.cpp
View file @
65f57bcd
...
...
@@ -100,7 +100,7 @@ void AdjustPPK::ReadBag(const string &bagPath)
Vector3d
AdjustPPK
::
ReadCenter
(
const
string
&
taskName
)
{
Vector3d
center
;
string
centerPath
=
mapDir_
+
taskName
+
"/"
+
taskName
+
"meshes.center.txt"
;
string
centerPath
=
mapDir_
+
"/"
+
taskName
+
"/"
+
taskName
+
"meshes.center.txt"
;
std
::
ifstream
ifs
(
centerPath
);
string
line
;
vector
<
string
>
line_vec
;
...
...
@@ -530,7 +530,7 @@ bool AdjustPPK::LocateCloud(const CloudInfoForMatch &cloudInfo)
double
avgGridCnt
=
currMatcher_
->
AreaAvgGridCnt
(
guess
.
translation
());
if
(
avgGridCnt
<
20000
){
LOG
(
INFO
)
<<
"avgGridCnt < 20000! "
<<
"avgGridCnt: "
<<
avgGridCnt
;
CloseToPPK
();
CloseToPPK
(
0.5
);
return
false
;
}
ofs
<<
setprecision
(
16
)
<<
cloudInfo
.
timestamp
<<
", "
<<
guess
.
translation
().
x
()
...
...
@@ -542,7 +542,7 @@ bool AdjustPPK::LocateCloud(const CloudInfoForMatch &cloudInfo)
guessPose
.
precision_type
=
MATCH_PRECISION_INIT
;
currMatcher_
->
MatchPointCloud
(
cloudInfo
.
frame
,
guessPose
,
finalGnssPose
,
finalPose
);
mapPose_
=
finalPose
.
cast
<
double
>
();
CloseToPPK
();
CloseToPPK
(
0.1
);
skipCnt_
=
5
;
return
true
;
}
...
...
@@ -677,10 +677,9 @@ bool AdjustPPK::LoadMesh(const string &streamPath, boost::shared_ptr<VoxelMapMat
return
true
;
}
void
AdjustPPK
::
CloseToPPK
()
void
AdjustPPK
::
CloseToPPK
(
double
radio
)
{
if
(
ppkIndex_
>
0
){
double
radio
=
0.9
;
const
auto
&
localPPK
=
localPoseVec_
.
at
(
ppkIndex_
-
1
);
mapPose_
.
translation
()
=
localPPK
.
pose
.
translation
()
*
radio
+
...
...
libs/locate_system/adjust_ppk_by_locate/adjust_ppk.h
View file @
65f57bcd
...
...
@@ -90,7 +90,7 @@ private:
bool
LoadMesh
(
const
string
&
streamPath
,
boost
::
shared_ptr
<
VoxelMapMatcher
>
&
matcher
);
void
CloseToPPK
();
void
CloseToPPK
(
double
radio
);
private
:
string
ieBaseDir_
;
...
...
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