Skip to content

Fix estimate_relative_pose bundle_opt argument for poselib>=2.0.4 (#154) - #175

Open
kunjikakgp wants to merge 1 commit into
cvg:mainfrom
kunjikakgp:kunjikakgp-patch-1
Open

Fix estimate_relative_pose bundle_opt argument for poselib>=2.0.4 (#154)#175
kunjikakgp wants to merge 1 commit into
cvg:mainfrom
kunjikakgp:kunjikakgp-patch-1

Conversation

@kunjikakgp

Copy link
Copy Markdown

Fixes #154. poselib.estimate_relative_pose() was called with only 5 positional args; on poselib builds where bundle_opt is not resolved as optional, this raises a TypeError during overload resolution. Passing an explicit empty bundle_opt dict fixes it. Verified against poselib 2.0.4 and 2.0.5.

Testing: reproduced the failing call signature directly against the compiled poselib extension using the same argument types as this code path (numpy float64 [m,2] point arrays, dict camera params). Confirmed the 6-arg call (with explicit bundle_opt={}) succeeds on both poselib==2.0.4 and poselib==2.0.5, and that python -m py_compile passes on the patched file.

…g#154)

Fixes cvg#154. poselib.estimate_relative_pose() was called with only 5 positional args; on poselib builds where bundle_opt is not resolved as optional, this raises a TypeError during overload resolution. Passing an explicit empty bundle_opt dict fixes it. Verified against poselib 2.0.4 and 2.0.5.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

poselib-2.0.4 estimate_relative_pose need an additional dict as input.

1 participant