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
28aa41de
Commit
28aa41de
authored
Jun 19, 2023
by
wangdawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skipCnt by match result
parent
133a399f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
adjust_ppk.cpp
libs/locate_system/adjust_ppk_by_locate/adjust_ppk.cpp
+4
-2
adjust_ppk.h
libs/locate_system/adjust_ppk_by_locate/adjust_ppk.h
+2
-0
No files found.
libs/locate_system/adjust_ppk_by_locate/adjust_ppk.cpp
View file @
28aa41de
...
@@ -42,6 +42,7 @@ AdjustPPK::AdjustPPK(const string &ieBaseDir, const string &mapDir)
...
@@ -42,6 +42,7 @@ AdjustPPK::AdjustPPK(const string &ieBaseDir, const string &mapDir)
LOG
(
INFO
)
<<
"calib_: "
<<
calib_
.
translation
().
transpose
()
LOG
(
INFO
)
<<
"calib_: "
<<
calib_
.
translation
().
transpose
()
<<
" rpy: "
<<
rpy
.
transpose
();
<<
" rpy: "
<<
rpy
.
transpose
();
trd_
.
reset
(
new
boost
::
thread
(
boost
::
bind
(
&
AdjustPPK
::
LoadMap
,
this
)));
trd_
.
reset
(
new
boost
::
thread
(
boost
::
bind
(
&
AdjustPPK
::
LoadMap
,
this
)));
skipCnt_
=
20
;
}
}
AdjustPPK
::~
AdjustPPK
()
AdjustPPK
::~
AdjustPPK
()
...
@@ -85,7 +86,7 @@ void AdjustPPK::ReadBag(const string &bagPath)
...
@@ -85,7 +86,7 @@ void AdjustPPK::ReadBag(const string &bagPath)
continue
;
continue
;
}
}
PPointCloud
cloud
;
PPointCloud
cloud
;
if
(
cloudCnt_
%
20
!=
0
){
if
(
cloudCnt_
%
skipCnt_
!=
0
){
cloudCnt_
++
;
cloudCnt_
++
;
continue
;
continue
;
}
}
...
@@ -534,9 +535,10 @@ bool AdjustPPK::LocateCloud(const CloudInfoForMatch &cloudInfo)
...
@@ -534,9 +535,10 @@ bool AdjustPPK::LocateCloud(const CloudInfoForMatch &cloudInfo)
guessPose
.
precision_type
=
MATCH_PRECISION_INIT
;
guessPose
.
precision_type
=
MATCH_PRECISION_INIT
;
currMatcher_
->
MatchPointCloud
(
cloudInfo
.
frame
,
guessPose
,
finalGnssPose
,
finalPose
);
currMatcher_
->
MatchPointCloud
(
cloudInfo
.
frame
,
guessPose
,
finalGnssPose
,
finalPose
);
mapPose_
=
finalPose
.
cast
<
double
>
();
mapPose_
=
finalPose
.
cast
<
double
>
();
skipCnt_
=
5
;
return
true
;
return
true
;
}
}
skipCnt_
=
20
;
guessPose
.
map_point
=
finalPose
.
cast
<
double
>
();
guessPose
.
map_point
=
finalPose
.
cast
<
double
>
();
guessPose
.
precision_type
=
MATCH_PRECISION_HIGH
;
guessPose
.
precision_type
=
MATCH_PRECISION_HIGH
;
currMatcher_
->
MatchPointCloud
(
cloudInfo
.
frame
,
guessPose
,
finalGnssPose
,
finalPose
);
currMatcher_
->
MatchPointCloud
(
cloudInfo
.
frame
,
guessPose
,
finalGnssPose
,
finalPose
);
...
...
libs/locate_system/adjust_ppk_by_locate/adjust_ppk.h
View file @
28aa41de
...
@@ -129,6 +129,8 @@ private:
...
@@ -129,6 +129,8 @@ private:
bool
requestQuit_
=
false
;
bool
requestQuit_
=
false
;
string
baseTaskName_
;
string
baseTaskName_
;
uint16_t
skipCnt_
;
};
};
}
// end of namespace
}
// end of namespace
...
...
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