Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The values in the "liveCameraPoseEstimation.py " file are going as NaN or Inf. #31

Open
serkanMzlm opened this issue Mar 5, 2024 · 1 comment

Comments

@serkanMzlm
Copy link

serkanMzlm commented Mar 5, 2024

I calibrated the camera and when I run it, it gives certain values for a while and then writes NaN, the program throws an error.

/usr/lib/python3/dist-packages/numpy/linalg/linalg.py:2561: RuntimeWarning: overflow encountered in reduce
  return sqrt(add.reduce(s, axis=axis, keepdims=keepdims))
Traceback (most recent call last):
  File "liveCameraPoseEstimation.py", line 369, in <module>
    pc.plot_camera(ax, vo.K, camera_pose_poses[i],
  File "/home/.local/lib/python3.10/site-packages/pytransform3d/camera.py", line 266, in plot_camera
    cam2world = check_transform(cam2world, strict_check=strict_check)
  File "/home/.local/lib/python3.10/site-packages/pytransform3d/transformations/_utils.py", line 35, in check_transform
    check_matrix(A2B[:3, :3], strict_check=strict_check)
  File "/home/.local/lib/python3.10/site-packages/pytransform3d/rotations/_utils.py", line 476, in check_matrix
    raise ValueError(error_msg)
ValueError: Expected rotation matrix, but it failed the test for inversion by transposition. np.dot(R, R.T) gives array([[nan, nan, nan],
       [nan, nan, nan],
       [nan, nan, nan]])
@Ncouch64
Copy link

Ncouch64 commented Mar 21, 2024

I am also encountering this problem, @serkanMzlm were you able to solve the problem?

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

No branches or pull requests

2 participants