渲染時遇到一個問題 ibGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
conda升級libstdcxx-ng解決
conda config --add channels conda-forge
conda config --show channels
conda install libstdcxx-ng
可視化
import open3d as o3d
def visualize_pcd(pcd_file_path):
# 加載PCD文件
point_cloud = o3d.io.read_point_cloud(pcd_file_path)
# 可視化點(diǎn)云
o3d.visualization.draw_geometries([point_cloud])
# 替換為你的PCD文件路徑
pcd_file_path = 'map.pcd'
visualize_pcd(pcd_file_path)
保存ply
point_cloud = o3d.io.read_point_cloud(pcd_file_path)
# 指定要保存的PLY文件路徑
output_filename = "map.ply"
# 保存點(diǎn)云到PLY文件
o3d.io.write_point_cloud(output_filename, point_cloud)