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
04a20389
Commit
04a20389
authored
Jan 13, 2022
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交更新
parent
9dd3f08c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
TrackingRosEx.cpp
TrackingRosEx.cpp
+7
-4
No files found.
TrackingRosEx.cpp
View file @
04a20389
...
...
@@ -530,12 +530,15 @@ void TrackingRos::TrackingCameraCallBackFunc(const jfx_common_msgs::InferResesCo
objMsg
.
x
=
objMsg
.
x
+
(
objMsg
.
l
/
2
);
int
duplicate
=
0
;
for
(
auto
&
obj
:
cloudPtr
->
array
)
if
(
i
==
0
)
{
if
(
abs
(
obj
.
x
-
objMsg
.
x
)
<
std
::
max
(
objMsg
.
l
*
1.2
,
(
double
)
2.0
)
&&
abs
(
obj
.
y
-
objMsg
.
y
)
<
std
::
max
(
objMsg
.
w
*
1.2
,
(
double
)
2.0
)
)
for
(
auto
&
obj
:
cloudPtr
->
array
)
{
duplicate
=
1
;
break
;
if
(
abs
(
obj
.
x
-
objMsg
.
x
)
<
std
::
max
(
objMsg
.
l
*
1.2
,
(
double
)
2.0
)
&&
abs
(
obj
.
y
-
objMsg
.
y
)
<
std
::
max
(
objMsg
.
w
*
1.2
,
(
double
)
2.0
))
{
duplicate
=
1
;
break
;
}
}
}
if
(
duplicate
==
0
)
...
...
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