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
87bfaf67
Commit
87bfaf67
authored
Jan 12, 2022
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交更新
parent
b93c1457
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
TrackingRosEx.cpp
TrackingRosEx.cpp
+12
-12
No files found.
TrackingRosEx.cpp
View file @
87bfaf67
...
...
@@ -138,18 +138,18 @@ void get_camera_tolidar_loc(float u, float v, float& x, float& y)
auto
trans_pos
=
cam_trans
*
loc_camera
;
double
h
=
trans_pos
[
2
];
auto
trans_pos_
=
trans_pos
/
h
;
//
Eigen::Matrix<double, 3, 3> R;
//
R << -0.602479577065, -0.797206640244, -0.038464091718,
//
0.796449661255, -0.603639006615, 0.035887073725,
//
-0.051827855408, -0.009013481438, 0.998615324497;
//
Eigen::Vector3d T;
//
T << -886.266723632813, 556.056396484375, -0.398632347584;
//
auto R_inv = R.inverse();
//auto P_ = R_inv * (trans_pos
- T);
//
x = P_[0] - 3.5;
//
y = P_[1] + 0.4;
Eigen
::
Matrix
<
double
,
3
,
3
>
R
;
R
<<
-
0.602479577065
,
-
0.797206640244
,
-
0.038464091718
,
0.796449661255
,
-
0.603639006615
,
0.035887073725
,
-
0.051827855408
,
-
0.009013481438
,
0.998615324497
;
Eigen
::
Vector3d
T
;
T
<<
-
886.266723632813
,
556.056396484375
,
-
0.398632347584
;
auto
R_inv
=
R
.
inverse
();
auto
P_
=
R_inv
*
(
trans_pos_
-
T
);
x
=
P_
[
0
]
-
3.5
;
y
=
P_
[
1
]
+
0.4
;
}
TrackingRos
::~
TrackingRos
()
...
...
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