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
2d41677d
Commit
2d41677d
authored
Jun 25, 2022
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
e7682cf5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
Track3DEx.cpp
ros2/Track3DEx.cpp
+1
-1
TrackingRos2.cpp
ros2/TrackingRos2.cpp
+6
-3
No files found.
ros2/Track3DEx.cpp
View file @
2d41677d
...
...
@@ -98,7 +98,7 @@ double Track3DEx::CalculateIou(const std::vector<float>& data)
int
obj_cameraId
=
m_obj
->
cameraId
;
int
obj_trackingId
=
m_obj
->
trackingId
;
if
(
input_dataSource
==
obj_dataSource
&&
obj_dataSource
>
1
&&
obj_cameraId
>
0
&&
obj_trackingId
>
0
)
if
(
obj_cameraId
>
0
&&
obj_trackingId
>
0
)
{
if
(
obj_cameraId
==
input_cameraId
&&
input_trackingId
==
obj_trackingId
)
{
...
...
ros2/TrackingRos2.cpp
View file @
2d41677d
...
...
@@ -195,10 +195,13 @@ void TrackingRos2::TrackingPorcess(objTrackListPtr objsPtr) {
obj
.
kinematics
.
twist_with_covariance
=
input_obj
.
object
.
kinematics
.
twist_with_covariance
;
obj
.
shape
=
input_obj
.
object
.
shape
;
int
camera_id
=
0
;
int
tracking_id
=
0
;
if
(
addId
.
find
(
iter
.
first
)
==
addId
.
end
())
{
obj
.
object_id
=
iter
.
second
->
m_obj
->
obj
->
object_id
;
camera_id
=
iter
.
second
->
m_obj
->
cameraId
;
tracking_id
=
iter
.
second
->
m_obj
->
tracking_id
;
}
else
{
...
...
@@ -236,8 +239,8 @@ void TrackingRos2::TrackingPorcess(objTrackListPtr objsPtr) {
strObj
.
frame
=
timestamp
;
strObj
.
type
=
input_obj
.
object
.
classification
[
0
].
label
;
strObj
.
dataSource
=
input_obj
.
data_source
;
strObj
.
cameraId
=
input_obj
.
camera_id
;
strObj
.
trackingId
=
input_obj
.
tracking_id
;
strObj
.
cameraId
=
input_obj
.
camera_id
==
0
?
camera_id
:
input_obj
.
camera_id
;
strObj
.
trackingId
=
input_obj
.
tracking_id
==
0
?
tracking_id
:
input_obj
.
tracking_id
;
strObj
.
obj
=
std
::
make_shared
<
autoware_auto_perception_msgs
::
msg
::
TrackedObject
>
(
obj
);
iter
.
second
->
m_obj
=
std
::
make_shared
<
TrackStructObj
>
(
strObj
);
//不仅状态变量还有类型时间戳的m_obj数据更新(Tracker3D.h的智能指针)
}
else
//未匹配但跟踪链未被删除
...
...
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