Closed real-Sandip-Das closed 5 months ago
changing the flag in solvePnP
to cv::SOLVEPNP_IPPE
also results in the same issue
The debug output looks like this:
On changing the flag to cv::SOLVEPNP_P3P
, The output rvec
s and tvec
s are filled with zero, strangely enough
If you are not getting nan
in any of your examples, can you please try again with rectified image input?(by e.g. using image_proc
)
Upon further investigation, the root cause of the issue seems to be https://github.com/fictionlab/ros_aruco_opencv/issues/46
The issue is resolved(i.e. the output transform data is no longer composed of nan
components) in this pull request: https://github.com/fictionlab/ros_aruco_opencv/pull/45 (not yet merged)
On debugging, the issue can be narrowed down to the function
cv::solvePnP
makingrvec_final
andtvec_final
entries full ofnan
and-nan
invoid callback_image(...)
Reproducible example: the following launch file that makes use of webcam calibration data saved in
~/.ros/camera_info/camera.yaml
camera.yaml: