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
3ae37a43
Commit
3ae37a43
authored
Jun 29, 2022
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交更新
parent
289d06ee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
Track3DEx.cpp
ros2/Track3DEx.cpp
+20
-0
Track3DEx.h
ros2/Track3DEx.h
+1
-0
No files found.
ros2/Track3DEx.cpp
View file @
3ae37a43
...
...
@@ -18,6 +18,26 @@ void Track3DEx::Init(const std::vector<float>& data)
tmp
[
3
]
+=
2
*
_PI_
;
BaseTrack
::
Init
(
tmp
);
}
void
Track3DEx
::
Predict
()
{
if
(
kf_
==
nullptr
)
return
;
point2d
pos
=
{};
pos
.
x
=
kf_
->
x_
[
0
];
pos
.
y
=
kf_
->
x_
[
1
];
if
(
pos
.
x
>
80
)
{
kf_
->
R_
(
0
,
0
)
=
10
;
kf_
->
R_
(
1
,
1
)
=
10
;
}
else
{
kf_
->
R_
(
0
,
0
)
=
1
;
kf_
->
R_
(
1
,
1
)
=
1
;
}
Track3D
::
Predict
();
}
void
Track3DEx
::
UpdateDataCheck
(
const
std
::
vector
<
float
>&
data
,
std
::
vector
<
float
>&
out
)
{
if
(
kf_
==
nullptr
)
...
...
ros2/Track3DEx.h
View file @
3ae37a43
...
...
@@ -11,6 +11,7 @@ public:
~
Track3DEx
(){}
virtual
void
Init
(
const
std
::
vector
<
float
>&
data
);
virtual
void
Predict
();
virtual
void
UpdateDataCheck
(
const
std
::
vector
<
float
>&
data
,
std
::
vector
<
float
>&
out
);
//对于输入数据进行修正
...
...
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