-
Notifications
You must be signed in to change notification settings - Fork 68
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
iDynTree and CasADi MATLAB bindings install different files with the same name in the MATLAB path #865
Comments
@CarlottaSartore if you have the setup in which you have installed both CasADi and iDynTree, can you please report here the output of |
I have done
So I would say I am using the Casadi one rather than the iDynTree. If I remove casadi from the matlab path I got instead the following output
I have tried also to remove from the Path both Casadi and the mex folder of the robotology. I have then added back them to the path first Casadi and then mex and I have got the following output
So I would say that in my configuration I use the Casadi SwigRef.m because I add to the path Casadi after robotology (Casadi is indeed automatically added to the path when I launch a Simulink model that depends on casadi ) @traversaro Let me know if you need any other information form my environment! |
Apparently, exactly this bug caused problem recently when executing this script:
raising this error:
|
Fixed by #868 and released in 3.2.0 for iDynTree . Fixed by robotology/yarp-matlab-bindings#65 and released in 3.4.4 fo yarp-matlab-bindings . |
iDynTree install the following files in the MATLAB path:
SwigGet.m
SwigMem.m
SwigRef.m
Differently from the rest of MATLAB files that are installed as part of the project-specific
+iDynTree
namespace, these three files are not project specific, and so are installed with the same name by other projects, such as CasADi. This would not be a problem if the files installed by the different projects were exactly the same. Unfortunately, for iDynTree/YARP And CasADi this is not the case, as iDynTree/YARP have a modified version ofSwigRef.m
since robotology-dependencies/swig#2 . As it is not simple to make sure that the CasADi version ofSwigRef.m
does not shadows the one of iDynTree introducing subtle bugs, probably the easier option is to ensure thatiDynTree
creates aiDynTreeSwigRef.m
file, to avoid any conflict.The text was updated successfully, but these errors were encountered: