-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
33494c2
commit 7e95e4d
Showing
32 changed files
with
102 additions
and
597 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,21 @@ | ||
find_package(PythonInterp 3 REQUIRED) | ||
find_package(PythonLibs 3 REQUIRED) | ||
find_package(Boost COMPONENTS python3 numpy3) | ||
|
||
set(PYTHON_INSTALL_PATH ${CMAKE_INSTALL_PREFIX}/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages) | ||
|
||
message(STATUS "PYTHON_VERSION_MAJOR.PYTHON_VERSION_MINOR = ${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}") | ||
message(STATUS "PYTHON_LIBRARIES = ${PYTHON_LIBRARIES}") | ||
message(STATUS "PYTHON_EXECUTABLE = ${PYTHON_EXECUTABLE}") | ||
message(STATUS "PYTHON_INCLUDE_DIRS = ${PYTHON_INCLUDE_DIRS}") | ||
message(STATUS "Boost_LIBRARIES = ${Boost_LIBRARIES}") | ||
message(STATUS "PYTHON_INSTALL_PATH = ${PYTHON_INSTALL_PATH}") | ||
|
||
add_subdirectory(core) | ||
add_subdirectory(controllers) | ||
add_subdirectory(robot_models) | ||
add_subdirectory(scenes) | ||
add_subdirectory(solvers) | ||
|
||
find_package(PythonInterp REQUIRED) | ||
set(PYTHON_INSTALL_PATH ${CMAKE_INSTALL_PREFIX}/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages) | ||
install(FILES __init__.py | ||
DESTINATION ${PYTHON_INSTALL_PATH}/wbc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,14 @@ | ||
cmake_minimum_required(VERSION 2.8.11) | ||
|
||
find_package(PythonInterp REQUIRED) | ||
find_package(PythonLibs REQUIRED) | ||
|
||
set(PYTHON_INSTALL_PATH ${CMAKE_INSTALL_PREFIX}/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages) | ||
|
||
if (UNIX AND NOT APPLE) | ||
if (PYTHON_VERSION_MAJOR EQUAL 3) | ||
find_package(Boost COMPONENTS python${PYTHON_VERSION_MAJOR} numpy${PYTHON_VERSION_MAJOR}) | ||
else() | ||
find_package(Boost COMPONENTS python numpy) | ||
endif() | ||
else() | ||
if (PYTHON_VERSION_MAJOR EQUAL 3) | ||
find_package(Boost COMPONENTS python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR} numpy${PYTHON_VERSION_MAJOR}) | ||
else() | ||
find_package(Boost COMPONENTS python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR} numpy${PYTHON_VERSION_MAJOR}) | ||
endif() | ||
endif() | ||
|
||
message(STATUS "PYTHON_VERSION_MAJOR.PYTHON_VERSION_MINOR = ${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}") | ||
message(STATUS "PYTHON_LIBRARIES = ${PYTHON_LIBRARIES}") | ||
message(STATUS "PYTHON_EXECUTABLE = ${PYTHON_EXECUTABLE}") | ||
message(STATUS "PYTHON_INCLUDE_DIRS = ${PYTHON_INCLUDE_DIRS}") | ||
message(STATUS "Boost_LIBRARIES = ${Boost_LIBRARIES}") | ||
message(STATUS "PYTHON_INSTALL_PATH = ${PYTHON_INSTALL_PATH}") | ||
|
||
pkg_search_module(base-types REQUIRED base-types) | ||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src ${base-types_INCLUDE_DIRS} ) | ||
link_directories(${base-types_LIBRARY_DIRS}) | ||
|
||
PYTHON_ADD_MODULE(controllers controllers.cpp) | ||
|
||
# Set up the libraries and header search paths for this target | ||
target_link_libraries(controllers ${Boost_LIBRARIES} ${PYTHON_LIBRARIES} wbc-controllers) | ||
target_include_directories(controllers PRIVATE ${PYTHON_INCLUDE_DIRS} ) | ||
target_link_libraries(controllers PUBLIC | ||
${PYTHON_LIBRARIES} | ||
Boost::python3 | ||
Boost::numpy3 | ||
wbc-controllers) | ||
|
||
target_include_directories(controllers PUBLIC | ||
${PYTHON_INCLUDE_DIRS}) | ||
|
||
install(TARGETS controllers | ||
DESTINATION ${PYTHON_INSTALL_PATH}/wbc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,13 @@ | ||
cmake_minimum_required(VERSION 2.8.11) | ||
|
||
find_package(PythonInterp REQUIRED) | ||
find_package(PythonLibs REQUIRED) | ||
|
||
set(PYTHON_INSTALL_PATH ${CMAKE_INSTALL_PREFIX}/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages) | ||
if (UNIX AND NOT APPLE) | ||
if (PYTHON_VERSION_MAJOR EQUAL 3) | ||
find_package(Boost COMPONENTS python${PYTHON_VERSION_MAJOR} numpy${PYTHON_VERSION_MAJOR}) | ||
else() | ||
find_package(Boost COMPONENTS python numpy) | ||
endif() | ||
else() | ||
if (PYTHON_VERSION_MAJOR EQUAL 3) | ||
find_package(Boost COMPONENTS python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR} numpy${PYTHON_VERSION_MAJOR}) | ||
else() | ||
find_package(Boost COMPONENTS python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR} numpy${PYTHON_VERSION_MAJOR}) | ||
endif() | ||
endif() | ||
|
||
message(STATUS "PYTHON_VERSION_MAJOR.PYTHON_VERSION_MINOR = ${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}") | ||
message(STATUS "PYTHON_LIBRARIES = ${PYTHON_LIBRARIES}") | ||
message(STATUS "PYTHON_EXECUTABLE = ${PYTHON_EXECUTABLE}") | ||
message(STATUS "PYTHON_INCLUDE_DIRS = ${PYTHON_INCLUDE_DIRS}") | ||
message(STATUS "Boost_LIBRARIES = ${Boost_LIBRARIES}") | ||
message(STATUS "PYTHON_INSTALL_PATH = ${PYTHON_INSTALL_PATH}") | ||
|
||
pkg_search_module(base-types REQUIRED base-types) | ||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src ${base-types_INCLUDE_DIRS}) | ||
link_directories(${base-types_LIBRARY_DIRS}) | ||
|
||
PYTHON_ADD_MODULE(core core.cpp) | ||
# Set up the libraries and header search paths for this target | ||
target_link_libraries(core ${Boost_LIBRARIES} ${PYTHON_LIBRARIES} wbc-core) | ||
target_include_directories(core PRIVATE ${PYTHON_INCLUDE_DIRS}) | ||
target_link_libraries(core PUBLIC | ||
${PYTHON_LIBRARIES} | ||
Boost::python3 | ||
Boost::numpy3 | ||
wbc-core) | ||
|
||
target_include_directories(core PUBLIC | ||
${PYTHON_INCLUDE_DIRS}) | ||
|
||
install(TARGETS core | ||
DESTINATION ${PYTHON_INSTALL_PATH}/wbc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,12 @@ | ||
cmake_minimum_required(VERSION 2.8.11) | ||
|
||
find_package(PythonInterp REQUIRED) | ||
find_package(PythonLibs REQUIRED) | ||
|
||
set(PYTHON_INSTALL_PATH ${CMAKE_INSTALL_PREFIX}/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages) | ||
|
||
if (UNIX AND NOT APPLE) | ||
if (PYTHON_VERSION_MAJOR EQUAL 3) | ||
find_package(Boost COMPONENTS python${PYTHON_VERSION_MAJOR} numpy${PYTHON_VERSION_MAJOR}) | ||
else() | ||
find_package(Boost COMPONENTS python numpy) | ||
endif() | ||
else() | ||
if (PYTHON_VERSION_MAJOR EQUAL 3) | ||
find_package(Boost COMPONENTS python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR} numpy${PYTHON_VERSION_MAJOR}) | ||
else() | ||
find_package(Boost COMPONENTS python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR} numpy${PYTHON_VERSION_MAJOR}) | ||
endif() | ||
endif() | ||
|
||
message(STATUS "PYTHON_VERSION_MAJOR.PYTHON_VERSION_MINOR = ${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}") | ||
message(STATUS "PYTHON_LIBRARIES = ${PYTHON_LIBRARIES}") | ||
message(STATUS "PYTHON_EXECUTABLE = ${PYTHON_EXECUTABLE}") | ||
message(STATUS "PYTHON_INCLUDE_DIRS = ${PYTHON_INCLUDE_DIRS}") | ||
message(STATUS "Boost_LIBRARIES = ${Boost_LIBRARIES}") | ||
message(STATUS "PYTHON_INSTALL_PATH = ${PYTHON_INSTALL_PATH}") | ||
|
||
pkg_search_module(hyrodyn REQUIRED hyrodyn) | ||
pkg_search_module(base-types REQUIRED base-types) | ||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src ${base-types_INCLUDE_DIRS} ${hyrodyn_INCLUDE_DIRS}) | ||
link_directories(${base-types_LIBRARY_DIRS} ${hyrodyn_LIBRARY_DIRS}) | ||
PYTHON_ADD_MODULE(robot_model_hyrodyn robot_model_hyrodyn.cpp) | ||
target_link_libraries(robot_model_hyrodyn PUBLIC | ||
${PYTHON_LIBRARIES} | ||
Boost::python3 | ||
Boost::numpy3 | ||
wbc-robot_models-hyrodyn) | ||
|
||
target_include_directories(robot_model_hyrodyn PUBLIC | ||
${PYTHON_INCLUDE_DIRS}) | ||
|
||
PYTHON_ADD_MODULE(robot_model_hyrodyn robot_model_hyrodyn.cpp) | ||
target_link_libraries(robot_model_hyrodyn ${Boost_LIBRARIES} ${PYTHON_LIBRARIES} wbc-robot_models-hyrodyn) | ||
target_include_directories(robot_model_hyrodyn PRIVATE ${PYTHON_INCLUDE_DIRS} ) | ||
install(TARGETS robot_model_hyrodyn | ||
DESTINATION ${PYTHON_INSTALL_PATH}/wbc/robot_models) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,14 @@ | ||
cmake_minimum_required(VERSION 2.8.11) | ||
|
||
find_package(PythonInterp REQUIRED) | ||
find_package(PythonLibs REQUIRED) | ||
|
||
set(PYTHON_INSTALL_PATH ${CMAKE_INSTALL_PREFIX}/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages) | ||
|
||
if (UNIX AND NOT APPLE) | ||
if (PYTHON_VERSION_MAJOR EQUAL 3) | ||
find_package(Boost COMPONENTS python${PYTHON_VERSION_MAJOR} numpy${PYTHON_VERSION_MAJOR}) | ||
else() | ||
find_package(Boost COMPONENTS python numpy) | ||
endif() | ||
else() | ||
if (PYTHON_VERSION_MAJOR EQUAL 3) | ||
find_package(Boost COMPONENTS python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR} numpy${PYTHON_VERSION_MAJOR}) | ||
else() | ||
find_package(Boost COMPONENTS python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR} numpy${PYTHON_VERSION_MAJOR}) | ||
endif() | ||
endif() | ||
|
||
message(STATUS "PYTHON_VERSION_MAJOR.PYTHON_VERSION_MINOR = ${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}") | ||
message(STATUS "PYTHON_LIBRARIES = ${PYTHON_LIBRARIES}") | ||
message(STATUS "PYTHON_EXECUTABLE = ${PYTHON_EXECUTABLE}") | ||
message(STATUS "PYTHON_INCLUDE_DIRS = ${PYTHON_INCLUDE_DIRS}") | ||
message(STATUS "Boost_LIBRARIES = ${Boost_LIBRARIES}") | ||
message(STATUS "PYTHON_INSTALL_PATH = ${PYTHON_INSTALL_PATH}") | ||
|
||
pkg_search_module(base-types REQUIRED base-types) | ||
pkg_search_module(orocos-kdl REQUIRED orocos-kdl) | ||
pkg_search_module(kdl_parser REQUIRED kdl_parser) | ||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src ${base-types_INCLUDE_DIRS} ${orocos-kdl_INCLUDE_DIRS} ${kdl_parser_INCLUDE_DIRS}) | ||
link_directories(${base-types_LIBRARY_DIRS} ${orocos-kdl_LIBRARY_DIRS} ${kdl_parser_LIBRARY_DIRS} ) | ||
|
||
PYTHON_ADD_MODULE(robot_model_kdl robot_model_kdl.cpp) | ||
|
||
# Set up the libraries and header search paths for this target | ||
target_link_libraries(robot_model_kdl ${Boost_LIBRARIES} ${PYTHON_LIBRARIES} wbc-robot_models-kdl) | ||
target_include_directories(robot_model_kdl PRIVATE ${PYTHON_INCLUDE_DIRS} ) | ||
target_link_libraries(robot_model_kdl PUBLIC | ||
${PYTHON_LIBRARIES} | ||
Boost::python3 | ||
Boost::numpy3 | ||
wbc-robot_models-kdl) | ||
|
||
target_include_directories(robot_model_kdl PUBLIC | ||
${PYTHON_INCLUDE_DIRS}) | ||
|
||
install(TARGETS robot_model_kdl | ||
DESTINATION ${PYTHON_INSTALL_PATH}/wbc/robot_models) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,14 @@ | ||
cmake_minimum_required(VERSION 2.8.11) | ||
|
||
find_package(PythonInterp REQUIRED) | ||
find_package(PythonLibs REQUIRED) | ||
|
||
set(PYTHON_INSTALL_PATH ${CMAKE_INSTALL_PREFIX}/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages) | ||
|
||
if (UNIX AND NOT APPLE) | ||
if (PYTHON_VERSION_MAJOR EQUAL 3) | ||
find_package(Boost COMPONENTS python${PYTHON_VERSION_MAJOR} numpy${PYTHON_VERSION_MAJOR}) | ||
else() | ||
find_package(Boost COMPONENTS python numpy) | ||
endif() | ||
else() | ||
if (PYTHON_VERSION_MAJOR EQUAL 3) | ||
find_package(Boost COMPONENTS python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR} numpy${PYTHON_VERSION_MAJOR}) | ||
else() | ||
find_package(Boost COMPONENTS python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR} numpy${PYTHON_VERSION_MAJOR}) | ||
endif() | ||
endif() | ||
|
||
message(STATUS "PYTHON_VERSION_MAJOR.PYTHON_VERSION_MINOR = ${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}") | ||
message(STATUS "PYTHON_LIBRARIES = ${PYTHON_LIBRARIES}") | ||
message(STATUS "PYTHON_EXECUTABLE = ${PYTHON_EXECUTABLE}") | ||
message(STATUS "PYTHON_INCLUDE_DIRS = ${PYTHON_INCLUDE_DIRS}") | ||
message(STATUS "Boost_LIBRARIES = ${Boost_LIBRARIES}") | ||
message(STATUS "PYTHON_INSTALL_PATH = ${PYTHON_INSTALL_PATH}") | ||
|
||
pkg_search_module(base-types REQUIRED base-types) | ||
pkg_search_module(orocos-kdl REQUIRED orocos-kdl) | ||
pkg_search_module(kdl_parser REQUIRED kdl_parser) | ||
list(APPEND PKGCONFIG_REQUIRES qpOASES) | ||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src ${base-types_INCLUDE_DIRS} ${orocos-kdl_INCLUDE_DIRS} ${qpOASES_INCLUDE_DIRS} ${kdl_parser_INCLUDE_DIRS}) | ||
link_directories(${base-types_LIBRARY_DIRS} ${orocos-kdl_LIBRARY_DIRS} ${qpOASES_LIBRARY_DIRS} ${kdl_parser_LIBRARY_DIRS}) | ||
|
||
PYTHON_ADD_MODULE(scenes scenes.cpp) | ||
|
||
# Set up the libraries and header search paths for this target | ||
target_link_libraries(scenes ${Boost_LIBRARIES} ${PYTHON_LIBRARIES} wbc-scenes wbc-robot_models-kdl wbc-core wbc-solvers-hls wbc-solvers-qpoases ${qpOASES_LIBRARIES}) | ||
target_include_directories(scenes PRIVATE ${PYTHON_INCLUDE_DIRS} ) | ||
target_link_libraries(scenes PUBLIC | ||
wbc-scenes | ||
wbc-robot_models-kdl | ||
wbc-solvers-hls | ||
wbc-solvers-qpoases) | ||
|
||
target_include_directories(scenes PUBLIC | ||
${PYTHON_INCLUDE_DIRS}) | ||
|
||
install(TARGETS scenes | ||
DESTINATION ${PYTHON_INSTALL_PATH}/wbc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
add_subdirectory(qpoases) | ||
add_subdirectory(hls) | ||
|
||
find_package(PythonInterp REQUIRED) | ||
set(PYTHON_INSTALL_PATH ${CMAKE_INSTALL_PREFIX}/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages) | ||
install(FILES __init__.py | ||
DESTINATION ${PYTHON_INSTALL_PATH}/wbc/solvers) |
Oops, something went wrong.