From 62bbe6d758f8247da66a4dc7709c7be1a8d33534 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Thu, 20 May 2021 01:06:36 +0200 Subject: [PATCH 1/5] Create Buildcasadi-matlab-bindings.cmake --- cmake/Buildcasadi-matlab-bindings.cmake | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 cmake/Buildcasadi-matlab-bindings.cmake diff --git a/cmake/Buildcasadi-matlab-bindings.cmake b/cmake/Buildcasadi-matlab-bindings.cmake new file mode 100644 index 000000000..0bf3851f7 --- /dev/null +++ b/cmake/Buildcasadi-matlab-bindings.cmake @@ -0,0 +1,15 @@ +# Copyright (C) Fondazione Istituto Italiano di Tecnologia +# CopyPolicy: Released under the terms of the LGPLv2.1 or later, see LGPL.TXT +include(YCMEPHelper) +include(FindOrBuildPackage) + +find_or_build_package(casadi QUIET) + +ycm_ep_helper(casadi-matlab-bindings TYPE GIT + STYLE GITHUB + REPOSITORY dic-iit/casadi-matlab-bindings.git + TAG main + COMPONENT dynamics + FOLDER src + CMAKE_ARGS -DCASADI_MATLAB_BINDINGS_USES_MATLAB:BOOL=${ROBOTOLOGY_USES_MATLAB} + DEPENDS casadi) From 009d507585c1fa093f93637fd586826c9dbe7eb6 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Thu, 20 May 2021 01:07:23 +0200 Subject: [PATCH 2/5] Create casadi-matlab-bindings_activate.msh --- conda/multisheller/casadi-matlab-bindings_activate.msh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 conda/multisheller/casadi-matlab-bindings_activate.msh diff --git a/conda/multisheller/casadi-matlab-bindings_activate.msh b/conda/multisheller/casadi-matlab-bindings_activate.msh new file mode 100644 index 000000000..32825b3ac --- /dev/null +++ b/conda/multisheller/casadi-matlab-bindings_activate.msh @@ -0,0 +1,5 @@ +if_(is_set("COMSPEC")).then_([ + sys.list_append("MATLABPATH", path.join(env("CONDA_PREFIX"), "Library\\mex")) +]).else_([ + sys.list_append("MATLABPATH", path.join(env("CONDA_PREFIX"), "mex")) +]) From da2e04169fcf6bcf8f92952cc657e10f14bae046 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Thu, 20 May 2021 01:07:50 +0200 Subject: [PATCH 3/5] Create casadi-matlab-bindings_deactivate.msh --- conda/multisheller/casadi-matlab-bindings_deactivate.msh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 conda/multisheller/casadi-matlab-bindings_deactivate.msh diff --git a/conda/multisheller/casadi-matlab-bindings_deactivate.msh b/conda/multisheller/casadi-matlab-bindings_deactivate.msh new file mode 100644 index 000000000..96b2936f2 --- /dev/null +++ b/conda/multisheller/casadi-matlab-bindings_deactivate.msh @@ -0,0 +1,5 @@ +if_(is_set("COMSPEC")).then_([ + sys.list_remove("MATLABPATH", path.join(env("CONDA_PREFIX"), "Library\\mex")) +]).else_([ + sys.list_remove("MATLABPATH", path.join(env("CONDA_PREFIX"), "mex")) +]) From 96fa1866575673c8a75df9ebb860d2120682f170 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Thu, 20 May 2021 01:08:29 +0200 Subject: [PATCH 4/5] Update latest.releases.yaml --- releases/latest.releases.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/releases/latest.releases.yaml b/releases/latest.releases.yaml index 8e2ed8814..75a0f4244 100644 --- a/releases/latest.releases.yaml +++ b/releases/latest.releases.yaml @@ -199,3 +199,7 @@ repositories: type: git url: https://github.com/dic-iit/matlab-whole-body-simulator.git version: v2.0.0 + casadi-matlab-bindings: + type: git + url: https://github.com/dic-iit/casadi-matlab-bindings.git + version: v3.5.5.0 From b31b751719fc2236a2079e1b915420dd5f6b4295 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Thu, 20 May 2021 01:09:25 +0200 Subject: [PATCH 5/5] Update RobotologySuperbuildLogic.cmake --- cmake/RobotologySuperbuildLogic.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/RobotologySuperbuildLogic.cmake b/cmake/RobotologySuperbuildLogic.cmake index 97fe3de9f..902b07b18 100644 --- a/cmake/RobotologySuperbuildLogic.cmake +++ b/cmake/RobotologySuperbuildLogic.cmake @@ -54,6 +54,9 @@ if(ROBOTOLOGY_ENABLE_DYNAMICS) endif() if(ROBOTOLOGY_ENABLE_DYNAMICS_FULL_DEPS) find_or_build_package(bipedal-locomotion-framework) + if(ROBOTOLOGY_USES_MATLAB) + find_or_build_package(casadi-matlab-bindings) + endif() endif() endif()