Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
E
event_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
event_src
Commits
ec60cb65
Commit
ec60cb65
authored
Mar 29, 2022
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交更新
parent
ed621f2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
EventsRos.cpp
EventsRos.cpp
+7
-0
No files found.
EventsRos.cpp
View file @
ec60cb65
...
...
@@ -304,6 +304,11 @@ void EventsRos::SendRosEvents(TrkObjsPtr& outs)
{
#if defined(_ROS_XISHAN_) || defined(_ROS_HEFEI_R_) || defined(_ROS_HEFEI_L_) || defined(_SEND_MSG_TO_PUBLIC_ROS_)
jfx_common_msgs
::
OutFusionEventObjs
eventMsgs
=
{};
uint64_t
cur_timestamp
=
0
;
if
(
outs
->
pt
.
size
()
==
4
)
{
cur_timestamp
=
outs
->
pt
[
0
];
}
for
(
auto
&
iter
:
outs
->
objs
)
{
jfx_common_msgs
::
OutFusionEventObj
msg
=
{};
...
...
@@ -320,6 +325,8 @@ void EventsRos::SendRosEvents(TrkObjsPtr& outs)
msg
.
all_id
=
iter
.
id
;
msg
.
type
=
iter
.
name
;
msg
.
plate_no
=
iter
.
licensePlateNumber
;
if
(
iter
.
time
<
cur_timestamp
)
iter
.
time
=
cur_timestamp
;
msg
.
time
=
iter
.
time
;
msg
.
Prob
=
iter
.
prob
;
msg
.
now_x
=
iter
.
nowX
;
...
...
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