Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
J
jfx_kalman_filter_src
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
oscar
jfx_kalman_filter_src
Commits
02c6f723
Commit
02c6f723
authored
Jan 18, 2022
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交更新
parent
4b532545
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
TrackingRosEx.cpp
TrackingRosEx.cpp
+6
-0
No files found.
TrackingRosEx.cpp
View file @
02c6f723
...
...
@@ -683,6 +683,7 @@ objTrackListPtr TrackingRos::GetNearestCloudMsg(unsigned long long timestamp)
objTrackListPtr
msg
=
nullptr
;
int
interval
=
1000
;
std
::
lock_guard
<
std
::
mutex
>
lock
(
m_mtx
);
unsigned
long
long
tmpT
=
0
;
for
(
int
i
=
0
;
i
<
m_objsCloudQueue
.
size
();
i
++
)
{
//unsigned long long time_s = m_objsCloudQueue[i]->cloud.header.stamp.toSec() * 1000000;
...
...
@@ -692,12 +693,17 @@ objTrackListPtr TrackingRos::GetNearestCloudMsg(unsigned long long timestamp)
msg
=
m_objsCloudQueue
[
i
];
findIdx
=
i
;
}
tmpT
=
time_s
;
interval
=
labs
(
timestamp
-
time_s
);
}
if
(
findIdx
!=
-
1
)
{
m_objsCloudQueue
.
erase
(
m_objsCloudQueue
.
begin
(),
m_objsCloudQueue
.
begin
()
+
findIdx
+
1
);
}
else
{
SDK_LOG
(
SDK_INFO
,
"GetNearestCloudMsg timestamp = %llu, cloud timestamp = %llu"
,
timestamp
,
tmpT
);
}
return
msg
;
}
...
...
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