渲染时遇到一个问题 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)
# 可视化点云
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"
# 保存点云到PLY文件
o3d.io.write_point_cloud(output_filename, point_cloud)