Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
J
jfx_rvfusion_cx
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
ChenKun
jfx_rvfusion_cx
Commits
d5379273
Commit
d5379273
authored
Jul 07, 2022
by
ChenKun
🕺🏿
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
f310159d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
fusionUdpObj.h
incl/fusionUdpObj.h
+2
-1
fusionDistribTask.cpp
src/fusionDistribTask.cpp
+3
-3
No files found.
incl/fusionUdpObj.h
View file @
d5379273
...
...
@@ -8,7 +8,8 @@
typedef
struct
_UdpRadarObj
{
std
::
string
id
;
int32_t
id
;
uint64_t
time
;
std
::
string
strId
;
std
::
string
type
;
int32_t
vehType
;
...
...
src/fusionDistribTask.cpp
View file @
d5379273
...
...
@@ -140,7 +140,7 @@ void FusionDistributeTask::onVisionData(const jfx_common_msgs::det_tracking_arra
tObjPtr
->
mDevIDStr
=
obj
.
color_name
;
tObjPtr
->
mID
=
obj
.
obj_id
;
tObjPtr
->
mModeStr
=
"v"
;
tObjPtr
->
mMS
=
obj
.
create_stamp
;
tObjPtr
->
mMS
=
obj
.
frame
;
tObjPtr
->
mLon
=
obj
.
Long
;
tObjPtr
->
mLat
=
obj
.
Lat
;
tObjPtr
->
mAlt
=
0
;
...
...
@@ -197,12 +197,12 @@ void FusionDistributeTask::udpSrv()
}
UdpRadarData
radar_data
=
{};
memcpy
((
void
*
)
radar_data
,
data
,
(
size_t
)
sizeof
(
data
));
memcpy
((
void
*
)
&
radar_data
,
data
,
(
size_t
)
sizeof
(
data
));
tObjPtr
->
mDevIDStr
=
radar_data
.
device
;
tObjPtr
->
mModeStr
=
"r"
;
for
(
const
auto
obj
:
radar_data
.
objs
)
{
tObjPtr
->
mID
=
obj
.
id
;
tObjPtr
->
mMS
=
obj
.
create_stamp
;
tObjPtr
->
mMS
=
obj
.
time
;
tObjPtr
->
mLon
=
obj
.
lon
;
tObjPtr
->
mLat
=
obj
.
lat
;
tObjPtr
->
mAlt
=
0
;
...
...
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