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
9ff719b6
Commit
9ff719b6
authored
May 30, 2023
by
wangdawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
72d299c1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
adjust_ppk.cpp
libs/locate_system/adjust_ppk_by_locate/adjust_ppk.cpp
+6
-2
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 @
9ff719b6
...
...
@@ -34,6 +34,10 @@ AdjustPPK::AdjustPPK(const string &ieBaseDir, const string &mapDir)
calib_
.
translation
()
=
m
.
block
(
0
,
3
,
3
,
1
);
calib_
.
linear
()
=
m
.
block
(
0
,
0
,
3
,
3
);
Quaterniond
q
(
calib_
.
linear
());
Vector3d
rpy
=
RotationQuaternionToEulerVector
(
q
);
LOG
(
INFO
)
<<
"calib_: "
<<
calib_
.
translation
().
transpose
()
<<
" rpy: "
<<
rpy
.
transpose
();
boost
::
thread
trd
(
boost
::
bind
(
&
AdjustPPK
::
LoadMap
,
this
));
}
...
...
@@ -109,7 +113,7 @@ void AdjustPPK::OnReceivedCloud(const PPointCloud &cloud)
if
(
cloudPacket
.
timestamp
>
1683806268.156870
){
exit
(
0
);
}
pcl
::
io
::
savePCDFileBinary
(
ieBaseDir_
+
"/"
+
to_string
(
cloudPacket
.
timestamp
)
+
".pcd"
,
cloud
);
pcl
::
io
::
savePCDFileBinary
(
ieBaseDir_
+
"/"
+
to_string
(
cloudPacket
.
timestamp
)
+
"
_raw
.pcd"
,
cloud
);
// exit(0);
for
(
const
auto
&
p
:
cloud
){
PointInter
point
;
...
...
@@ -258,7 +262,7 @@ PointCloudInter::Ptr AdjustPPK::GetBaseFrame(
}
bool
AdjustPPK
::
Undisort
(
CloudPacket
&
rawFrame
,
CloudInfoForMatch
&
cloudInfo
)
const
CloudPacket
&
rawFrame
,
CloudInfoForMatch
&
cloudInfo
)
{
vector
<
IsometryData
>
periodPose
;
periodPose
.
reserve
(
150
);
...
...
libs/locate_system/adjust_ppk_by_locate/adjust_ppk.h
View file @
9ff719b6
...
...
@@ -65,7 +65,7 @@ private:
PointCloudInter
::
Ptr
GetBaseFrame
(
const
CloudPacket
&
cloudData
);
bool
Undisort
(
CloudPacket
&
baseFrame
,
CloudInfoForMatch
&
cloudInfo
);
bool
Undisort
(
const
CloudPacket
&
baseFrame
,
CloudInfoForMatch
&
cloudInfo
);
bool
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