Skip to content
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

Add setWorldBaseTransform function to KinDynComputations and high-level Matlab wrappers #1164

Merged
Merged
1 change: 1 addition & 0 deletions bindings/matlab/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ if(IDYNTREE_USES_MATLAB)
${IDYNTREE_GENERATE_MATLAB}
${MEX_BINDINGS_SOURCE_DIR})

target_include_directories(${target_name} PRIVATE ${Matlab_INCLUDE_DIRS})
target_link_libraries(${target_name} ${IDYNTREE_LIBRARIES} ${Matlab_MEX_LIBRARY} ${Matlab_MX_LIBRARY})

# Install the generated front-end to ${CMAKE_INSTALL_PREFIX}/mex
Expand Down
2 changes: 2 additions & 0 deletions doc/generating-idyntree-matlab-bindings.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ Now, all is left is to compile and generate the bindings.

## Generating the bindings
- In the build folder of `iDynTree`, run `ccmake` to open the CMake Gui.
- Set the CMake option `SWIG_DIR` to `<swig_install_dir>/share/swig/<version>`.
- Set the CMake option `SWIG_EXECUTABLE` to `<swig_install_dir>/bin/swig`.
- Set the CMake option `SWIG_VERSION` to `<version>`.
LoreMoretti marked this conversation as resolved.
Show resolved Hide resolved
- Set the CMake option `IDYNTREE_GENERATE_MATLAB` to `ON`.
- Set the CMake option `IDYNTREE_USES_MATLAB` or `IDYNTREE_USES_OCTAVE` to `ON`.
- Having configured the CMake, run `make` and `make install` to install the bindings in the `mex` directory of the iDynTree install location.
Expand Down
Loading