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
5b525a51
Commit
5b525a51
authored
Mar 07, 2022
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改id大小
parent
7c3eff67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
TrackingRos.cpp
TrackingRos.cpp
+4
-4
No files found.
TrackingRos.cpp
View file @
5b525a51
...
...
@@ -578,9 +578,9 @@ void TrackingRos::ThreadTrackingProcess()
t_marker
.
pose
.
orientation
.
y
=
0.0
;
t_marker
.
pose
.
orientation
.
z
=
0.0
;
t_marker
.
pose
.
orientation
.
w
=
1.0
;
t_marker
.
scale
.
x
=
1.
2
;
t_marker
.
scale
.
y
=
1.
2
;
t_marker
.
scale
.
z
=
1.
2
;
t_marker
.
scale
.
x
=
1.
5
;
t_marker
.
scale
.
y
=
1.
5
;
t_marker
.
scale
.
z
=
1.
5
;
t_marker
.
color
.
a
=
1.0
;
t_marker
.
color
.
r
=
0
;
t_marker
.
color
.
g
=
1.0
;
...
...
@@ -589,7 +589,7 @@ void TrackingRos::ThreadTrackingProcess()
char
str
[
512
]
=
{};
//sprintf(str, "id:{%llu},type:{%d},type_name:{%s},v:{%.2f}m/s,No:{%s}\ncolor_name:{%s},timestamp:{%llu}",
// obj.obj_id, obj.type, obj.name.c_str(), sqrt(obj.v_x* obj.v_x + obj.v_y * obj.v_y) * 10, obj.license_plate_number.c_str(), obj.color_name.c_str(), obj.frame);
sprintf
(
str
,
"
id:
%llu"
,
obj
.
obj_id
);
sprintf
(
str
,
"%llu"
,
obj
.
obj_id
);
t_marker
.
text
=
str
;
//t_marker.text = 'id:{0},type:{1},type_name:{2},v:{3:.2f}m/s,No:{4}\ncolor_name:{5},timestamp:{6}'.format(msg.obj_id, msg.type, msg.name, math.sqrt(msg.v_x * msg.v_x + msg.v_y * msg.v_y) * 10, msg.license_plate_number, msg.color_name, msg.frame)
sendMarkers
.
markers
.
emplace_back
(
t_marker
);
...
...
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