Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit 4d0349b

Browse files
author
Guilhem Saurel
authored
Merge pull request #34 from nim65s/devel
[CI][CMake] add .gitlab-ci.yml & badges, sync submodules, update cmake
2 parents f5bc5a1 + 40bfc63 commit 4d0349b

File tree

9 files changed

+66
-155
lines changed

9 files changed

+66
-155
lines changed

.gitlab-ci.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
variables:
2+
GIT_SUBMODULE_STRATEGY: "recursive"
3+
GIT_DEPTH: "3"
4+
CCACHE_BASEDIR: "${CI_PROJECT_DIR}"
5+
CCACHE_DIR: "${CI_PROJECT_DIR}/ccache"
6+
7+
cache:
8+
paths:
9+
- ccache
10+
11+
.robotpkg-sot-dynamic-pinocchio-v3: &robotpkg-sot-dynamic-pinocchio-v3
12+
except:
13+
- gh-pages
14+
script:
15+
- mkdir -p ccache
16+
- cd /root/robotpkg/wip/sot-dynamic-pinocchio-v3
17+
- git pull
18+
- make checkout MASTER_REPOSITORY="dir ${CI_PROJECT_DIR}"
19+
- make install
20+
- cd work.$(hostname)/$(make show-var VARNAME=DISTNAME)
21+
- make test
22+
23+
robotpkg-sot-dynamic-pinocchio-v3-14.04-release:
24+
<<: *robotpkg-sot-dynamic-pinocchio-v3
25+
image: eur0c.laas.fr:5000/stack-of-tasks/sot-dynamic-pinocchio/sot-dynamic-pinocchio-v3:14.04
26+
27+
robotpkg-sot-dynamic-pinocchio-v3-16.04-release:
28+
<<: *robotpkg-sot-dynamic-pinocchio-v3
29+
image: eur0c.laas.fr:5000/stack-of-tasks/sot-dynamic-pinocchio/sot-dynamic-pinocchio-v3:16.04
30+
31+
robotpkg-sot-dynamic-pinocchio-v3-18.04-release:
32+
<<: *robotpkg-sot-dynamic-pinocchio-v3
33+
image: eur0c.laas.fr:5000/stack-of-tasks/sot-dynamic-pinocchio/sot-dynamic-pinocchio-v3:18.04
34+
35+
doc-coverage:
36+
<<: *robotpkg-sot-dynamic-pinocchio-v3
37+
image: eur0c.laas.fr:5000/stack-of-tasks/sot-dynamic-pinocchio/sot-dynamic-pinocchio-v3:16.04
38+
before_script:
39+
- echo -e 'CXXFLAGS+= --coverage\nLDFLAGS+= --coverage\nPKG_DEFAULT_OPTIONS= debug' >> /opt/openrobots/etc/robotpkg.conf
40+
after_script:
41+
- cd /root/robotpkg/wip/sot-dynamic-pinocchio-v3
42+
- cd work.$(hostname)/$(make show-var VARNAME=DISTNAME)
43+
- make doc
44+
- mv doc/doxygen-html ${CI_PROJECT_DIR}
45+
- mkdir -p ${CI_PROJECT_DIR}/coverage/
46+
- gcovr -r .
47+
- gcovr -r . --html --html-details -o ${CI_PROJECT_DIR}/coverage/index.html
48+
artifacts:
49+
expire_in: 1 day
50+
paths:
51+
- doxygen-html/
52+
- coverage/
53+

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ INCLUDE(cmake/boost.cmake)
2020
INCLUDE(cmake/eigen.cmake)
2121
INCLUDE(cmake/lapack.cmake)
2222
INCLUDE(cmake/cpack.cmake)
23+
INCLUDE(cmake/python.cmake)
2324

2425
SET(PROJECT_NAME sot-dynamic-pinocchio)
2526

