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
ee71b2c0
Commit
ee71b2c0
authored
Dec 29, 2021
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交测试代码
parent
7b839569
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
TrackingRos.cpp
TrackingRos.cpp
+24
-0
No files found.
TrackingRos.cpp
View file @
ee71b2c0
...
...
@@ -240,6 +240,30 @@ void TrackingRos::Init(ros::NodeHandle& nh)
tests
.
push_back
(
point2d
(
5
,
5
));
double
angle
=
correct_angle
(
tests
);
SDK_LOG
(
SDK_INFO
,
"test correct_angle = %f"
,
angle
);
tests
.
clear
();
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
));
angle
=
correct_angle
(
tests
);
SDK_LOG
(
SDK_INFO
,
"test2 correct_angle = %f"
,
angle
);
tests
.
clear
();
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
));
angle
=
correct_angle
(
tests
);
SDK_LOG
(
SDK_INFO
,
"test3 correct_angle = %f"
,
angle
);
tests
.
clear
();
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
));
angle
=
correct_angle
(
tests
);
SDK_LOG
(
SDK_INFO
,
"test4 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