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

TypeError: __init__() missing 1 required positional argument: 'ref_rotation' #6

Open
JBrame opened this issue Feb 8, 2024 · 1 comment

Comments

@JBrame
Copy link

JBrame commented Feb 8, 2024

Firstly, thanks for creating and sharing the library, it looks like something that might be really useful to me.

However, I have just tried to use it and the there isn't any documentation around the parameter ref_rotation.

The code states:

    To initialize, pass 6 parameters
    r_B = Radius for circumscribed circle where all the anchor points for servo shaft lie on
    r_P = Radius for circumscribed circle where all anchor points for platform lie on
    lhl = |h| = length of servo horn
    ldl = |d| = length of rod
    alpha_B =
    alpha_P =

Yet the function takes 7 parameters and there is no default for ref_rotation:
def __init__(s, r_B, r_P, lhl, ldl, gamma_B, gamma_P, ref_rotation)

Can you tell me what ref_rotation is and how it should be used please?

@JBrame
Copy link
Author

JBrame commented Feb 8, 2024

I actually just found a comment about this in the jupyter notebook, but I'm not 100% sure what it does, could you explain this a little more for me if possible?

The only changes made between this tutorial and the python class is the inclusion of a reference rotation, which rotates the entire platform in the z-axis to align with your applications. Note: using 5pi/6 as reference rotation, you'll find that the longer edge of the top platform now aligns with the X axis, which I personally find to me more aesthetically pleasing :>

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

1 participant