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
910017d9
Commit
910017d9
authored
Oct 19, 2022
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改显示融合哪些传感器的信息。
parent
f85c019b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
TrackingRos2.cpp
ros2/TrackingRos2.cpp
+18
-1
No files found.
ros2/TrackingRos2.cpp
View file @
910017d9
...
...
@@ -452,8 +452,25 @@ void TrackingRos2::TrackingPorcess(objTrackListPtr objsPtr) {
markerText
.
color
.
g
=
1.0
f
;
markerText
.
color
.
b
=
0.0
f
;
markerText
.
color
.
a
=
1.0
;
std
::
string
mergeText
=
""
;
if
(
input_obj
.
data_source
==
1
)
{
mergeText
=
"L"
;
if
(
input_obj
.
camera_id
!=
0
)
mergeText
+=
"+C"
;
if
(
input_obj
.
radar_id
!=
0
)
mergeText
+=
"+R"
;
}
else
if
(
input_obj
.
data_source
>
1
&&
input_obj
.
data_source
<
10
)
{
mergeText
=
"C"
;
if
(
input_obj
.
radar_id
!=
0
)
mergeText
+=
"+R"
;
}
else
if
(
input_obj
.
data_source
>=
10
)
mergeText
=
"R"
;
char
str
[
512
]
=
{};
sprintf
(
str
,
"%lld:%.2f
"
,
iter
.
first
,
linear
.
x
);
sprintf
(
str
,
"%lld:%.2f
:%s"
,
iter
.
first
,
linear
.
x
,
mergeText
.
c_str
()
);
// sprintf(str, "%.1f:%d:%d",cof,iter.first,obj.classification[0].label);
// sprintf(str, "%.2f:%d:%.2f:%.2f",cof,obj.classification[0].label,poss.y,poss.x);
markerText
.
text
=
str
;
...
...
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