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
c273ab2b
Commit
c273ab2b
authored
Feb 16, 2023
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交传递的信息修改
parent
84cae0ae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
8 deletions
+16
-8
EventsRos.cpp
EventsRos.cpp
+4
-2
JfxEvents.cpp
events/JfxEvents.cpp
+4
-2
EventInfo.h
msg/EventInfo.h
+8
-4
No files found.
EventsRos.cpp
View file @
c273ab2b
...
...
@@ -364,9 +364,11 @@ void EventsRos::SendRosEvents(TrkObjsPtr& outs)
msg
.
is_turn
=
iter
.
is_turn
==
0
?
false
:
true
;
msg
.
acc_x
=
iter
.
acc_x
;
msg
.
acc_y
=
iter
.
acc_y
;
msg
.
nodeId
=
iter
.
nodeId
;
msg
.
nodeIdId
=
iter
.
nodeIdId
;
msg
.
nodeIdRegion
=
iter
.
nodeIdRegion
;
msg
.
linkName
=
iter
.
linkName
;
msg
.
upstreamNodeId
=
iter
.
upstreamNodeId
;
msg
.
upstreamNodeIdId
=
iter
.
upstreamNodeIdId
;
msg
.
upstreamNodeIdRegion
=
iter
.
upstreamNodeIdRegion
;
msg
.
sectionId
=
iter
.
sectionId
;
msg
.
laneId
=
iter
.
_laneId
;
for
(
auto
_its
:
iter
.
points
)
...
...
events/JfxEvents.cpp
View file @
c273ab2b
...
...
@@ -310,9 +310,11 @@ int JfxEvents::CalculateMap(ObjInfoAll& objAll, TrkObj& sendObj)
sendObj
.
footLon
=
ptOutFoot
.
dLon
;
//垂足lon
sendObj
.
footLat
=
ptOutFoot
.
dLat
;
//垂足lat
#ifdef _USING_NEW_JFXMAP_
sendObj
.
nodeId
=
roadInfo
.
lNodeId
;
sendObj
.
nodeIdId
=
roadInfo
.
lNodeIdId
;
sendObj
.
nodeIdRegion
=
roadInfo
.
lNodeIdRegion
;
sendObj
.
linkName
=
roadInfo
.
strCrossName
;
sendObj
.
upstreamNodeId
=
roadInfo
.
lUpstreamNodeId
;
sendObj
.
upstreamNodeIdId
=
roadInfo
.
lUpstreamNodeIdId
;
sendObj
.
upstreamNodeIdRegion
=
roadInfo
.
lUpstreamNodeIdRegion
;
sendObj
.
sectionId
=
roadInfo
.
nSectionId
;
sendObj
.
_laneId
=
roadInfo
.
nLaneId
;
#endif
...
...
msg/EventInfo.h
View file @
c273ab2b
...
...
@@ -92,9 +92,11 @@ typedef struct _TrkObj {
double
footLat
=
0
.
0
f
;
//垂足lat
double
acc_x
=
0
.
0
f
;
//x轴加速度
double
acc_y
=
0
.
0
f
;
//y轴加速度
uint32_t
nodeId
=
0
;
// 所在交叉路口id
uint32_t
nodeIdId
=
0
;
// 所在交叉路口id
uint32_t
nodeIdRegion
=
0
;
// 所在交叉路口id
std
::
string
linkName
;
// 所在路段,路段名称
uint32_t
upstreamNodeId
=
0
;
//所在路段的上游节点id
uint32_t
upstreamNodeIdId
=
0
;
//所在路段的上游节点id
uint32_t
upstreamNodeIdRegion
=
0
;
//所在路段的上游节点id
uint32_t
sectionId
=
0
;
// 所在的分段路段
uint32_t
_laneId
=
0
;
// 所在的车道
std
::
vector
<
Point64
>
points
;
//8个顶点的经纬高
...
...
@@ -141,9 +143,11 @@ AJSON(TrkObj,
footLat
,
acc_x
,
acc_y
,
nodeId
,
nodeIdId
,
nodeIdRegion
,
linkName
,
upstreamNodeId
,
upstreamNodeIdId
,
upstreamNodeIdRegion
,
sectionId
,
_laneId
,
points
,
...
...
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