Skip to content

Convert from rvec to quaternion using nalgebra? #668

@lucasw

Description

@lucasw

If I get an rvec back from for example opencv::aruco::estimate_pose_charuco_board_def(), how can I convert it to a quaternion (ideally using nalgebra or similar, not the error prone cutting and pasting of a big block of quaternion math code)?

This isn't really an issue with opencv-rust, it may go better in a discussion section if that were enabled here.

I'll probably have it figured out in a little while, and I'll post the answer and maybe it'll save someone else some time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions