Skip to content

TypeError: __init__() takes at least 3 arguments (1 given) #4

Description

@tony1994513

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 got the error and get inside, in here

control_shell = controller_class.Shell(controller=controller,

                                       **control_pars)

and get inside

super(Shell, self).__init__( **kwargs)

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions