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
f03ac3b3
Commit
f03ac3b3
authored
May 23, 2023
by
wangdawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
328d2f96
Pipeline
#1534
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
adjust_ppk.cpp
libs/locate_system/adjust_ppk_by_locate/adjust_ppk.cpp
+4
-5
No files found.
libs/locate_system/adjust_ppk_by_locate/adjust_ppk.cpp
View file @
f03ac3b3
...
...
@@ -177,7 +177,9 @@ void AdjustPPK::CalLocalPose()
{
localPoseVec_
.
reserve
(
rawData_
.
size
());
LocalCartesian
proj
(
center_
.
x
(),
center_
.
y
(),
center_
.
z
());
std
::
ofstream
ofs
(
ieBaseDir_
+
"/LocalPPK.txt"
,
ios
::
app
);
for
(
const
IERawData
&
rawPPK
:
rawData_
){
// LOG_EVERY_N(INFO, 1000) << "rawPPK.unix_time: " << rawPPK.unix_time;
IsometryData
localPose
;
proj
.
Forward
(
rawPPK
.
latitude
,
rawPPK
.
longitude
,
rawPPK
.
height
,
localPose
.
pose
.
translation
().
x
(),
...
...
@@ -186,11 +188,10 @@ void AdjustPPK::CalLocalPose()
localPose
.
pose
.
linear
()
=
rawPPK
.
getOrientation
();
localPose
.
timestamp
=
rawPPK
.
unix_time
;
localPoseVec_
.
emplace_back
(
localPose
);
std
::
ofstream
ofs
(
ieBaseDir_
+
"/LocalPPK.txt"
,
ios
::
app
);
ofs
<<
setprecision
(
16
)
<<
localPose
.
timestamp
<<
", "
<<
localPose
.
pose
.
translation
().
x
()
<<
", "
<<
localPose
.
pose
.
translation
().
y
()
<<
", "
<<
localPose
.
pose
.
translation
().
z
()
<<
endl
;
ofs
.
close
();
}
ofs
.
close
();
LOG
(
INFO
)
<<
"localPoseVec_.size(): "
<<
localPoseVec_
.
size
();
}
...
...
@@ -201,7 +202,6 @@ void AdjustPPK::CalPPKPeriod()
period
.
meshId
=
0
;
period
.
period
.
reserve
(
10000
);
for
(
const
IERawData
&
rawPPK
:
rawData_
){
LOG_EVERY_N
(
INFO
,
10000
)
<<
"rawPPK.unix_time: "
<<
rawPPK
.
unix_time
;
ulong
meshId
=
GetMeshFromPosition
(
rawPPK
.
longitude
,
rawPPK
.
latitude
);
if
(
meshId
!=
period
.
meshId
){
if
(
period
.
period
.
size
()){
...
...
@@ -277,6 +277,7 @@ bool AdjustPPK::LocateCloud(const CloudInfoForMatch &cloudInfo)
static
uint32_t
cnt
=
0
;
bool
success
=
true
;
GuessPose
guessPose
;
static
std
::
ofstream
ofs
(
ieBaseDir_
+
"/CloudPredictPose.txt"
,
ios
::
app
);
if
(
0
==
cnt
){
mapPose
=
cloudInfo
.
filterPoseInfo
.
filterPose
.
cast
<
float
>
();
}
...
...
@@ -296,10 +297,8 @@ bool AdjustPPK::LocateCloud(const CloudInfoForMatch &cloudInfo)
currMatcher_
->
loadArea
(
mapPose
.
translation
().
cast
<
double
>
());
}
success
=
currMatcher_
->
MatchPointCloud
(
cloudInfo
.
frame
,
guessPose
,
finalGnssPose
,
mapPose
);
std
::
ofstream
ofs
(
ieBaseDir_
+
"/CloudPredictPose.txt"
,
ios
::
app
);
ofs
<<
setprecision
(
16
)
<<
cloudInfo
.
timestamp
<<
", "
<<
mapPose
.
translation
().
x
()
<<
", "
<<
mapPose
.
translation
().
y
()
<<
", "
<<
mapPose
.
translation
().
z
()
<<
endl
;
ofs
.
close
();
}
cnt
++
;
...
...
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