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
db0bbf56
Commit
db0bbf56
authored
Dec 13, 2021
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交获取prob数据
parent
27623ffb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
BaseTrack.cpp
BaseTracker/BaseTrack.cpp
+4
-0
BaseTrack.h
BaseTracker/BaseTrack.h
+1
-0
TrackingRos.cpp
TrackingRos.cpp
+1
-1
No files found.
BaseTracker/BaseTrack.cpp
View file @
db0bbf56
...
...
@@ -63,6 +63,10 @@ float BaseTrack::GetNIS() const
return
0
;
return
kf_
->
NIS_
;
}
float
BaseTrack
::
GetProb
()
const
{
return
m_prob
;
}
bool
BaseTrack
::
IsLost
()
{
...
...
BaseTracker/BaseTrack.h
View file @
db0bbf56
...
...
@@ -20,6 +20,7 @@ public:
virtual
void
Update
(
const
std
::
vector
<
float
>&
data
);
virtual
int
GetStateData
(
std
::
vector
<
float
>&
data
);
virtual
float
GetNIS
()
const
;
virtual
float
GetProb
()
const
;
virtual
bool
IsLost
();
virtual
double
CalculateIou
(
const
std
::
vector
<
float
>&
data
)
=
0
;
...
...
TrackingRos.cpp
View file @
db0bbf56
...
...
@@ -144,7 +144,7 @@ void TrackingRos::ThreadTrackingProcess()
float
gx
=
0.0
f
;
float
gy
=
0.0
f
;
CalculateGuassPos
(
obj
.
x
,
obj
.
y
,
obj
.
z
,
m_trans
,
gx
,
gy
);
SDK_LOG
(
SDK_INFO
,
"CalculateGuassPos x = %f,y = %f, gx = %f, gy = %f
"
,
obj
.
x
,
obj
.
y
,
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
];
...
...
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