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
2cbc65cb
Commit
2cbc65cb
authored
Apr 12, 2023
by
Haoshuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update TrackingRos.cpp for shanghai loc evaluation
parent
f7ddd0ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
TrackingRos.cpp
TrackingRos.cpp
+8
-8
No files found.
TrackingRos.cpp
View file @
2cbc65cb
...
...
@@ -102,17 +102,17 @@ void CalculateUTMPos(jfx_common_msgs::det_tracking &obj, std::vector<double> &wg
Eigen
::
Vector3d
res3
(
res_corners_3d
(
3
,
0
),
res_corners_3d
(
3
,
1
),
res_corners_3d
(
3
,
2
));
Eigen
::
Vector3d
res6
(
res_corners_3d
(
6
,
0
),
res_corners_3d
(
6
,
1
),
res_corners_3d
(
6
,
2
));
// Eigen::Vector3d head_pnt = (res3
+ res2) / 2;
//
Eigen::Vector3d tail_pnt = (res0 + res3) / 2;
Eigen
::
Vector3d
center_pnt
=
(
res0
+
res6
)
/
2
;
Eigen
::
Vector3d
head_pnt
=
(
res1
+
res2
)
/
2
;
Eigen
::
Vector3d
tail_pnt
=
(
res0
+
res3
)
/
2
;
//
Eigen::Vector3d center_pnt = (res0 + res6) / 2;
// double inter_len = 5.0
f;
// double total_len = 6.0
f;
//
Eigen::Vector3d lidar_loc = (tail_pnt - head_pnt) * inter_len / (1.0 * total_len) + head_pnt;
double
inter_len
=
3.5
f
;
double
total_len
=
5.03
f
;
Eigen
::
Vector3d
lidar_loc
=
(
tail_pnt
-
head_pnt
)
*
inter_len
/
(
1.0
*
total_len
)
+
head_pnt
;
Eigen
::
Vector4d
tranTmp
;
tranTmp
<<
center_pnt
[
0
],
center_pnt
[
1
],
center_pnt
[
2
],
1
;
//
tranTmp << lidar_loc[0], lidar_loc[1], lidar_loc[2], 1;
//
tranTmp << center_pnt[0], center_pnt[1], center_pnt[2], 1;
tranTmp
<<
lidar_loc
[
0
],
lidar_loc
[
1
],
lidar_loc
[
2
],
1
;
Eigen
::
Matrix4d
Trans2station
=
Eigen
::
Matrix4d
::
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