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
TypeError: __init__() takes at least 3 arguments (1 given) #4
Mr.studywolf,
I am a master student and right now my direction is related to DMP, and the code you wrote is so nice.
But when I tried to run "python run.py arm3 dmp write ", I got this error"TypeError: __init__() takes at least 3 arguments (1 given)"
I followed the procedure as you said in the wiki. And I tried to debug this code, In this interface
control_shell, runner_pars = task(
arm, controller_class,
sequence=args['--sequence'], scale=args['--scale'],
force=float(args['--force']) if args['--force'] is not None else None,
write_to_file=bool(args['--write_to_file']))
I once tried to manully add the parametes like gain, tau, trajectory, but it does not work.
I am sorry that my logical maybe seems bad, I really appreciate if you can have a look!
I'm having trouble replicating this error (tested in both python 2.7 and 3.5), my guess is that you might be using the pip installed pydmps library? There were a few changes since the pip release, could you confirm if you're using the latest install from https://github.com/studywolf/pydmps ? (installed with python setup.py develop from the root folder, once cloned)
Activity
studywolf commentedon Sep 12, 2017
hmmmmm! Thanks for bringing this up!
I'm having trouble replicating this error (tested in both python 2.7 and 3.5), my guess is that you might be using the pip installed
pydmpslibrary? There were a few changes since the pip release, could you confirm if you're using the latest install from https://github.com/studywolf/pydmps ? (installed withpython setup.py developfrom the root folder, once cloned)