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
3ad91fc5
Commit
3ad91fc5
authored
Feb 24, 2023
by
wangqibing
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add type3
parent
c5b1c0a4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
TrackingRos.cpp
TrackingRos.cpp
+13
-2
TrackingRos.h
TrackingRos.h
+1
-1
No files found.
TrackingRos.cpp
View file @
3ad91fc5
...
...
@@ -870,10 +870,16 @@ void TrackingRos::ThreadTrackingProcess()
t_marker
.
scale
.
y
=
4
;
t_marker
.
scale
.
z
=
4
;
}
if
(
mark_type_text
==
3
)
{
t_marker
.
scale
.
x
=
4
;
t_marker
.
scale
.
y
=
4
;
t_marker
.
scale
.
z
=
4
;
}
t_marker
.
color
.
a
=
1.0
;
t_marker
.
color
.
r
=
0
;
t_marker
.
color
.
g
=
0
;
t_marker
.
color
.
b
=
1.
0
;
t_marker
.
color
.
g
=
1.
0
;
t_marker
.
color
.
b
=
0
;
t_marker
.
lifetime
=
ros
::
Duration
(
0.5
);
char
str
[
512
]
=
{};
//sprintf(str, "id:{%llu},type:{%d},type_name:{%s},v:{%.2f}m/s,No:{%s}\ncolor_name:{%s},timestamp:{%llu}",
...
...
@@ -891,6 +897,11 @@ void TrackingRos::ThreadTrackingProcess()
t_marker
.
text
=
str
;
}
if
(
mark_type_text
==
2
)
{
sprintf
(
str
,
"%llu:%d"
,
obj
.
obj_id
,
obj
.
type
);
t_marker
.
text
=
str
;
}
if
(
mark_type_text
==
3
)
{
sprintf
(
str
,
"%llu:%.2f"
,
obj
.
obj_id
,
sqrt
(
obj
.
v_x
*
obj
.
v_x
+
obj
.
v_y
*
obj
.
v_y
)
*
10
);
t_marker
.
text
=
str
;
...
...
TrackingRos.h
View file @
3ad91fc5
...
...
@@ -67,5 +67,5 @@ public:
std
::
string
m_root_dir
;
//存储统一的根目录路径
std
::
string
m_nodeName
;
//点位信息,现在就是10-1,1-1等信息
YAML
::
Node
m_config
;
//配置的yaml文件
int
mark_type_text
=
0
;
//0-type,1-object_id,2-text...
int
mark_type_text
=
0
;
//0-type,1-object_id,2-
object-type,3-
text...
};
wangqibing
@alexander
mentioned in commit
b41fc456
·
Mar 21, 2023
mentioned in commit
b41fc456
mentioned in commit b41fc4567c5d02a0e1c895de31d016097efca262
Toggle commit list
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