Skip to content

I got an error in the "set_end_effector_params()" function #1

Description

@hoshianaaa

I added bot.set_end_effector_params (60,0,0) in homing.py.
When I ran it, I got the following error:

Traceback (most recent call last):
File "examples/homing.py", line 17, in
bot.set_end_effector_params(60, 0, 0)
File "/home/hoshina/dobot-python/lib/interface.py", line 130, in set_end_effector_params
request = Message([0xAA, 0xAA], 2, 60, True, False, [bias_x, bias_y, bias_z], direction='out')
File "/home/hoshina/dobot-python/lib/message.py", line 19, in init
self.raw_params = self.parse_params('out')
File "/home/hoshina/dobot-python/lib/message.py", line 95, in parse_params
return parser(self.params)
File "/home/hoshina/dobot-python/lib/parsers.py", line 43, in
60: [lambda x: struct.unpack('<' + 'f' * 3, bytearray(x)), None, lambda x: struct.unpack('<Q', bytearray(x))[0], lambda x: list(struct.pack('<' + 'f' * 4, *x))],
struct.error: pack expected 4 items for packing (got 3)`

Do you know how to fix the error?

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