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
029344bd
Commit
029344bd
authored
Dec 21, 2021
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交显示修正逻辑
parent
9a600ae6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
TrackingRos.cpp
TrackingRos.cpp
+1
-7
No files found.
TrackingRos.cpp
View file @
029344bd
...
...
@@ -23,7 +23,7 @@ float to360(float rot_y,float lidar_x_angle)
//SDK_LOG(SDK_INFO, "rot_y = %f, angle = %f", rot_y, angle);
float
tmp_angle
=
0.0
f
;
float
car_angle
=
angle
/
_PI_
*
180.0
f
;
tmp_angle
=
car_angle
-
lidar_x
_angle
;
tmp_angle
=
lidar_x_angle
-
car
_angle
;
//SDK_LOG(SDK_INFO, "car_angle = %f, tmp_angle = %f,lidar_x_angle = %f", car_angle, tmp_angle, lidar_x_angle);
tmp_angle
+=
360
;
while
(
tmp_angle
>
360
)
...
...
@@ -109,10 +109,6 @@ void TrackingRos::Init(ros::NodeHandle& nh)
memcpy
(
m
,
f
,
sizeof
(
float
)
*
4
);
SDK_LOG
(
SDK_INFO
,
"data = %f,%f,%f,%f"
,
m
[
0
],
m
[
1
],
m
[
2
],
m
[
3
]);
float
rot_y
=
1.427666
;
float
rot_y_a
=
to360
(
rot_y
,
m_lidar_x_angle
);
}
void
TrackingRos
::
TrackingCallBackFunc
(
const
jfx_common_msgs
::
det_tracking_arrayConstPtr
&
msg
)
//接受ros发过来的消息
...
...
@@ -282,9 +278,7 @@ void TrackingRos::ThreadTrackingProcess()
//修正rot_y值,变为角度
float
rot_y_angle
=
obj
.
rot_y
;
obj
.
rot_y
=
to360
(
obj
.
rot_y
,
m_lidar_x_angle
);
float
rot_y_a
=
obj
.
rot_y
/
180
*
3.14159265
;
//SDK_LOG(SDK_INFO, "rot_y = %f, rot_y_angle = %f", rot_y_angle, rot_y_a);
rot_y_angle
=
rot_y_a
;
jsk_recognition_msgs
::
BoundingBox
box
=
{};
box
.
label
=
obj
.
obj_id
;
...
...
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