Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
lidar_tracking
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
shishuai
lidar_tracking
Commits
ea525343
Commit
ea525343
authored
May 08, 2021
by
markshih91
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
8a1978dd
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1 addition
and
19 deletions
+1
-19
kalman_filter.py
tracking/scripts/AB3DMOT_libs/kalman_filter.py
+1
-5
__init__.pyc
tracking/scripts/utils/__init__.pyc
+0
-0
demo_ww.py
tracking/scripts/utils/demo_ww.py
+0
-14
demo_ww.pyc
tracking/scripts/utils/demo_ww.pyc
+0
-0
gaussian.pyc
tracking/scripts/utils/gaussian.pyc
+0
-0
rotations.pyc
tracking/scripts/utils/rotations.pyc
+0
-0
wgs84.pyc
tracking/scripts/utils/wgs84.pyc
+0
-0
No files found.
tracking/scripts/AB3DMOT_libs/kalman_filter.py
View file @
ea525343
# Author: Xinshuo Weng
# email: xinshuo.weng@gmail.com
import
math
import
numpy
as
np
from
filterpy.kalman
import
KalmanFilter
from
sklearn.decomposition
import
PCA
class
KalmanBoxTracker
(
object
):
...
...
@@ -85,7 +83,6 @@ class KalmanBoxTracker(object):
"""
Updates the state vector with observed bbox.
"""
self
.
time_since_update
=
0
self
.
history
=
[]
self
.
hits
+=
1
...
...
@@ -128,7 +125,6 @@ class KalmanBoxTracker(object):
"""
Advances the state vector and returns the predicted bounding box estimate.
"""
self
.
kf
.
predict
()
if
self
.
kf
.
x
[
3
]
>=
np
.
pi
:
self
.
kf
.
x
[
3
]
-=
np
.
pi
*
2
if
self
.
kf
.
x
[
3
]
<
-
np
.
pi
:
self
.
kf
.
x
[
3
]
+=
np
.
pi
*
2
...
...
tracking/scripts/utils/__init__.pyc
deleted
100644 → 0
View file @
8a1978dd
File deleted
tracking/scripts/utils/demo_ww.py
View file @
ea525343
...
...
@@ -54,18 +54,6 @@ def get_T():
return
Trans
def
get_loc_GT
(
lidar_loc
):
Trans
=
get_T
()
tmp_loc
=
np
.
ones
([
4
])
tmp_loc
[:
3
]
=
lidar_loc
[:
3
]
world_loc
=
np
.
dot
(
Trans
,
tmp_loc
)
out_BL
=
Inverse_v2
(
world_loc
[:
2
])
return
out_BL
def
get_loc
(
boxes_3d
,
car_type
):
corners_3d
=
my_compute_box_3d
(
boxes_3d
[:
3
],
boxes_3d
[
6
],
boxes_3d
[
3
:
6
])
...
...
@@ -99,5 +87,3 @@ def get_loc(boxes_3d, car_type):
out_center_BL
=
Inverse_v2
(
world_center_loc
[:
2
])
return
lidar_loc
,
out_BL
,
out_center_BL
return
lidar_loc
,
out_BL
tracking/scripts/utils/demo_ww.pyc
deleted
100644 → 0
View file @
8a1978dd
File deleted
tracking/scripts/utils/gaussian.pyc
deleted
100644 → 0
View file @
8a1978dd
File deleted
tracking/scripts/utils/rotations.pyc
deleted
100644 → 0
View file @
8a1978dd
File deleted
tracking/scripts/utils/wgs84.pyc
deleted
100644 → 0
View file @
8a1978dd
File deleted
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