Skip to content

[Potential bug] Regardless of the input, pyopengv.relative_pose_sixpt( ) returns NAN.  #123

@irtizaimmersal

Description

@irtizaimmersal

@laurentkneip @paulinus @simogasp

I am running a small test for pyopengv.relative_pose_sixpt( ). Tried multiple inputs, it appears it always return NAN and as a last entry I get identity.

d = RelativePoseDataset(10, 0.0, 0.0)
 indices = np.random.choice(d.bearing_vectors1.shape[0], 6, replace=False)
 sixpt_rotations = pyopengv.relative_pose_sixpt(
        d.bearing_vectors1[indices],
        d.bearing_vectors2[indices],
    )
    print("relative_pose_sixpt", sixpt_rotations)

I get all arrays as NAN except for last, see below.

 ...
 ...
  array([[nan, nan, nan],
       [nan, nan, nan],
       [nan, nan, nan]]), array([[nan, nan, nan],
       [nan, nan, nan],
       [nan, nan, nan]]), array([[nan, nan, nan],
       [nan, nan, nan],
       [nan, nan, nan]]), array([[1., 0., 0.],
       [0., 1., 0.],
       [0., 0., 1.]])]

`

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