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
80c27e72
Commit
80c27e72
authored
May 25, 2023
by
wangdawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
c83adb5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
convert.cc
libs/locate_system/adjust_ppk_by_locate/convert.cc
+6
-6
No files found.
libs/locate_system/adjust_ppk_by_locate/convert.cc
View file @
80c27e72
...
@@ -1266,13 +1266,13 @@ void Convert::calcPointXYZIT(const pandar_msgs::PandarPacket &packet, int cursor
...
@@ -1266,13 +1266,13 @@ void Convert::calcPointXYZIT(const pandar_msgs::PandarPacket &packet, int cursor
}
else
{
}
else
{
point_index
=
(
u16Azimuth
-
start_angle_
)
/
m_iAngleSize
*
m_iLaserNum
+
i
;
point_index
=
(
u16Azimuth
-
start_angle_
)
/
m_iAngleSize
*
m_iLaserNum
+
i
;
}
}
if
(
m_OutMsgArray
[
cursor
]
->
points
[
point_index
].
ring
==
0
){
// LOG_EVERY_N(INFO, 1800) << std::setprecision(15) << "point.timestamp: " << point.timestamp
LOG_EVERY_N
(
INFO
,
1800
)
<<
std
::
setprecision
(
15
)
<<
"point.timestamp: "
<<
point
.
timestamp
// << " point_index: " << point_index
<<
" point_index: "
<<
point_index
// << " azimuth: " << azimuth;
<<
" azimuth: "
<<
azimuth
;
m_OutMsgArray
[
cursor
]
->
push_back
(
point
);
// if(m_OutMsgArray[cursor]->points[point_index].ring == 0){
// m_OutMsgArray[cursor]->points[point_index] = point;
// m_OutMsgArray[cursor]->points[point_index] = point;
m_OutMsgArray
[
cursor
]
->
push_back
(
point
);
// }
}
else
{
else
{
pthread_mutex_lock
(
&
m_RedundantPointLock
);
pthread_mutex_lock
(
&
m_RedundantPointLock
);
if
(
point
.
timestamp
-
m_OutMsgArray
[
cursor
]
->
points
[
point_index
].
timestamp
>
0.01
&&
point
.
timestamp
-
m_OutMsgArray
[
cursor
]
->
points
[
point_index
].
timestamp
<
0.11
)
if
(
point
.
timestamp
-
m_OutMsgArray
[
cursor
]
->
points
[
point_index
].
timestamp
>
0.01
&&
point
.
timestamp
-
m_OutMsgArray
[
cursor
]
->
points
[
point_index
].
timestamp
<
0.11
)
...
...
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