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
150d5b9c
Commit
150d5b9c
authored
Jul 08, 2022
by
ChenKun
🕺🏿
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug type
parent
b301b51b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
fusionDistribTask.cpp
src/fusionDistribTask.cpp
+16
-3
No files found.
src/fusionDistribTask.cpp
View file @
150d5b9c
...
...
@@ -13,6 +13,7 @@
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#include <cmath>
FusionDistributeTask
::
FusionDistributeTask
()
{
...
...
@@ -181,14 +182,26 @@ void FusionDistributeTask::onLidarData(const jfx_common_msgs::det_tracking_array
tObjPtr
->
mLon
=
obj
.
Long
;
tObjPtr
->
mLat
=
obj
.
Lat
;
tObjPtr
->
mAlt
=
0
;
tObjPtr
->
mHeading
=
0
;
tObjPtr
->
mSpeed
=
0
;
tObjPtr
->
mHeading
=
obj
.
rot_y
;
tObjPtr
->
mSpeed
=
sqrt
(
pow
(
obj
.
v_x
,
2
)
+
pow
(
obj
.
v_y
,
2
)
+
pow
(
obj
.
v_z
,
2
))
;
tObjPtr
->
mLength
=
obj
.
l
;
tObjPtr
->
mWidth
=
obj
.
w
;
tObjPtr
->
mHeight
=
obj
.
h
;
tObjPtr
->
mXPos
=
obj
.
x
;
tObjPtr
->
mYPos
=
obj
.
y
;
tObjPtr
->
mTypeStr
=
obj
.
name
;
if
(
"person"
==
obj
.
name
)
{
tObjPtr
->
mTypeStr
=
"Person"
;
}
else
if
(
"car"
==
obj
.
name
)
{
tObjPtr
->
mTypeStr
=
"Car"
;
}
else
if
(
"bus"
==
obj
.
name
)
{
tObjPtr
->
mTypeStr
=
"Bus"
;
}
else
if
(
"truck"
==
obj
.
name
)
{
tObjPtr
->
mTypeStr
=
"Truck"
;
}
else
if
(
"motorbike"
==
obj
.
name
)
{
tObjPtr
->
mTypeStr
=
"Motorbike"
;
}
else
{
tObjPtr
->
mTypeStr
=
"UnKnown"
;
}
tObjPtr
->
mSubType
=
0
;
mBufTrafficObjListMutex
.
lock
();
...
...
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