我试图在 Python 中的 Open3d 中可视化一些点云数据,屏幕呈现可视化器,但是一旦我尝试与它交互,它就会崩溃并显示上述消息。
import open3d as o3d
pcd = o3d.geometry.PointCloud()
pcd.points = o3d.utility.Vector3dVector(test_coords)
o3d.io.write_point_cloud("oakland.ply",pcd)
pcd_load = o3d.io.read_point_cloud("oakland.ply")
o3d.visualization.draw_geometries([pcd_load])
Run Code Online (Sandbox Code Playgroud)
我无法真正理解发生这种情况的任何原因或如何在线解决此问题。
每当我尝试在 ipython 单元中运行该程序时,都会出现一个奇怪的错误。
test_pts = sorted_points
new_segments = []
import pdb; pdb.set_trace()
for i in range(0, len(test_pts)-1):
x1 = test_pts[i][0]; y1 = test_pts[i][1]; x2 = test_pts[i][2]; y2 = test_pts[i][3]; angle1 = test_pts[i][4]
print(x1, y1, x2, y2, angle1)
for j in range(i + 1, len(test_pts)):
n_x1 = test_pts[j][0]; n_y1 = test_pts[j][1]; n_x2 = test_pts[j][2]; n_y2 = test_pts[j][3]; angle2 = test_pts[j][4]
if (isclose(angle1, angle2, rel_tol = 1)) and (isclose(x1, x2, rel_tol = 1) and (isclose(y1, y1, rel_tol = 1))):
print(n_x1, n_y1, n_x2, …Run Code Online (Sandbox Code Playgroud) 我想反转列表中的所有其他单词。我的清单是-
['Bananas', 'Apples', 'Fruits', 'Chocolate', 'Watermelon', 'Kiwi', 'Avacado', 'Lemon', 'Lime', 'Money']
Run Code Online (Sandbox Code Playgroud)
我该如何反转其他所有单词,使输出应该正确。
['Bananas', 'selppA', 'Fruits', 'etalocohC', 'Watermelon', 'iwiK', 'Avacado', 'nomeL', 'Lime', 'yenoM']
Run Code Online (Sandbox Code Playgroud)
首字母不必很大,我只是这样。非常感激