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
296b6962
Commit
296b6962
authored
Sep 06, 2022
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交四维地图接口更新
parent
9ab888ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
JfxEvents.cpp
events/JfxEvents.cpp
+12
-4
No files found.
events/JfxEvents.cpp
View file @
296b6962
...
...
@@ -214,10 +214,18 @@ int JfxEvents::CalculateMap(ObjInfoAll& objAll, TrkObj& sendObj)
std
::
vector
<
long
>
vctlOutNxtRoadId
;
//ROS_INFO("begin call jfxmap");
bool
result
=
m_OfflineMap
->
GetMapData
(
ptInLoc
,
dCarAngle
,
lOutRaodId
,
vctlOutPreRoadId
,
vctlOutNxtRoadId
,
#ifdef _USING_THIRD_MAP_
int
land_road_id
=
0
;
bool
result
=
m_OfflineMap
->
GetMapData
(
ptInLoc
,
dCarAngle
,
lOutRaodId
,
vctlOutPreRoadId
,
vctlOutNxtRoadId
,
nLaneCnt
,
nOutLaneNum
,
nOutLaneType
,
nOutLeftEdgeCrossType
,
nOutRightEdgeCrossType
,
nOutSpeedLimit
,
dOutLaneAngle
,
ptOutFoot
,
land_road_id
);
#else
bool
result
=
m_OfflineMap
->
GetMapData
(
ptInLoc
,
dCarAngle
,
lOutRaodId
,
vctlOutPreRoadId
,
vctlOutNxtRoadId
,
nLaneCnt
,
nOutLaneNum
,
nOutLaneType
,
nOutLeftEdgeCrossType
,
nOutRightEdgeCrossType
,
nOutSpeedLimit
,
dOutLaneAngle
,
ptOutFoot
);
#endif
ObjInfoAll
&
obj
=
objAll
;
if
(
result
)
{
...
...
@@ -265,9 +273,9 @@ int JfxEvents::CalculateMap(ObjInfoAll& objAll, TrkObj& sendObj)
obj
.
objMapCount
++
;
#ifdef _USING_THIRD_MAP_
int
ids
=
0
;
m_OfflineMap
->
GetMapIDS
(
ptInLoc
,
dOutLaneAngle
,
ids
);
sendObj
.
laneId
=
ids
;
//
int ids = 0;
//
m_OfflineMap->GetMapIDS(ptInLoc,dOutLaneAngle, ids);
sendObj
.
laneId
=
land_road_id
;
SDK_LOG
(
SDK_INFO
,
"m_OfflineMap->GetMapIDS = %d,lon = %.8f,lat = %.8f"
,
sendObj
.
laneId
,
ptInLoc
.
dLon
,
ptInLoc
.
dLat
);
#endif
//赋值给发送的数据,之前没有后面加入的
...
...
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