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
7dff5785
Commit
7dff5785
authored
Jan 19, 2022
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交更新
parent
4d534793
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
test.py
script/test.py
+1
-1
trans_data.py
script/trans_data.py
+4
-3
No files found.
script/test.py
View file @
7dff5785
...
...
@@ -21,7 +21,7 @@ if __name__ == '__main__':
str1
=
str
.
split
(
'/'
)[
-
1
]
print
(
str1
[
0
:
str1
.
find
(
'.pcd'
)])
file_path
=
"
D:
/pointcloud1.pcd"
file_path
=
"
/home/oscar/ros/git/jfxmap_python
/pointcloud1.pcd"
pcd
=
o3d
.
io
.
read_point_cloud
(
file_path
)
print
(
pcd
)
print
(
pcd
.
dimension
())
...
...
script/trans_data.py
View file @
7dff5785
...
...
@@ -501,6 +501,7 @@ if __name__ == '__main__':
xyz
=
np
.
array
(
pcd
.
points
)
savecloud
=
o3d
.
geometry
.
PointCloud
()
savecloud
+=
g_pcd
drawpointcloud
=
[]
merge_geos
=
[
pcd
]
exportDrawCloud
=
[
g_pcd
]
...
...
@@ -553,7 +554,7 @@ if __name__ == '__main__':
merge_geos
+=
[
heading_pcd
]
drawpointcloud
+=
[
heading_pcd
]
exportDrawCloud
+=
[
heading_pcd
]
savecloud
+=
heading_pcd
#
savecloud += heading_pcd
f1
.
close
()
if
vis
:
...
...
@@ -562,8 +563,8 @@ if __name__ == '__main__':
drawpointcloud
+=
[
axis_pcd
]
exportDrawCloud
+=
[
axis_pcd
]
#pcd.paint_uniform_color([1.00, 0, 0])
# savefile = "D:
/pointcloud" + str(num) + ".pcd"
#
o3d.io.write_point_cloud(savefile,savecloud)
savefile
=
"/home/oscar/ros/git/jfxmap_python
/pointcloud"
+
str
(
num
)
+
".pcd"
o3d
.
io
.
write_point_cloud
(
savefile
,
savecloud
)
num
+=
1
# custom_draw_geometry_with_key_callback(merge_geos, file_path)
# custom_draw_geometry_with_key_callback(drawpointcloud, file_path)
...
...
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