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
cbf7b672
Commit
cbf7b672
authored
Jan 17, 2022
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交更新
parent
f5abb10c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
TrackingRosEx.cpp
TrackingRosEx.cpp
+6
-6
No files found.
TrackingRosEx.cpp
View file @
cbf7b672
...
...
@@ -136,9 +136,9 @@ void get_camera_tolidar_loc(float u, float v, float& x, float& y)
Eigen
::
Vector3d
loc_camera
;
loc_camera
<<
outputUndistortedPoints
[
0
].
x
,
outputUndistortedPoints
[
0
].
y
,
1
;
Eigen
::
Matrix
<
double
,
3
,
3
>
cam_trans
;
cam_trans
<<
-
1.29665805e-02
,
9.37907698e-02
,
-
6.31390808e+02
,
8.18329480e-02
,
-
1.38701295e-02
,
4.67566705e+01
,
-
1.22717262e-03
,
-
1.27333545e-02
,
1.00000000e+00
;
cam_trans
<<
-
2.81227713e-04
,
1.00961676e-03
,
-
6.79337876e+00
,
3.30666352e-03
,
1.86212238e-04
,
-
3.54019041e+00
,
8.41395110e-05
,
-
2.14260840e-03
,
1.00000000e+00
;
auto
trans_pos
=
cam_trans
*
loc_camera
;
double
h
=
trans_pos
[
2
];
auto
trans_pos_
=
trans_pos
/
h
;
...
...
@@ -246,9 +246,9 @@ TrackingRos::~TrackingRos()
void
TrackingRos
::
Init
(
ros
::
NodeHandle
&
nh
)
{
//
float x, y;
//
get_camera_tolidar_loc(400, 400, x, y);
//
SDK_LOG(SDK_INFO, "get_camera_tolidar_loc x = %f, y = %f",x,y);
float
x
,
y
;
get_camera_tolidar_loc
(
400
,
400
,
x
,
y
);
SDK_LOG
(
SDK_INFO
,
"get_camera_tolidar_loc x = %f, y = %f"
,
x
,
y
);
//get_camera_right_tolidar_loc(400, 400, x, y);
//SDK_LOG(SDK_INFO, "get_camera_right_tolidar_loc x = %f, y = %f", x, y);
//get_camera_left_tolidar_loc(400, 400, x, y);
...
...
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