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 casadi-matlab-bindings if ROBOTOLOGY_ENABLE_DYNAMICS_FULL_DEPS is ON and ROBOTOLOGY_USES_MATLAB is ON #747

Merged
merged 5 commits into from
May 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions cmake/Buildcasadi-matlab-bindings.cmake
Original file line number Diff line number Diff line change
@@ -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)
3 changes: 3 additions & 0 deletions cmake/RobotologySuperbuildLogic.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
5 changes: 5 additions & 0 deletions conda/multisheller/casadi-matlab-bindings_activate.msh
Original file line number Diff line number Diff line change
@@ -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"))
])
5 changes: 5 additions & 0 deletions conda/multisheller/casadi-matlab-bindings_deactivate.msh
Original file line number Diff line number Diff line change
@@ -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"))
])
4 changes: 4 additions & 0 deletions releases/latest.releases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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