I have a system with 4 modules in a family and I want to set the accel_includes_gravity false, but it gives me a bunch of errors.
My code:
Code: Select all
families = ['mecanumBase']
names = ['frontLeft', 'backLeft', 'frontRight', 'backRight']
group = lookup.get_group_from_names(families, names)
group_command = hebi.GroupCommand(group.size)
starter_fbk= group.get_next_feedback()
group_command.accel_includes_gravity=[False,False,False,False]
group.send_command(group_command)
Traceback (most recent call last):
File "./IMUodom.py", line 34, in <module>
group_command.accel_includes_gravity=[False,False,False,False]
File "/usr/local/lib/python3.6/dist-packages/hebi/_internal/ffi/_message_types.py", line 2534, in accel_includes_gravity
_marshalling.set_group_command_bool(self._command_refs, enums.CommandBoolAccelIncludesGravity, value)
File "/usr/local/lib/python3.6/dist-packages/hebi/_internal/ffi/_marshalling.py", line 1380, in <lambda>
set_group_command_bool = lambda msg, field, value: __set_bool_group(msg, field, value, api.hwCommandSetBool)
File "/usr/local/lib/python3.6/dist-packages/hebi/_internal/ffi/_marshalling.py", line 1218, in __set_bool_group
setter(refs, bfr, size, field)
ctypes.ArgumentError: argument 2: <class 'TypeError'>: expected LP_c_int instance instead of c_bool_Array_4
Sadly I cannot understand any of this so here I am asking if did I do something wrong, or is this a bug?
Many thanks:
Istvan