-
Notifications
You must be signed in to change notification settings - Fork 48
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 bipedal-locomotion-framework #526
Changes from all commits
5621b59
7d6db2c
1c7aabb
9503fa9
b6186b5
19fd7ab
082ec05
01330b2
1d16a75
6bf5ccb
d0056b0
3f1107d
ab99357
7e6f604
422a9c2
9f5e551
369e137
6130a33
320ff40
520d3e1
a97dab5
b62342b
91377a0
8ddb11c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Copyright (C) 2020 iCub Facility, Istituto Italiano di Tecnologia | ||
# Authors: Giulio Romualdi <gulio.romualdi@iit.it> | ||
# CopyPolicy: Released under the terms of the LGPLv2.1 or later, see LGPL.TXT | ||
|
||
include(YCMEPHelper) | ||
|
||
ycm_ep_helper(CppAD TYPE GIT | ||
STYLE GITHUB | ||
REPOSITORY coin-or/CppAD.git | ||
TAG master | ||
COMPONENT external | ||
FOLDER external) |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,49 @@ | ||||||
# Copyright (C) 2020 iCub Facility, Istituto Italiano di Tecnologia | ||||||
# Authors: Giulio Romualdi <gulio.romualdi@iit.it> | ||||||
# CopyPolicy: Released under the terms of the LGPLv2.1 or later, see LGPL.TXT | ||||||
|
||||||
include(YCMEPHelper) | ||||||
include(FindOrBuildPackage) | ||||||
|
||||||
find_or_build_package(YARP QUIET) | ||||||
find_or_build_package(iDynTree QUIET) | ||||||
find_or_build_package(matio-cpp QUIET) | ||||||
|
||||||
set(bipedal-locomotion-framework_DEPENDS "") | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably in the CMake world we can stick to the CMake package name for consistency, so:
Suggested change
|
||||||
list(APPEND bipedal-locomotion-framework_DEPENDS YARP) | ||||||
list(APPEND bipedal-locomotion-framework_DEPENDS iDynTree) | ||||||
list(APPEND bipedal-locomotion-framework_DEPENDS matio-cpp) | ||||||
|
||||||
set(bipedal-locomotion-framework_USES_CppAD OFF) | ||||||
|
||||||
if (ROBOTOLOGY_ENABLE_DYNAMICS_FULL_DEPS) | ||||||
find_or_build_package(manif QUIET) | ||||||
find_or_build_package(qhull QUIET) | ||||||
find_or_build_package(casadi QUIET) | ||||||
|
||||||
# cppad is currently disabled on windows | ||||||
# https://github.com/robotology/robotology-superbuild-dependencies-vcpkg/pull/37 | ||||||
if(NOT WIN32) | ||||||
find_or_build_package(CppAD) | ||||||
list(APPEND bipedal-locomotion-framework_DEPENDS CppAD) | ||||||
set(bipedal-locomotion-framework_USES_CppAD ON) | ||||||
endif() | ||||||
|
||||||
list(APPEND bipedal-locomotion-framework_DEPENDS manif) | ||||||
list(APPEND bipedal-locomotion-framework_DEPENDS qhull) | ||||||
list(APPEND bipedal-locomotion-framework_DEPENDS casadi) | ||||||
|
||||||
endif() | ||||||
|
||||||
ycm_ep_helper(bipedal-locomotion-framework TYPE GIT | ||||||
STYLE GITHUB | ||||||
REPOSITORY dic-iit/bipedal-locomotion-framework.git | ||||||
TAG master | ||||||
COMPONENT dynamics | ||||||
FOLDER robotology | ||||||
CMAKE_ARGS -DBUILD_TESTING:BOOL=OFF | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could it make sense to pass the options on enabling/disabling the dependencies explicitly? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do you mean passing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||||||
-DFRAMEWORK_USE_manif:BOOL=${ROBOTOLOGY_ENABLE_DYNAMICS_FULL_DEPS} | ||||||
-DFRAMEWORK_USE_Qhull:BOOL=${ROBOTOLOGY_ENABLE_DYNAMICS_FULL_DEPS} | ||||||
-DFRAMEWORK_USE_cppad:BOOL=${bipedal-locomotion-framework_USES_CppAD} | ||||||
-DFRAMEWORK_USE_casadi:BOOL=${ROBOTOLOGY_ENABLE_DYNAMICS_FULL_DEPS} | ||||||
DEPENDS ${bipedal-locomotion-framework_DEPENDS}) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Copyright (C) 2020 iCub Facility, Istituto Italiano di Tecnologia | ||
# Authors: Giulio Romualdi <gulio.romualdi@iit.it> | ||
# 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(casadi TYPE GIT | ||
STYLE GITHUB | ||
REPOSITORY GiulioRomualdi/casadi.git | ||
TAG feature/support_osqp_0.6.0 | ||
COMPONENT external | ||
FOLDER external | ||
CMAKE_ARGS -DWITH_IPOPT:BOOL=ON | ||
-DWITH_OSQP:BOOL=ON | ||
-DUSE_SYSTEM_WISE_OSQP:BOOL=ON | ||
-DINCLUDE_PREFIX:PATH=include | ||
-DCMAKE_PREFIX:PATH=lib/cmake/casadi | ||
-DLIB_PREFIX:PATH=lib | ||
-DBIN_PREFIX:PATH=bin | ||
DEPENDS osqp) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Copyright (C) 2020 iCub Facility, Istituto Italiano di Tecnologia | ||
# Authors: Giulio Romualdi <gulio.romualdi@iit.it> | ||
# CopyPolicy: Released under the terms of the LGPLv2.1 or later, see LGPL.TXT | ||
|
||
include(YCMEPHelper) | ||
|
||
ycm_ep_helper(manif TYPE GIT | ||
STYLE GITHUB | ||
REPOSITORY artivis/manif.git | ||
TAG master | ||
COMPONENT external | ||
FOLDER external | ||
CMAKE_ARGS -DBUILD_TESTING:BOOL=OFF -DBUILD_EXAMPLES:BOOL=OFF) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Copyright (C) 2020 iCub Facility, Istituto Italiano di Tecnologia | ||
# Authors: Giulio Romualdi <giulio.romualdi@iit.it> | ||
# CopyPolicy: Released under the terms of the LGPLv2.1 or later, see LGPL.TXT | ||
include(YCMEPHelper) | ||
|
||
ycm_ep_helper(matio-cpp TYPE GIT | ||
STYLE GITHUB | ||
REPOSITORY dic-iit/matio-cpp.git | ||
TAG master | ||
COMPONENT dynamics | ||
FOLDER robotology | ||
CMAKE_ARGS -DBUILD_TESTING:BOOL=OFF) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Copyright (C) 2020 iCub Facility, Istituto Italiano di Tecnologia | ||
# Authors: Giulio Romualdi <gulio.romualdi@iit.it> | ||
# CopyPolicy: Released under the terms of the LGPLv2.1 or later, see LGPL.TXT | ||
|
||
include(YCMEPHelper) | ||
|
||
ycm_ep_helper(qhull TYPE GIT | ||
STYLE GITHUB | ||
REPOSITORY qhull/qhull.git | ||
TAG master | ||
COMPONENT external | ||
CMAKE_ARGS -DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The name here should match the one of the
Build<package>.cmake
and the one passed toycm_ep_helper
. Even if not strictly necessary, it is a good idea to just use the cmake package name (so in this caseBipedalLocomotionFramework
), becausefind_or_build_package
mirrorsfind_package
, so if we have:we should also have: