-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Hello,
Thank you for creating this library and making the API available in python.
In the _libdrd.drdGetPositionAndOrientation function in the drd lib the matrix is passed by reference, however this should be an instance according to the api.
I get the following output:
Traceback (most recent call last):
File "PATH", line 7, in
print(omega.getPosition())
^^^^^^^^^^^^^^^^^^^
File "PATH", line 52, in getPosition
Position = drd.getPositionAndOrientation()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File PATH", line 462, in getPositionAndOrientation
err: int = _libdrd.drdGetPositionAndOrientation(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ctypes.ArgumentError: argument 8: TypeError: expected LP_c_double_Array_3_Array_3 instance instead of pointer to c_double_Array_3_Array_3
This can be fixed by removing byref at line 466 at the init.py of the drd lib.
Is this the correct fix or am i missing something?