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
6f8e1bf3
Commit
6f8e1bf3
authored
May 24, 2023
by
wangdawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
c7f0a9e2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
adjust_ppk.cpp
libs/locate_system/adjust_ppk_by_locate/adjust_ppk.cpp
+4
-1
adjust_ppk.h
libs/locate_system/adjust_ppk_by_locate/adjust_ppk.h
+3
-3
convert.cc
libs/locate_system/adjust_ppk_by_locate/convert.cc
+1
-1
No files found.
libs/locate_system/adjust_ppk_by_locate/adjust_ppk.cpp
View file @
6f8e1bf3
...
...
@@ -58,7 +58,6 @@ void AdjustPPK::ReadBag(const string &bagPath)
const
rosbag
::
MessageInstance
&
m
=
*
viewIterator
;
// LOG_EVERY_N(INFO, 1) << setprecision(15) << "m.getTime(): " << m.getTime().toSec();
if
(
!
m
.
isType
<
pandar_msgs
::
PandarScan
>
()){
viewIterator
++
;
continue
;
}
PPointCloud
cloud
;
...
...
@@ -307,6 +306,10 @@ bool AdjustPPK::LocateCloud(const CloudInfoForMatch &cloudInfo)
if
(
cnt
%
10
!=
0
){
mapPose
=
mapPose
*
cloudInfo
.
filterPoseInfo
.
increasePose
.
cast
<
float
>
();
}
else
{
Quaterniond
q
(
mapPose
.
linear
());
Vector3d
rpy
=
RotationQuaternionToEulerVector
(
q
);
LOG
(
INFO
)
<<
"guessPose: "
<<
mapPose
.
translation
().
transpose
()
<<
" rpy: "
<<
rpy
.
transpose
();
guessPose
.
map_point
=
mapPose
.
cast
<
double
>
();
auto
increaseRpy
=
RotationQuaternionToEulerVector
(
Quaterniond
(
cloudInfo
.
filterPoseInfo
.
increasePose
.
linear
()));
...
...
libs/locate_system/adjust_ppk_by_locate/adjust_ppk.h
View file @
6f8e1bf3
...
...
@@ -20,9 +20,9 @@ struct PPKPeriod{
double
endTime
=
-
1
;
int
InPeriod
(
double
timestamp
){
// LOG(INFO
) << setprecision(15) << "timestamp " << timestamp
//
<< " startTime " << startTime
//
<< " endTime " << endTime;
LOG_EVERY_N
(
INFO
,
99
)
<<
setprecision
(
15
)
<<
"timestamp "
<<
timestamp
<<
" startTime "
<<
startTime
<<
" endTime "
<<
endTime
;
if
(
timestamp
<
startTime
){
return
-
1
;
}
...
...
libs/locate_system/adjust_ppk_by_locate/convert.cc
View file @
6f8e1bf3
...
...
@@ -205,7 +205,7 @@ Convert::Convert(const std::string &firetimeFile, const std::string &correctionF
bool
Convert
::
processScan
(
const
pandar_msgs
::
PandarScan
::
ConstPtr
&
scanMsg
,
PPointCloud
&
pc
)
{
LOG
(
INFO
)
<<
"scanMsg->packets.size(): "
<<
scanMsg
->
packets
.
size
();
//
LOG(INFO) << "scanMsg->packets.size(): " << scanMsg->packets.size();
if
(
0
==
scanMsg
->
packets
.
size
()){
return
false
;
}
...
...
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