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
a8b1f6d3
Commit
a8b1f6d3
authored
Dec 24, 2021
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交测试
parent
8d9c1d10
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
8 deletions
+11
-8
Track3D.cpp
BaseTracker/Track3D.cpp
+0
-8
Track3D.h
BaseTracker/Track3D.h
+2
-0
TrackingRos.cpp
TrackingRos.cpp
+9
-0
No files found.
BaseTracker/Track3D.cpp
View file @
a8b1f6d3
...
...
@@ -103,14 +103,6 @@ Track3D::Track3D():BaseTrack(10, 7)
m_iou_threshold
=
0.01
;
std
::
vector
<
point2d
>
tests
;
tests
.
push_back
(
point2d
(
1
,
1
));
tests
.
push_back
(
point2d
(
2
,
2
));
tests
.
push_back
(
point2d
(
3
,
3
));
tests
.
push_back
(
point2d
(
4
,
4
));
tests
.
push_back
(
point2d
(
5
,
5
));
double
angle
=
correct_angle
(
tests
);
SDK_LOG
(
SDK_INFO
,
"test correct_angle = %f"
,
angle
);
}
void
Track3D
::
Init
(
const
std
::
vector
<
float
>&
data
)
{
...
...
BaseTracker/Track3D.h
View file @
a8b1f6d3
...
...
@@ -46,3 +46,5 @@ public:
std
::
vector
<
point2d
>
m_points
;
//保存最近的5个移动的点位
};
double
correct_angle
(
std
::
vector
<
point2d
>&
points
);
TrackingRos.cpp
View file @
a8b1f6d3
...
...
@@ -211,6 +211,15 @@ 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
]);
std
::
vector
<
point2d
>
tests
;
tests
.
push_back
(
point2d
(
1
,
1
));
tests
.
push_back
(
point2d
(
2
,
2
));
tests
.
push_back
(
point2d
(
3
,
3
));
tests
.
push_back
(
point2d
(
4
,
4
));
tests
.
push_back
(
point2d
(
5
,
5
));
double
angle
=
correct_angle
(
tests
);
SDK_LOG
(
SDK_INFO
,
"test correct_angle = %f"
,
angle
);
}
void
TrackingRos
::
TrackingCallBackFunc
(
const
jfx_common_msgs
::
det_tracking_arrayConstPtr
&
msg
)
//接受ros发过来的消息
...
...
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