Open3D
Open3D copied to clipboard
Segmentation fault when calling open3d.geometry.get_rotation_matrix_from_quaternion()
Checklist
- [X] I have searched for similar issues.
- [X] For Python issues, I have tested with the latest development wheel.
- [X] I have checked the release documentation and the latest documentation (for
main
branch).
Describe the issue
When running the function open3d.geometry.get_rotation_matrix_from_quaternion() on the array [ 0.0045347, -0.00669564, -0.00132431, 0.99996642] i get a segmentation fault. The issue occurs with numpy 2.0.0, using i.e. numpy 1.26.4 solves the problem.
Steps to reproduce the bug
import open3d as o3d
array = [ 0.0045347, -0.00669564, -0.00132431, 0.99996642]
R = o3d.geometry.get_rotation_matrix_from_quaternion(array)
Error message
Segmentation fault (core dumped)
Expected behavior
R = array([[-0.99986921, -0.00905136, -0.01340284], [ 0.00908683, -0.99995537, -0.00258781], [-0.01337882, -0.00270926, 0.99990683]])
No response
Open3D, Python and System information
- Operating system: Ubuntu 20.04.1
- Python version: Python 3.10.14
- Open3D version: 0.18.0
- System architecture: x86
- Is this a remote workstation?: no
- How did you install Open3D?: pip
Additional information
No response