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
d5cf283a
Commit
d5cf283a
authored
Mar 25, 2022
by
wanghailong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2D跟踪
parent
8fb40966
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
TrackingRosEx.cpp
TrackingRosEx.cpp
+8
-8
jfx_tracking_ex.cpp
jfx_tracking_ex.cpp
+1
-1
No files found.
TrackingRosEx.cpp
View file @
d5cf283a
...
...
@@ -836,13 +836,13 @@ void TrackingRos::ThreadTrackingProcess()
if
(
updateHId
.
find
(
iter
.
first
)
!=
updateHId
.
end
()
||
updateLId
.
find
(
iter
.
first
)
!=
updateLId
.
end
())
{
if
(
updateHId
.
find
(
iter
.
first
)
!=
updateHId
.
end
())
obj
=
objsPtr
->
array
[
indexH
[
updateHId
[
iter
.
first
]]];
obj
=
objsPtr
->
array
[
indexH
[
updateHId
[
iter
.
first
]]];
//从检测结果里得到初始高分obj
if
(
updateLId
.
find
(
iter
.
first
)
!=
updateLId
.
end
())
obj
=
objsPtr
->
array
[
indexL
[
updateLId
[
iter
.
first
]]];
obj
=
objsPtr
->
array
[
indexL
[
updateLId
[
iter
.
first
]]];
//从检测结果里得到初始低分obj
input_obj
=
obj
;
obj
.
obj_id
=
iter
.
first
;
std
::
vector
<
float
>
data
;
if
(
iter
.
second
->
IsValid
()
&&
iter
.
second
->
GetStateData
(
data
)
==
0
)
if
(
iter
.
second
->
IsValid
()
&&
iter
.
second
->
GetStateData
(
data
)
==
0
)
//初始obj更新跟踪的推理结果
{
is_need_send
=
1
;
//需要发送
obj
.
x
=
data
[
0
];
...
...
@@ -866,16 +866,16 @@ void TrackingRos::ThreadTrackingProcess()
//obj.Long = pos[1];
//SDK_LOG(SDK_INFO, "lat = %.10f, lon = %.10f",obj.Lat,obj.Long);
}
if
(
iter
.
second
->
m_obj
)
last_type
=
iter
.
second
->
m_obj
->
type
;
iter
.
second
->
m_obj
=
std
::
make_shared
<
jfx_common_msgs
::
det_tracking
>
(
obj
);
//
if(iter.second->m_obj)
//
last_type = iter.second->m_obj->type;
iter
.
second
->
m_obj
=
std
::
make_shared
<
jfx_common_msgs
::
det_tracking
>
(
obj
);
//不仅状态变量还有类型时间戳的m_obj数据更新(Tracker3D.h的智能指针)
}
else
else
//未匹配但跟踪链未被删除
{
if
(
iter
.
second
->
m_obj
)
obj
=
*
(
iter
.
second
->
m_obj
);
std
::
vector
<
float
>
data
;
if
(
iter
.
second
->
IsValid
()
&&
iter
.
second
->
GetStateData
(
data
)
==
0
)
if
(
iter
.
second
->
IsValid
()
&&
iter
.
second
->
GetStateData
(
data
)
==
0
)
//跟踪链有效且获取到预测结果,初始obj更新跟踪的推理结果
{
is_need_send
=
1
;
//需要发送
obj
.
x
=
data
[
0
];
...
...
jfx_tracking_ex.cpp
View file @
d5cf283a
...
...
@@ -10,7 +10,7 @@
#include "jfx_log.h"
#include "LogBase.h"
#include "TrackingRosEx.h"
//#include "TrackingRosEx_2D.h"
//using namespace jfx_vision;
//std::unique_ptr<VisionConfig> jfx_vision::g_visionConfig;
...
...
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