小编Sum*_*man的帖子

沿 z 轴旋转点云

我正在尝试旋转 PCD,但出现以下错误,如何修复该错误 -

import open3d as o3d 
import numpy as np 

xyz = o3d.io.read_point_cloud("data.pcd")
xyz = xyz.rotate(xyz.get_rotation_matrix_from_xyz((0.7 * np.pi, 0, 0.6 * np.pi)),center=True)
Run Code Online (Sandbox Code Playgroud)

错误 -

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: get_rotation_matrix_from_xyz(): incompatible function arguments. The following argument types are supported:
    1. (rotation: numpy.ndarray[float64[3, 1]]) -> numpy.ndarray[float64[3, 3]]

Invoked with: array([[-0.30901699, -0.95105652,  0.        ],
       [-0.55901699,  0.18163563, -0.80901699],
       [ 0.76942088, -0.25      , -0.58778525]]); kwargs: center=True
Run Code Online (Sandbox Code Playgroud)

我该如何解决同样的问题

point-cloud-library open3d

4
推荐指数
1
解决办法
6131
查看次数

标签 统计

open3d ×1

point-cloud-library ×1