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
abc40a86
Commit
abc40a86
authored
Jan 12, 2022
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除不用的逻辑
parent
151aa6f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
TrackingRosEx.cpp
TrackingRosEx.cpp
+17
-17
No files found.
TrackingRosEx.cpp
View file @
abc40a86
...
...
@@ -647,14 +647,14 @@ void TrackingRos::ThreadTrackingProcess()
obj
.
v_y
=
data
[
8
];
obj
.
v_z
=
data
[
9
];
obj
.
obj_id
=
iter
.
first
;
double
gx
=
0.0
f
;
double
gy
=
0.0
f
;
CalculateGuassPos
(
obj
,
m_trans
,
m_kitti2origin
,
gx
,
gy
);
//SDK_LOG(SDK_INFO, "CalculateGuassPos x = %f,y = %f, gx = %f, gy = %f,prob = %f",obj.x,obj.y,gx,gy,iter.second->GetProb());
jfx
::
Array
gpos
=
{
gx
,
gy
};
jfx
::
Array
pos
=
jfx
::
Inverse
(
gpos
);
obj
.
Lat
=
pos
[
0
];
obj
.
Long
=
pos
[
1
];
//
double gx = 0.0f;
//
double gy = 0.0f;
//
CalculateGuassPos(obj, m_trans, m_kitti2origin, gx, gy);
//
//
SDK_LOG(SDK_INFO, "CalculateGuassPos x = %f,y = %f, gx = %f, gy = %f,prob = %f",obj.x,obj.y,gx,gy,iter.second->GetProb());
//
jfx::Array gpos = {gx,gy};
//
jfx::Array pos = jfx::Inverse(gpos);
//
obj.Lat = pos[0];
//
obj.Long = pos[1];
//SDK_LOG(SDK_INFO, "lat = %.10f, lon = %.10f",obj.Lat,obj.Long);
}
if
(
iter
.
second
->
m_obj
)
...
...
@@ -680,14 +680,14 @@ void TrackingRos::ThreadTrackingProcess()
obj
.
v_y
=
data
[
8
];
obj
.
v_z
=
data
[
9
];
obj
.
obj_id
=
iter
.
first
;
double
gx
=
0.0
f
;
double
gy
=
0.0
f
;
CalculateGuassPos
(
obj
,
m_trans
,
m_kitti2origin
,
gx
,
gy
);
//
double gx = 0.0f;
//
double gy = 0.0f;
//
CalculateGuassPos(obj, m_trans, m_kitti2origin, gx, gy);
//SDK_LOG(SDK_INFO, "CalculateGuassPos x = %f,y = %f, gx = %f, gy = %f,prob = %f", obj.x, obj.y, gx, gy, iter.second->GetProb());
jfx
::
Array
gpos
=
{
gx
,
gy
};
jfx
::
Array
pos
=
jfx
::
Inverse
(
gpos
);
obj
.
Lat
=
pos
[
0
];
obj
.
Long
=
pos
[
1
];
//
jfx::Array gpos = { gx,gy };
//
jfx::Array pos = jfx::Inverse(gpos);
//
obj.Lat = pos[0];
//
obj.Long = pos[1];
//SDK_LOG(SDK_INFO, "lat = %.10f, lon = %.10f", obj.Lat, obj.Long);
}
}
...
...
@@ -702,8 +702,8 @@ void TrackingRos::ThreadTrackingProcess()
{
obj
.
rot_y
+=
_PI_
*
2
;
}
float
rot_y_angle
=
obj
.
rot_y
;
obj
.
rot_y
=
to360
(
obj
.
rot_y
,
m_lidar_x_angle
);
//
float rot_y_angle = obj.rot_y;
//
obj.rot_y = to360(obj.rot_y, m_lidar_x_angle);
//SDK_LOG(SDK_INFO, "rot_y_angle = %f, rot_y = %f", rot_y_angle, obj.rot_y);
std
::
vector
<
float
>
predict
;
if
(
iter
.
second
->
GetPredictData
(
predict
)
==
0
)
...
...
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