-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrap IPWMControl and ICurrentControl in SWIG bindings #1966
Comments
@traversaro I'm aiming to submit a patch (hopefully before the 3.4 release) targeting this issue. However, I noticed an inconsistency in the pointer-like signature of several methods. For instance, this is how Lines 814 to 816 in f91ceb5
Here, a one-dimensional vector is expected as In contrast, this is Lines 915 to 920 in f91ceb5
So, two approaches have been followed to tackle this problem, respectively:
Judging by the adoption rate in yarp.i, I guess the former is preferred. Would you agree and expect that methods from missing interfaces (in the scope of this issue and beyond) follow this approach? Are there any exceptions to this "rule", or is there any unwritten convention (I'd say the |
@PeterBowman we are aiming at releasing YARP 3.4 at the end of the month, which means we are now in a "soft freeze" state, I think we can make an exception for bindings, but if you want this in 3.4, please submit the patch as soon as possible... |
Fixed in master. Thanks @PeterBowman! |
Is your feature request related to a problem? Please describe.
The YARP interfaces for motion control need to be adapted to be used in scripting languages via SWIG, see for example how the
IPositionControl
orIMotorEncoders
interfaces are extended.The
IPWMControl
andICurrentControl
are currently wrapped in SWIG (yarp/bindings/yarp.i
Line 762 in 24eb211
Describe the solution you'd like
An implementation that expose the
getNumberOfMotors
and other methods that are not automatically wrapped by SWIG in a usable form, similar to what done for other interfaces.The text was updated successfully, but these errors were encountered: