robotology / robotology-superbuild

CMake/YCM-based superbuild to simplify the build process of robotology projects.
48 stars 48 forks source link

Matlab Configuration Problem #261

Closed smwasif closed 4 years ago

smwasif commented 5 years ago

Hi dear, I tried and followed the guide provided on the robotology-superbuild repository and turned on the flag, ROBOTOLOGY_USES_MATLAB but it didn't work. In Matlab classpath.txt file i set this path: /home/wasif/robotology-superbuild/build/install/share/yarp/bindings/java/ still i couldn't start LoadYarp Please help and guide to make Matlab interacting with iCub.

smwasif commented 4 years ago

Duplicate of # Still I can't use Matlab with correct configuration. I followed the instructions provided on https://github.com/robotology/robotology-superbuild#linux and added following environment variables: addpath('<ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX>' '/mex']) addpath('<ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX>' '/share/WBToolbox']) addpath('<ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX>' '/share/WBToolbox/images']) But still with Matlab LoadYarp command I can't execute it. Following Matlab Command Window message appears: Undefined function or variable 'LoadYarp'.

Please help me in this regards so as to solve the problem.

traversaro commented 4 years ago

Hi @smwasif , sorry for the late reply. For using YARP in MATLAB, there are two possibilities:

The robotology-superbuild installs the second type of bindings, that do not require to use the LoadYarp function in loading.

smwasif commented 4 years ago

Hi @traversaro Thank you very much for your kind reply. Can you please guide which commands now can be used and which can't be used with robotology-superbuild preinstalled Matlab bindings?