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
aa35e42d
Commit
aa35e42d
authored
Dec 09, 2021
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
102a7ad2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
TrackingRos.cpp
TrackingRos.cpp
+6
-1
No files found.
TrackingRos.cpp
View file @
aa35e42d
...
...
@@ -66,6 +66,7 @@ void TrackingRos::ThreadTrackingProcess()
bool
ret
=
m_objsQueue
.
timeout_pop
(
objsPtr
,
2000
);
if
(
ret
)
{
SDK_LOG
(
SDK_INFO
,
"get objs size = %d"
,
objsPtr
->
array
.
size
());
std
::
vector
<
std
::
vector
<
float
>
>
input
;
for
(
int
i
=
0
;
i
<
objsPtr
->
array
.
size
();
i
++
)
{
...
...
@@ -84,7 +85,10 @@ void TrackingRos::ThreadTrackingProcess()
std
::
vector
<
uint64_t
>
detectionsId
;
std
::
map
<
uint64_t
,
int
>
updateId
;
std
::
vector
<
uint64_t
>
lostId
;
SDK_LOG
(
SDK_INFO
,
"run before"
);
m_tracker
.
Run
(
input
,
detectionsId
,
updateId
,
lostId
);
SDK_LOG
(
SDK_INFO
,
"run after"
);
std
::
map
<
uint64_t
,
std
::
shared_ptr
<
Track3D
>
>&
trackers
=
m_tracker
.
GetStates
();
...
...
@@ -120,8 +124,9 @@ void TrackingRos::ThreadTrackingProcess()
sendObjs
.
array
.
emplace_back
(
obj
);
}
sendObjs
.
cloud
=
objsPtr
->
cloud
;
SDK_LOG
(
SDK_INFO
,
"calculate objs size = %d"
,
sendObjs
.
array
.
size
());
m_pub
.
publish
(
sendObjs
);
//
m_pub.publish(sendObjs);
}
}
...
...
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