You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PR for RuntimeWarning: divide by zero encountered in scalar divide #383
/home/user/.../anaconda3/envs/.../lib/python3.9/site-packages/pyrep/robots/configuration_paths/arm_configuration_path.py:172: RuntimeWarning:
divide by zero encountered in scalar divide
/home/user/.../anaconda3/envs/.../lib/python3.9/site-packages/pyrep/robots/configuration_paths/arm_configuration_path.py:181: RuntimeWarning:
invalid value encountered in multiply
To avoid such error, it seems necessary to do something e.g. to change line 172 from t = (pos - lengths[i]) / (lengths[i + 1] - lengths[i]) to t = (pos - lengths[i]) / (lengths[i + 1] - lengths[i]) if (lengths[i + 1] - lengths[i]) else 0.
Thank you for your prompt reply!
I suspected it might be an issue with the version, but it seems that’s not the case.
If you find out anything else, please let me know. I’ll also do some research on my end.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Activity
MurakamiNatsuki commentedon Aug 22, 2024
Hi! I got same error.
Did you manage to solve it as in your example? Or is it still unresolved?
auee028 commentedon Aug 22, 2024
MurakamiNatsuki commentedon Aug 23, 2024
Thank you for your prompt reply!
I suspected it might be an issue with the version, but it seems that’s not the case.
If you find out anything else, please let me know. I’ll also do some research on my end.
auee028 commentedon Aug 23, 2024
stale commentedon Apr 26, 2025
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.