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
f8dc531b
Commit
f8dc531b
authored
Jan 13, 2022
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交修改
parent
f54d8c43
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
TrackingRosEx.cpp
TrackingRosEx.cpp
+5
-2
TrackingRosEx.h
TrackingRosEx.h
+1
-0
No files found.
TrackingRosEx.cpp
View file @
f8dc531b
...
...
@@ -182,7 +182,7 @@ void get_camera_right_tolidar_loc(float u, float v, float& x, float& y)
auto
srx
=
(
-
relatx
)
*
cos
(
2
*
M_PI
/
3
)
+
(
-
relaty
)
*
sin
(
2
*
M_PI
/
3
);
auto
sry
=
(
-
relaty
)
*
cos
(
2
*
M_PI
/
3
)
-
(
-
relatx
)
*
sin
(
2
*
M_PI
/
3
);
srx
=
srx
-
5
;
sry
=
sry
-
1
;
sry
=
sry
-
2
;
x
=
srx
;
y
=
sry
;
//SDK_LOG(SDK_INFO, "get_camera_right_tolidar_loc end x= %f,y = %f", x, y);
...
...
@@ -278,6 +278,9 @@ void TrackingRos::Init(ros::NodeHandle& nh)
nh
.
param
<
int32_t
>
(
"detect_recv_msg_only"
,
m_recvMsgBit
,
0
b1111
);
SDK_LOG
(
SDK_INFO
,
"detect_recv_msg_only = %d"
,
m_recvMsgBit
);
nh
.
param
<
int32_t
>
(
"detct_camera_car_size"
,
m_detectCameraCarSize
,
150
);
SDK_LOG
(
SDK_INFO
,
"detct_camera_car_size = %d"
,
m_detectCameraCarSize
);
YAML
::
Node
config
=
YAML
::
LoadFile
(
file
.
c_str
());
auto
cfg
=
config
[
"TRACKING"
];
...
...
@@ -457,7 +460,7 @@ void TrackingRos::TrackingCameraCallBackFunc(const jfx_common_msgs::InferResesCo
int
x2
=
camera_msg
.
location
[
2
];
int
y2
=
camera_msg
.
location
[
3
];
float
area
=
float
(
abs
(
x1
-
x2
)
*
abs
(
y1
-
y2
));
float
MAXAREA
=
200
*
200
;
float
MAXAREA
=
m_detectCameraCarSize
*
m_detectCameraCarSize
;
float
prob
=
camera_msg
.
prob
;
int
num_class
=
camera_msg
.
num_class
;
float
bottom_center_x
=
(
float
(
x1
)
+
float
(
x2
))
/
2
;
...
...
TrackingRosEx.h
View file @
f8dc531b
...
...
@@ -59,4 +59,5 @@ public:
float
m_lidar_x_angle
=
0
.
0
f
;
//修改rot_y的参数,从配置里读取
int
m_recvMsgBit
=
0
b1111
;
//处理消息的类型
int
m_detectCameraCarSize
=
150
;
//处理相机汽车边长的最小限制
};
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