Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sl.Matrix4f from numpy.ndarray #231

Open
2 tasks done
frigusgulo opened this issue Nov 7, 2023 · 0 comments
Open
2 tasks done

sl.Matrix4f from numpy.ndarray #231

frigusgulo opened this issue Nov 7, 2023 · 0 comments

Comments

@frigusgulo
Copy link

frigusgulo commented Nov 7, 2023

Preliminary Checks

  • This issue is not a duplicate. Before opening a new issue, please search existing issues.
  • This issue is not a question, bug report, or anything other than a feature request directly related to this project.

Proposal

Add the method to sl.Matrix4f so that users can instantiate directly from a numpy.ndarray object

i.e.
pose_matrix = np.eye(4)
zed_mat = sl.Matrix4f().from_numpy(pose_matrix)

Use-Case

This would make building sl.Pose() and sl.Transform() objects much cleaner, particularly when using microservice architectures to send a transformation matrix that needs to be a string.

transform = sl.Transform.init_matrix(zed_mat)

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant