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
3d250dfc
Commit
3d250dfc
authored
May 25, 2023
by
wangdawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
630406e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
adjust_ppk.cpp
libs/locate_system/adjust_ppk_by_locate/adjust_ppk.cpp
+8
-3
No files found.
libs/locate_system/adjust_ppk_by_locate/adjust_ppk.cpp
View file @
3d250dfc
...
...
@@ -18,8 +18,8 @@ AdjustPPK::AdjustPPK(const string &ieBaseDir, const string &mapDir)
CalPPKPeriod
();
std
::
ofstream
ofs
(
ieBaseDir_
+
"/CloudPredictPose.txt"
,
ios
::
out
);
ofs
.
close
();
ofs
.
open
(
ieBaseDir_
+
"/LocalPPK.txt"
,
ios
::
out
);
ofs
.
close
();
//
ofs.open(ieBaseDir_ + "/LocalPPK.txt", ios::out);
//
ofs.close();
Matrix4d
m
;
/////////////// cpt ///////////////
m
<<
0.9999146
,
00.0128011
,
00.0026317
,
00.3097527
,
...
...
@@ -186,7 +186,7 @@ void AdjustPPK::CalLocalPose()
{
localPoseVec_
.
reserve
(
rawData_
.
size
());
LocalCartesian
proj
(
center_
.
x
(),
center_
.
y
(),
center_
.
z
());
std
::
ofstream
ofs
(
ieBaseDir_
+
"/LocalPPK.txt"
,
ios
::
app
);
std
::
ofstream
ofs
(
ieBaseDir_
+
"/LocalPPK.txt"
,
ios
::
out
);
for
(
const
IERawData
&
rawPPK
:
rawData_
){
IsometryData
localPose
;
proj
.
Forward
(
rawPPK
.
latitude
,
rawPPK
.
longitude
,
rawPPK
.
height
,
...
...
@@ -265,6 +265,11 @@ void AdjustPPK::Undisort(
cloudInfo
.
filterPoseInfo
.
increasePose
=
increasePose
;
cloudInfo
.
timestamp
=
rawFrame
.
timestamp
;
cloudInfo
.
filterPoseInfo
.
filterPose
=
framePose
;
Quaterniond
q
(
framePose
.
linear
());
Vector3d
rpy
=
RotationQuaternionToEulerVector
(
q
);
LOG
(
INFO
)
<<
"periodPose.size() "
<<
periodPose
.
size
()
<<
" framePose: "
<<
framePose
.
translation
().
transpose
()
<<
" rpy: "
<<
rpy
.
transpose
();
}
bool
AdjustPPK
::
ConfigMap
(
double
timestamp
)
...
...
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