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
be3c519e
Commit
be3c519e
authored
Dec 23, 2021
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交测试
parent
f6a8e333
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
TrackingRos.cpp
TrackingRos.cpp
+5
-6
No files found.
TrackingRos.cpp
View file @
be3c519e
...
...
@@ -78,8 +78,7 @@ void CalculateGuassPos(float x, float y,float z,std::vector<std::vector<float>>&
auto
origin4x8
=
Kit2Ori
*
tmp4x8
;
auto
res_corners_3d
=
origin4x8
.
block
(
0
,
0
,
3
,
8
).
transpose
();
Eigen
::
Vector3f
res0
;
res0
<<
res_corners_3d
(
0
,
0
)
<<
res_corners_3d
(
0
,
1
)
<<
res_corners_3d
(
0
,
2
);
Eigen
::
Vector3f
res0
(
res_corners_3d
(
0
,
0
),
res_corners_3d
(
0
,
1
),
res_corners_3d
(
0
,
2
));
auto
head_pnt
=
(
res_corners_3d
(
1
)
+
res_corners_3d
(
2
))
/
2
;
auto
tail_pnt
=
(
res_corners_3d
(
0
)
+
res_corners_3d
(
3
))
/
2
;
...
...
@@ -89,10 +88,10 @@ void CalculateGuassPos(float x, float y,float z,std::vector<std::vector<float>>&
auto
lidar_loc
=
(
tail_pnt
-
head_pnt
)
*
inter_len
/
(
1.0
*
total_len
)
+
head_pnt
;
Eigen
::
Vector4f
tranTmp
;
float
loc_x
=
lidar_loc
(
0
,
0
);
float
loc_y
=
lidar_loc
(
0
,
1
);
float
loc_z
=
lidar_loc
(
0
,
2
);
tranTmp
<<
loc_x
,
loc_y
,
loc_z
,
1
;
//
float loc_x = lidar_loc(0, 0);
//
float loc_y = lidar_loc(0, 1);
//
float loc_z = lidar_loc(0, 2);
//
tranTmp << loc_x, loc_y, loc_z, 1;
Eigen
::
Matrix4f
Trans
=
Eigen
::
Matrix4f
::
Zero
();
for
(
int
i
=
0
;
i
<
4
;
i
++
)
{
...
...
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