Skip to content

Incorrect conversion of Rodrigues from OpenCV #933

Closed
@prensing

Description

@prensing

In OpenCVHelp, the routine rvecToRotation() does not work if the input rvec is all 0.

If rvec = (0,0,0), this is a valid value which means "no rotation". The equivalent rotation matrix is the 3x3 identity. I checked this in Python with OpenCV directly. The current version produces a Rotation3d which is all "NaN".

I am seeing this in the simulation where the MultiTag results exactly produce a EstimatedPose with no rotation.

Build is latest from master branch. Running on Linux with the simulation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions