-
Notifications
You must be signed in to change notification settings - Fork 21
Description
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?