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
334c8ff4
Commit
334c8ff4
authored
Jan 13, 2022
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交更新
parent
1537e091
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
TrackingRosEx.cpp
TrackingRosEx.cpp
+13
-9
No files found.
TrackingRosEx.cpp
View file @
334c8ff4
...
...
@@ -469,7 +469,7 @@ void TrackingRos::TrackingCameraCallBackFunc(const jfx_common_msgs::InferResesCo
}
if
(
i
==
1
||
i
==
2
)
{
SDK_LOG
(
SDK_INFO
,
"camera obj i = %d,num_class = %d,bottom_center_x = %f,bottom_center_y = %f, x = %f,y = %f"
,
i
,
num_class
,
bottom_center_x
,
bottom_center_y
,
x
,
y
);
//
SDK_LOG(SDK_INFO, "camera obj i = %d,num_class = %d,bottom_center_x = %f,bottom_center_y = %f, x = %f,y = %f",i, num_class, bottom_center_x, bottom_center_y, x, y);
//if (x < -15)
// continue;
}
...
...
@@ -528,7 +528,6 @@ void TrackingRos::TrackingCameraCallBackFunc(const jfx_common_msgs::InferResesCo
else
continue
;
objMsg
.
type
=
1
;
objMsg
.
x
=
objMsg
.
x
+
(
objMsg
.
l
/
2
);
int
duplicate
=
0
;
if
(
i
==
0
)
...
...
@@ -546,7 +545,8 @@ void TrackingRos::TrackingCameraCallBackFunc(const jfx_common_msgs::InferResesCo
{
if
(
i
==
1
||
i
==
2
)
{
SDK_LOG
(
SDK_INFO
,
"camera 1,2 x = %f,y = %f"
,
objMsg
.
x
,
objMsg
.
y
);
objMsg
.
type
=
7
;
//SDK_LOG(SDK_INFO, "camera 1,2 x = %f,y = %f", objMsg.x, objMsg.y);
}
objsPtr
->
array
.
push_back
(
objMsg
);
}
...
...
@@ -555,7 +555,7 @@ void TrackingRos::TrackingCameraCallBackFunc(const jfx_common_msgs::InferResesCo
}
}
SDK_LOG
(
SDK_INFO
,
"m_objsQueue push size = %d"
,
objsPtr
->
array
.
size
());
//
SDK_LOG(SDK_INFO, "m_objsQueue push size = %d", objsPtr->array.size());
m_objsQueue
.
push
(
objsPtr
);
//if(cloudPtr)
// m_pubCloud.publish(cloudPtr->cloud);
...
...
@@ -600,7 +600,7 @@ void TrackingRos::ThreadTrackingProcess()
nvtxRangePush
(
"ThreadTrackingProcess"
);
#endif
m_frameNum
++
;
SDK_LOG
(
SDK_INFO
,
"get objs size = %d,m_frameNum = %d"
,
objsPtr
->
array
.
size
(),
m_frameNum
);
//
SDK_LOG(SDK_INFO, "get objs size = %d,m_frameNum = %d",objsPtr->array.size(), m_frameNum);
std
::
vector
<
std
::
vector
<
float
>
>
input
;
for
(
int
i
=
0
;
i
<
objsPtr
->
array
.
size
();
i
++
)
{
...
...
@@ -615,10 +615,10 @@ void TrackingRos::ThreadTrackingProcess()
data
.
push_back
(
obj
.
w
);
data
.
push_back
(
obj
.
h
);
input
.
emplace_back
(
data
);
//if (obj.x < 0
)
//
{
// SDK_LOG(SDK_INFO, "input========================= x = %f,y = %f", obj.x, obj.
y);
//
}
if
(
obj
.
type
==
7
)
{
SDK_LOG
(
SDK_INFO
,
"input========================m_frameNun = %d,[%f,%f,%f,%f,%f,%f,%f]"
,
m_frameNum
,
obj
.
x
,
obj
.
y
,
obj
.
z
,
obj
.
l
,
obj
.
w
,
obj
.
h
,
obj
.
rot_
y
);
}
}
std
::
vector
<
uint64_t
>
detectionsId
;
std
::
map
<
uint64_t
,
int
>
updateId
;
...
...
@@ -632,6 +632,10 @@ void TrackingRos::ThreadTrackingProcess()
#ifdef _USING_NSIGHT_
nvtxRangePop
();
#endif
if
(
lostId
.
size
()
>
0
)
{
}
uint64_t
rTime
=
GetCurTime
()
-
begin
;
//SDK_LOG(SDK_INFO, "m_tracker.Run time = %llu", rTime);
std
::
map
<
uint64_t
,
std
::
shared_ptr
<
Track3D
>
>&
trackers
=
m_tracker
.
GetStates
();
...
...
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