-
Notifications
You must be signed in to change notification settings - Fork 81
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
Certain joint offsets lead to "NameError: global name 'sqrt' is not defined" in calc_base_parms() #10
Comments
I get a similar error for the same lines of code, only it's global name 'math' not defined. This is using the example code from the Git page. |
I manage to fix mine by changing the following code in robotmodel.py:
Since sin, cos and sign are exported to regressor_fun, they need to be from the correct library, which I guess is math instead of numpy. This seemed to do the trick. |
Thanks @ashlin-k , I remember I had some trouble with the sin, cos, sign being local or global or whatever when developing the package, and I had never fully understood if that was the right way to do it. |
The model in the following code leads to an error:
Whereby changing the offsets of the first four joints works fine:
Console output and error message:
The text was updated successfully, but these errors were encountered: