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
c252fdf7
Commit
c252fdf7
authored
Dec 29, 2021
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交测试
parent
8944a2ed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
Track3D.cpp
BaseTracker/Track3D.cpp
+1
-1
TrackingRos.cpp
TrackingRos.cpp
+10
-10
No files found.
BaseTracker/Track3D.cpp
View file @
c252fdf7
...
...
@@ -43,7 +43,7 @@ double correct_angle(std::vector<point2d>& points)
double
alpha
=
dX
.
transpose
()
*
orientation
;
if
(
alpha
<
0
)
orientation
=
-
orientation
;
SDK_LOG
(
SDK_INFO
,
"correct_angle
orientation[0] = %f, orientation[1] = %f"
,
orientation
[
0
],
orientation
[
1
]);
SDK_LOG
(
SDK_INFO
,
"correct_angle
alpha = %f, orientation[0] = %f, orientation[1] = %f"
,
alpha
,
orientation
[
0
],
orientation
[
1
]);
double
center_rot_y
=
atan2
(
orientation
[
1
],
orientation
[
0
]);
return
center_rot_y
;
}
...
...
TrackingRos.cpp
View file @
c252fdf7
...
...
@@ -241,11 +241,11 @@ void TrackingRos::Init(ros::NodeHandle& nh)
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
));
tests
.
push_back
(
point2d
(
5
,
5
));
tests
.
push_back
(
point2d
(
4
,
4
));
tests
.
push_back
(
point2d
(
3
,
3
));
tests
.
push_back
(
point2d
(
2
,
2
));
tests
.
push_back
(
point2d
(
1
,
1
));
angle
=
correct_angle
(
tests
);
SDK_LOG
(
SDK_INFO
,
"test2 correct_angle = %f"
,
angle
);
tests
.
clear
();
...
...
@@ -257,11 +257,11 @@ void TrackingRos::Init(ros::NodeHandle& nh)
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
));
tests
.
push_back
(
point2d
(
-
5
,
5
));
tests
.
push_back
(
point2d
(
-
4
,
4
));
tests
.
push_back
(
point2d
(
-
3
,
3
));
tests
.
push_back
(
point2d
(
-
2
,
2
));
tests
.
push_back
(
point2d
(
-
1
,
1
));
angle
=
correct_angle
(
tests
);
SDK_LOG
(
SDK_INFO
,
"test4 correct_angle = %f"
,
angle
);
}
...
...
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