Skip to content

Commit

Permalink
Add osqp-matlab (#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
traversaro authored Mar 23, 2021
1 parent ac6952e commit b6fbe87
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
21 changes: 21 additions & 0 deletions cmake/Buildosqp-matlab.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# 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(osqp QUIET)

ycm_ep_helper(osqp-matlab TYPE GIT
STYLE GITHUB
REPOSITORY dic-iit/osqp-matlab-cmake-buildsystem.git
TAG main
COMPONENT dynamics
FOLDER src
CMAKE_ARGS -DOSQP_MATLAB_USES_MATLAB:BOOL=${ROBOTOLOGY_USES_MATLAB}
DEPENDS osqp)

# Metadata for conda package generation
# If we do not set the package name, by default the repo name would be used
# so in this case osqp-matlab-cmake-buildsystem that is not descriptive of the
# generated artifact that is contained in the conda package
set(osqp-matlab_CONDA_PKG_NAME "osqp-matlab")
3 changes: 3 additions & 0 deletions cmake/RobotologySuperbuildLogic.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ if(ROBOTOLOGY_ENABLE_DYNAMICS)
find_or_build_package(whole-body-controllers)
find_or_build_package(matio-cpp)
find_or_build_package(bipedal-locomotion-framework)
if(ROBOTOLOGY_USES_MATLAB)
find_or_build_package(osqp-matlab)
endif()
endif()

# Teleoperation
Expand Down
1 change: 1 addition & 0 deletions releases/2021.02.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -183,3 +183,4 @@ repositories:
type: git
url: https://github.com/robotology/diagnostic-daemon.git
version: v1.0.0

5 changes: 5 additions & 0 deletions releases/latest.releases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,3 +179,8 @@ repositories:
type: git
url: https://github.com/robotology/diagnostic-daemon.git
version: v1.0.0
osqp-matlab:
type: git
url: https://github.com/dic-iit/osqp-matlab-cmake-buildsystem.git
version: v0.6.2.0

0 comments on commit b6fbe87

Please sign in to comment.