Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
J
jfxmap_python
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
jfxmap_python
Commits
36cc262e
Commit
36cc262e
authored
Jan 26, 2022
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交修改
parent
d4dd999b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
jfxmap.py
script/jfxmap_lib/jfxmap.py
+2
-2
libjfxmap_python.so
script/jfxmap_lib/libjfxmap_python.so
+0
-0
trans_and_export_data_multi.py
script/trans_and_export_data_multi.py
+10
-3
No files found.
script/jfxmap_lib/jfxmap.py
View file @
36cc262e
...
...
@@ -11,4 +11,4 @@ def init_jfxmap(path,cfg):
def
get_map_data
(
lat
,
lon
,
heading
):
info
=
libjfxmap_python
.
GetMapData
(
lat
,
lon
,
heading
)
return
info
.
isInMap
,
info
.
lOutRaodId
,
info
.
vctlOutPreRoadId
,
info
.
vctlOutNxtRoadId
,
info
.
nLaneCnt
,
info
.
nOutLaneNum
,
info
.
nOutLaneType
,
info
.
nOutLeftEdgeCrossType
,
info
.
nOutRightEdgeCrossType
,
info
.
nOutSpeedLimit
,
info
.
dOutLaneAngle
,
info
.
ptOutFoot_lat
,
info
.
ptOutFoot_lon
\ No newline at end of file
return
info
.
isInMap
,
info
.
lOutRaodId
,
info
.
vctlOutPreRoadId
,
info
.
vctlOutNxtRoadId
,
info
.
nLaneCnt
,
info
.
nOutLaneNum
,
info
.
nOutLaneType
,
info
.
nOutLeftEdgeCrossType
,
info
.
nOutRightEdgeCrossType
,
info
.
nOutSpeedLimit
,
info
.
dOutLaneAngle
,
info
.
ptOutFoot_lat
,
info
.
ptOutFoot_lon
,
info
.
isInCross
\ No newline at end of file
script/jfxmap_lib/libjfxmap_python.so
View file @
36cc262e
No preview for this file type
script/trans_and_export_data_multi.py
View file @
36cc262e
...
...
@@ -632,15 +632,22 @@ class pcdThread (threading.Thread):
# print("call get ex data isInMap = ",mapInfoExport)
if
mapInfoExport
[
0
]
!=
1
:
continue
;
laneAngle
=
mapInfoExport
[
10
];
detaAngel
=
laneAngle
-
angle2
;
laneAngle
=
mapInfoExport
[
10
]
isInCross
=
mapInfoExport
[
13
]
# if isInCross == 1:
# print("inCross pos = [",exportCenterBL[0],",",exportCenterBL[1],"]")
detaAngel
=
laneAngle
-
angle2
while
detaAngel
>
180
:
detaAngel
-=
360
while
detaAngel
<
-
180
:
detaAngel
+=
360
# print("angle = ",angle2," laneAngle = ",laneAngle," detaAngel = ",detaAngel)
if
bbox
[
0
]
!=
"pedestrian"
and
abs
(
detaAngel
)
>
30
:
continue
;
continue
if
bbox
[
0
]
==
"pedestrian"
and
isInCross
==
0
:
continue
elif
bbox
[
0
]
==
"pedestrian"
:
print
(
"pedestrian in cross, pos = ["
,
exportCenterBL
[
0
],
","
,
exportCenterBL
[
1
],
"]"
)
#获取到汽车点云符合条件,可以添加到新点云里
# f1.write('%f,%f,%f,%f,%f,%f,%f,%f,%f,%f\n'%(exportCenterBL[0],exportCenterBL[1],bbox[4][0], bbox[4][1], bbox[4][2],bbox[6][0], bbox[6][1], bbox[6][2],angle2,laneAngle))
name
=
pcd_file
.
split
(
"/"
)[
-
1
]
...
...
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