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
151aa6f0
Commit
151aa6f0
authored
Jan 12, 2022
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交更新
parent
1288b4de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
TrackingRosEx.cpp
TrackingRosEx.cpp
+7
-5
No files found.
TrackingRosEx.cpp
View file @
151aa6f0
...
...
@@ -438,22 +438,24 @@ void TrackingRos::TrackingCameraCallBackFunc(const jfx_common_msgs::InferResesCo
int
num_class
=
camera_msg
.
num_class
;
float
bottom_center_x
=
(
float
(
x1
)
+
float
(
x2
))
/
2
;
float
bottom_center_y
=
float
(
y2
);
float
x
=
0.0
f
;
float
y
=
0.0
f
;
if
(
i
=
0
)
{
get_camera_tolidar_loc
(
bottom_center_x
,
bottom_center_y
,
objMsg
.
x
,
objMsg
.
y
);
get_camera_tolidar_loc
(
bottom_center_x
,
bottom_center_y
,
x
,
y
);
}
else
if
(
i
=
1
)
{
get_camera_right_tolidar_loc
(
bottom_center_x
,
bottom_center_y
,
objMsg
.
x
,
objMsg
.
y
);
get_camera_right_tolidar_loc
(
bottom_center_x
,
bottom_center_y
,
x
,
y
);
}
else
if
(
i
=
2
)
{
get_camera_left_tolidar_loc
(
bottom_center_x
,
bottom_center_y
,
objMsg
.
x
,
objMsg
.
y
);
get_camera_left_tolidar_loc
(
bottom_center_x
,
bottom_center_y
,
x
,
y
);
}
jfx_common_msgs
::
det_tracking
objMsg
=
{};
objMsg
.
frame
=
int
(
timestamp
);
//objMsg.x = float(xy[0])
//objMsg.y = float(xy[1])
objMsg
.
x
=
x
;
objMsg
.
y
=
y
;
objMsg
.
z
=
0
;
objMsg
.
score
=
prob
;
...
...
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