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
7adcc5eb
Commit
7adcc5eb
authored
Jul 11, 2022
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
d14fd8bc
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
9 deletions
+13
-9
BaseTracker.h
BaseTracker/BaseTracker.h
+3
-2
TrackingObj.cpp
Tracking/TrackingObj.cpp
+2
-0
TrackingObj.h
Tracking/TrackingObj.h
+1
-0
Track3DEx.cpp
ros2/Track3DEx.cpp
+7
-7
TrackingRos2.cpp
ros2/TrackingRos2.cpp
+0
-0
No files found.
BaseTracker/BaseTracker.h
View file @
7adcc5eb
...
...
@@ -36,7 +36,7 @@ public:
int
Run
(
const
std
::
vector
<
std
::
vector
<
float
>
>&
detections
,
int
_no
/*观测数量*/
,
int
_ns
/*状态数量*/
,
std
::
vector
<
uint64_t
>&
detectionsId
,
std
::
map
<
uint64_t
,
int
>&
updateId
,
std
::
vector
<
uint64_t
>&
lostId
);
int
Run
(
const
std
::
vector
<
std
::
vector
<
float
>
>&
detections
,
int
_no
/*观测数量*/
,
int
_ns
/*状态数量*/
,
std
::
vector
<
uint64_t
>&
detectionsId
,
std
::
map
<
uint64_t
,
int
>&
updateId
,
std
::
map
<
uint64_t
,
int
>&
addId
,
std
::
vector
<
uint64_t
>&
lostId
);
int
Run
(
const
std
::
vector
<
std
::
vector
<
float
>
>&
dets_high
,
const
std
::
vector
<
std
::
vector
<
float
>
>&
dets_low
,
int
_no
/*观测数量*/
,
int
_ns
/*状态数量*/
,
std
::
map
<
uint64_t
,
int
>&
update_high_ids
,
std
::
map
<
uint64_t
,
int
>&
update_low_ids
,
std
::
vector
<
uint64_t
>&
lostId
);
int
Run
(
const
std
::
vector
<
std
::
vector
<
float
>
>&
dets_high
,
const
std
::
vector
<
std
::
vector
<
float
>
>&
dets_low
,
int
_no
/*观测数量*/
,
int
_ns
/*状态数量*/
,
std
::
map
<
uint64_t
,
int
>&
update_high_ids
,
std
::
map
<
uint64_t
,
int
>&
addId
,
std
::
map
<
uint64_t
,
int
>&
update_low_ids
,
std
::
vector
<
uint64_t
>&
lostId
);
std
::
map
<
uint64_t
,
std
::
shared_ptr
<
T
>
>&
GetStates
();
...
...
@@ -390,7 +390,7 @@ void BaseTracker<T>::AssociateDetectionsToTrackers(const std::vector<std::vector
}
template
<
class
T
>
int
BaseTracker
<
T
>::
Run
(
const
std
::
vector
<
std
::
vector
<
float
>
>&
dets_high
,
const
std
::
vector
<
std
::
vector
<
float
>
>&
dets_low
,
int
_no
/*观测数量*/
,
int
_ns
/*状态数量*/
,
std
::
map
<
uint64_t
,
int
>&
update_high_ids
,
std
::
map
<
uint64_t
,
int
>&
update_low_ids
,
std
::
vector
<
uint64_t
>&
lostId
)
int
BaseTracker
<
T
>::
Run
(
const
std
::
vector
<
std
::
vector
<
float
>
>&
dets_high
,
const
std
::
vector
<
std
::
vector
<
float
>
>&
dets_low
,
int
_no
/*观测数量*/
,
int
_ns
/*状态数量*/
,
std
::
map
<
uint64_t
,
int
>&
update_high_ids
,
std
::
map
<
uint64_t
,
int
>&
addId
,
std
::
map
<
uint64_t
,
int
>&
update_low_ids
,
std
::
vector
<
uint64_t
>&
lostId
)
{
#ifdef _USING_NSIGHT_
nvtxRangePush
(
"Run Predict"
);
...
...
@@ -465,6 +465,7 @@ int BaseTracker<T>::Run(const std::vector<std::vector<float> >& dets_high, const
uint64_t
newId
=
++
m_countId
;
m_tracker
[
newId
]
=
trackPtr
;
update_high_ids
[
newId
]
=
det
;
addId
[
newId
]
=
det
;
}
/*** Delete lose tracked tracks ***/
...
...
Tracking/TrackingObj.cpp
View file @
7adcc5eb
...
...
@@ -41,6 +41,8 @@ namespace juefx_tracking
if
(
m_config
[
"matrix_angle_r_value"
])
matrix_angle_r_value
=
m_config
[
"matrix_angle_r_value"
].
as
<
float
>
();
SDK_LOG
(
SDK_INFO
,
"matrix_angle_r_value = %f"
,
matrix_angle_r_value
);
if
(
m_config
[
"using_high_low_ekf"
])
m_using_high_low_ekf
=
m_config
[
"using_high_low_ekf"
].
as
<
int32_t
>
();
std
::
vector
<
float
>
values
;
values
.
push_back
(
matrix_angle_r_value
);
m_tracker
.
SetValues
(
values
);
...
...
Tracking/TrackingObj.h
View file @
7adcc5eb
...
...
@@ -44,6 +44,7 @@ namespace juefx_tracking
std
::
vector
<
std
::
vector
<
double
>>
m_kitti2origin
;
float
m_lidar_x_angle
=
0
.
0
f
;
//修改rot_y的参数,从配置里读取
float
m_using_high_low_ekf
=
0
;
//是否使用高低配置逻辑
YAML
::
Node
m_config
;
TrackingProcessCallback
m_cb
=
nullptr
;
...
...
ros2/Track3DEx.cpp
View file @
7adcc5eb
...
...
@@ -125,13 +125,13 @@ double Track3DEx::CalculateIou(const std::vector<float>& data)
return
1.0
f
;
}
}
//
else if(obj_cameraId > 0 && obj_trackingId > 0)
//
{
//
if(obj_cameraId == input_cameraId && input_trackingId == obj_trackingId)
//
{
//
return 0.1f;
//
}
//
}
else
if
(
obj_cameraId
>
0
&&
obj_trackingId
>
0
)
{
if
(
obj_cameraId
==
input_cameraId
&&
input_trackingId
==
obj_trackingId
)
{
return
0.1
f
;
}
}
int
input_type
=
data
[
0
];
int
obj_type
=
m_obj
->
type
;
// if (input_type != obj_type)
...
...
ros2/TrackingRos2.cpp
View file @
7adcc5eb
This diff is collapsed.
Click to expand it.
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