2627
SET(PROJECT_DESCRIPTION "pinocchio bindings for dynamic-graph.")
2728
SET(PROJECT_URL "https://github.com/stack-of-tasks/sot-dynamic-pinocchio/")
2829

2930
SET(CUSTOM_HEADER_DIR "${PROJECT_NAME}")
31+
SET(DOXYGEN_USE_MATHJAX YES)
3032

3133
# Disable -Werror on Unix for now.
3234
SET(CXX_DISABLE_WERROR True)
@@ -62,15 +64,13 @@ SET(plugins
6264
SET(LIBRARY_NAME ${PROJECT_NAME})
6365
LIST(APPEND plugins dynamic)
6466

65-
66-
LIST(APPEND LOGGING_WATCHED_TARGETS ${plugins})
67-
6867
# Add dependency toward sot-dynamic-pinocchio library in pkg-config file.
6968
PKG_CONFIG_APPEND_LIBS(${LIBRARY_NAME})
7069

7170
# Search for dependencies.
7271
# Boost
7372
SET(BOOST_COMPONENTS filesystem system unit_test_framework python)
73+
FINDPYTHON()
7474
SEARCH_FOR_BOOST()
7575
SEARCH_FOR_EIGEN()
7676

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ sot-dynamic-pinocchio
22
Encapsulate Pinocchio in SoT
33
===========
44

5-
[![Build Status](https://travis-ci.org/stack-of-tasks/sot-dynamic-pinocchio.png?branch=master)](https://travis-ci.org/stack-of-tasks/sot-dynamic-pinocchio)
6-
[![Coverage Status](https://coveralls.io/repos/stack-of-tasks/sot-dynamic-pinocchio/badge.png)](https://coveralls.io/r/stack-of-tasks/sot-dynamic-pinocchio)
5+
[![Building Status](https://travis-ci.org/stack-of-tasks/sot-dynamic-pinocchio.svg?branch=master)](https://travis-ci.org/stack-of-tasks/sot-dynamic-pinocchio)
6+
[![Pipeline status](https://gepgitlab.laas.fr/stack-of-tasks/sot-dynamic-pinocchio/badges/master/pipeline.svg)](https://gepgitlab.laas.fr/stack-of-tasks/sot-dynamic-pinocchio/commits/master)
7+
[![Coverage report](https://gepgitlab.laas.fr/stack-of-tasks/sot-dynamic-pinocchio/badges/master/coverage.svg?job=doc-coverage)](http://projects.laas.fr/gepetto/doc/stack-of-tasks/sot-dynamic-pinocchio/master/coverage/)
8+
79

810
This software provides robot dynamic computation for dynamic-graph
911
by using pinocchio.
@@ -41,4 +43,3 @@ have to be available on your machine.
4143
[dynamic-graph]: http://github.com/stack-of-tasks/dynamic-graph
4244
[pinocchio]: http://github.com/stack-of-tasks/pinocchio
4345
[sot-core]: http://github.com/stack-of-tasks/sot-core
44-
>>>>>>> devel

custom_cmake/python.cmake

Lines changed: 0 additions & 87 deletions
This file was deleted.

python/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
INCLUDE(../cmake/python.cmake)
2-
FINDPYTHON()
3-
41
INSTALL(
52
FILES kine_romeo.py kine_romeo_small.py
63
DESTINATION ${PYTHON_SITELIB}/dynamic_graph/tutorial

src/CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
# received a copy of the GNU Lesser General Public License along with
1515
# sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>.
1616

17-
INCLUDE(../custom_cmake/python.cmake)
18-
INCLUDE(../cmake/python.cmake)
1917
LINK_DIRECTORIES(${Boost_LIBRARY_DIRS})
2018

2119
# Verbosity level
@@ -54,7 +52,7 @@ FOREACH(lib ${plugins})
5452
# build python submodule
5553
STRING(REPLACE - _ PYTHON_LIBRARY_NAME ${lib})
5654

57-
SOT_DYNAMIC_PYTHON_MODULE("sot/dynamics_pinocchio/${PYTHON_LIBRARY_NAME}"
55+
DYNAMIC_GRAPH_PYTHON_MODULE("sot/dynamics_pinocchio/${PYTHON_LIBRARY_NAME}"
5856
${libname}
5957
sot-dynamic-pinocchio-${PYTHON_LIBRARY_NAME}-wrap
6058
)
@@ -81,4 +79,4 @@ INSTALL(FILES
8179
${CMAKE_CURRENT_SOURCE_DIR}/dynamic_graph/sot/dynamics_pinocchio/tools.py
8280
${CMAKE_CURRENT_SOURCE_DIR}/dynamic_graph/sot/dynamics_pinocchio/parser.py
8381
DESTINATION ${PYTHON_SITELIB}/dynamic_graph/sot/dynamics_pinocchio
84-
)
82+
)

unitTesting/CMakeLists.txt

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# General Lesser Public License for more details. You should have
1313
# received a copy of the GNU Lesser General Public License along with
1414
# sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>.
15-
INCLUDE(../cmake/python.cmake)
1615

1716
ADD_DEFINITIONS(-DDEBUG=2)
1817

@@ -30,9 +29,6 @@ test_constructor
3029
# Install procedure for the urdf files
3130
#----------------------------------------------------
3231

33-
FILE(COPY ${CMAKE_CURRENT_SOURCE_DIR}/two_link.urdf
34-
DESTINATION urdf)
35-
3632
SET(test_dyn_plugins_dependencies dynamic)
3733

3834
# Make Boost.Test generates the main function in test cases.
@@ -50,8 +46,6 @@ ADD_DEFINITIONS(-DBOOST_TEST_DYN_LINK -DBOOST_TEST_MAIN)
5046
#SET(sampleinitconfig
5147
# ${JRL_DYNAMICS_PKGDATAROOTDIR}/jrl-dynamics/examples/data/sampleInitConfig.dat)
5248

53-
FINDPYTHON()
54-
5549
LIST(APPEND LOGGING_WATCHED_VARIABLES samplespec sampleljr)
5650

5751
FOREACH(test ${tests})
@@ -60,7 +54,7 @@ FOREACH(test ${tests})
6054
${test}.cpp)
6155
MESSAGE("PYTHON_INCLUDE_PATH: ${PYTHON_INCLUDE_PATH}")
6256
INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_PATH})
63-
57+
6458
TARGET_LINK_LIBRARIES(${EXECUTABLE_NAME}
6559
dp-zmpreffromcom
6660
dp-force-compensation
@@ -77,7 +71,7 @@ FOREACH(test ${tests})
7771
PKG_CONFIG_USE_DEPENDENCY(${EXECUTABLE_NAME} sot-core)
7872
PKG_CONFIG_USE_DEPENDENCY(${EXECUTABLE_NAME} dynamic-graph)
7973
PKG_CONFIG_USE_DEPENDENCY(${EXECUTABLE_NAME} dynamic-graph-python)
80-
74+
8175
IF(${test}_plugins_dependencies)
8276
ADD_DEPENDENCIES(${EXECUTABLE_NAME} "${${test}_plugins_dependencies}")
8377
TARGET_LINK_LIBRARIES(${EXECUTABLE_NAME} "${${test}_plugins_dependencies}")
@@ -89,7 +83,7 @@ FOREACH(test ${tests})
8983

9084
IF (UNIX)
9185
SET(EXTRA_LD_LIBRARY_PATH $ENV{LD_LIBRARY_PATH})
92-
SET_PROPERTY(TEST ${test} PROPERTY
86+
SET_PROPERTY(TEST ${test} PROPERTY
9387
ENVIRONMENT "LD_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}:${CMAKE_BINARY_DIR}/src:${BOOST_ROOT}/lib:${EXTRA_LD_LIBRARY_PATH}")
9488
ENDIF(UNIX)
9589

unitTesting/two_link.urdf

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)