hpp-tutorial 9.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. hpp_tutorial-9.0.0/.git-blame-ignore-revs +4 -0
  2. hpp_tutorial-9.0.0/.github/dependabot.yml +6 -0
  3. hpp_tutorial-9.0.0/.github/workflows/ci_ros2.yml +41 -0
  4. hpp_tutorial-9.0.0/.github/workflows/dockgen.yml +53 -0
  5. hpp_tutorial-9.0.0/.github/workflows/nix.yml +40 -0
  6. hpp_tutorial-9.0.0/.github/workflows/release.yml +151 -0
  7. hpp_tutorial-9.0.0/.github/workflows/update-flake-lock.yml +31 -0
  8. hpp_tutorial-9.0.0/.gitlab-ci.yml +1 -0
  9. hpp_tutorial-9.0.0/.mergify.yml +14 -0
  10. hpp_tutorial-9.0.0/.pre-commit-config.yaml +40 -0
  11. hpp_tutorial-9.0.0/.travis/after_failure +16 -0
  12. hpp_tutorial-9.0.0/.travis/after_success +134 -0
  13. hpp_tutorial-9.0.0/.travis/build +156 -0
  14. hpp_tutorial-9.0.0/.travis/script.py +42 -0
  15. hpp_tutorial-9.0.0/.travis.yml +53 -0
  16. hpp_tutorial-9.0.0/CMakeLists.txt +109 -0
  17. hpp_tutorial-9.0.0/LICENSE +24 -0
  18. hpp_tutorial-9.0.0/Media/materials/textures/auf_saeule_bei_shop.png +0 -0
  19. hpp_tutorial-9.0.0/Media/materials/textures/cooking_plate.jpg +0 -0
  20. hpp_tutorial-9.0.0/Media/materials/textures/ganz_links_neben_roboterplakat.png +0 -0
  21. hpp_tutorial-9.0.0/Media/materials/textures/ganz_links_vorn_bei_biolab.png +0 -0
  22. hpp_tutorial-9.0.0/Media/materials/textures/ganz_rechts_neben_kuecheninsel.png +0 -0
  23. hpp_tutorial-9.0.0/Media/materials/textures/hinter_shopschraenken_an_saeule.png +0 -0
  24. hpp_tutorial-9.0.0/Media/materials/textures/mittig_neben_roboterplakat.png +0 -0
  25. hpp_tutorial-9.0.0/Media/materials/textures/sink.png +0 -0
  26. hpp_tutorial-9.0.0/Media/materials/textures/stove.png +0 -0
  27. hpp_tutorial-9.0.0/Media/materials/textures/wallpaper.png +0 -0
  28. hpp_tutorial-9.0.0/Media/materials/textures/wallpaper2.png +0 -0
  29. hpp_tutorial-9.0.0/Media/materials/textures/wallpaper_ai_unihb.png +0 -0
  30. hpp_tutorial-9.0.0/Media/materials/textures/wallpaper_project_logos.png +0 -0
  31. hpp_tutorial-9.0.0/Media/models/meshes/glasses/__Color_A05_4.png +0 -0
  32. hpp_tutorial-9.0.0/NEWS +9 -0
  33. hpp_tutorial-9.0.0/PKG-INFO +36 -0
  34. hpp_tutorial-9.0.0/README.md +19 -0
  35. hpp_tutorial-9.0.0/doc/Doxyfile.extra.in +9 -0
  36. hpp_tutorial-9.0.0/doc/figures/rviz-start.png +0 -0
  37. hpp_tutorial-9.0.0/dockgen.toml +9 -0
  38. hpp_tutorial-9.0.0/flake.lock +582 -0
  39. hpp_tutorial-9.0.0/flake.nix +40 -0
  40. hpp_tutorial-9.0.0/include/hpp_tutorial/doc.hh +37 -0
  41. hpp_tutorial-9.0.0/launch/config.rviz +475 -0
  42. hpp_tutorial-9.0.0/launch/tutorial_7_launch.py +124 -0
  43. hpp_tutorial-9.0.0/launch/tutorial_8_launch.py +193 -0
  44. hpp_tutorial-9.0.0/meshes/box.dae +601 -0
  45. hpp_tutorial-9.0.0/meshes/drill.stl +0 -0
  46. hpp_tutorial-9.0.0/meshes/staubli-tx2-90/collision/base_link.stl +0 -0
  47. hpp_tutorial-9.0.0/meshes/staubli-tx2-90/collision/link_1.stl +0 -0
  48. hpp_tutorial-9.0.0/meshes/staubli-tx2-90/collision/link_2.stl +0 -0
  49. hpp_tutorial-9.0.0/meshes/staubli-tx2-90/collision/link_3.stl +0 -0
  50. hpp_tutorial-9.0.0/meshes/staubli-tx2-90/collision/link_4.stl +0 -0
  51. hpp_tutorial-9.0.0/meshes/staubli-tx2-90/collision/link_5.stl +0 -0
  52. hpp_tutorial-9.0.0/meshes/staubli-tx2-90/collision/link_6.stl +0 -0
  53. hpp_tutorial-9.0.0/meshes/staubli-tx2-90/visual/base_link.stl +0 -0
  54. hpp_tutorial-9.0.0/meshes/staubli-tx2-90/visual/link_1.stl +0 -0
  55. hpp_tutorial-9.0.0/meshes/staubli-tx2-90/visual/link_2.stl +0 -0
  56. hpp_tutorial-9.0.0/meshes/staubli-tx2-90/visual/link_3.stl +0 -0
  57. hpp_tutorial-9.0.0/meshes/staubli-tx2-90/visual/link_4.stl +0 -0
  58. hpp_tutorial-9.0.0/meshes/staubli-tx2-90/visual/link_5.stl +0 -0
  59. hpp_tutorial-9.0.0/meshes/staubli-tx2-90/visual/link_6.stl +0 -0
  60. hpp_tutorial-9.0.0/package.xml +20 -0
  61. hpp_tutorial-9.0.0/pyproject.toml +32 -0
  62. hpp_tutorial-9.0.0/rviz/config.rviz +1384 -0
  63. hpp_tutorial-9.0.0/rviz/config_manipulation.rviz +1405 -0
  64. hpp_tutorial-9.0.0/script/tutorial_1.py +16 -0
  65. hpp_tutorial-9.0.0/setup.cfg +4 -0
  66. hpp_tutorial-9.0.0/src/CMakeLists.txt +29 -0
  67. hpp_tutorial-9.0.0/src/hpp/corbaserver/manipulation/pr2/__init__.py +19 -0
  68. hpp_tutorial-9.0.0/src/hpp/corbaserver/manipulation/pr2/robot.py +56 -0
  69. hpp_tutorial-9.0.0/src/hpp/corbaserver/pr2/__init__.py +19 -0
  70. hpp_tutorial-9.0.0/src/hpp/corbaserver/pr2/robot.py +42 -0
  71. hpp_tutorial-9.0.0/src/hpp/corbaserver/rod/__init__.py +19 -0
  72. hpp_tutorial-9.0.0/src/hpp/corbaserver/rod/robot.py +47 -0
  73. hpp_tutorial-9.0.0/src/tutorial_1.cc +104 -0
  74. hpp_tutorial-9.0.0/src/tutorial_2.cc +152 -0
  75. hpp_tutorial-9.0.0/srdf/box.srdf +13 -0
  76. hpp_tutorial-9.0.0/srdf/cup.srdf +22 -0
  77. hpp_tutorial-9.0.0/srdf/door.srdf +14 -0
  78. hpp_tutorial-9.0.0/srdf/fr3.srdf +92 -0
  79. hpp_tutorial-9.0.0/srdf/ground.srdf +8 -0
  80. hpp_tutorial-9.0.0/srdf/kitchen_area.srdf +11770 -0
  81. hpp_tutorial-9.0.0/srdf/panda.srdf +76 -0
  82. hpp_tutorial-9.0.0/srdf/rod.srdf +2 -0
  83. hpp_tutorial-9.0.0/srdf/staubli-drill.srdf +14 -0
  84. hpp_tutorial-9.0.0/srdf/table.srdf +16 -0
  85. hpp_tutorial-9.0.0/tutorial_1/Dockerfile +45 -0
  86. hpp_tutorial-9.0.0/tutorial_1/Makefile +306 -0
  87. hpp_tutorial-9.0.0/tutorial_1/README.md +69 -0
  88. hpp_tutorial-9.0.0/tutorial_1/config.sh +24 -0
  89. hpp_tutorial-9.0.0/tutorial_1/run_docker.sh +45 -0
  90. hpp_tutorial-9.0.0/tutorial_2/README.md +286 -0
  91. hpp_tutorial-9.0.0/tutorial_2/figures/graph-viewer-wp.png +0 -0
  92. hpp_tutorial-9.0.0/tutorial_2/figures/graph-viewer.png +0 -0
  93. hpp_tutorial-9.0.0/tutorial_2/figures/panda-view.png +0 -0
  94. hpp_tutorial-9.0.0/tutorial_2/figures/viewer-control.png +0 -0
  95. hpp_tutorial-9.0.0/tutorial_2/init.py +17 -0
  96. hpp_tutorial-9.0.0/tutorial_3/README.md +234 -0
  97. hpp_tutorial-9.0.0/tutorial_3/figures/constraint-graph.svg +241 -0
  98. hpp_tutorial-9.0.0/tutorial_3/init.py +83 -0
  99. hpp_tutorial-9.0.0/tutorial_4/README.md +73 -0
  100. hpp_tutorial-9.0.0/tutorial_4/init.py +123 -0
  101. hpp_tutorial-9.0.0/tutorial_5/README.md +130 -0
  102. hpp_tutorial-9.0.0/tutorial_5/init.py +140 -0
  103. hpp_tutorial-9.0.0/tutorial_5/plot.py +31 -0
  104. hpp_tutorial-9.0.0/tutorial_6/Dockerfile +72 -0
  105. hpp_tutorial-9.0.0/tutorial_6/README.md +169 -0
  106. hpp_tutorial-9.0.0/tutorial_6/figures/landmark.gif +0 -0
  107. hpp_tutorial-9.0.0/tutorial_6/figures/q_init_rviz2.png +0 -0
  108. hpp_tutorial-9.0.0/tutorial_6/figures/trajectory_display_slect.png +0 -0
  109. hpp_tutorial-9.0.0/tutorial_6/figures/trajectory_panel_up.png +0 -0
  110. hpp_tutorial-9.0.0/tutorial_6/init.py +131 -0
  111. hpp_tutorial-9.0.0/tutorial_6/run_docker.sh +45 -0
  112. hpp_tutorial-9.0.0/tutorial_7/README.md +129 -0
  113. hpp_tutorial-9.0.0/tutorial_7/controllers.yaml +28 -0
  114. hpp_tutorial-9.0.0/tutorial_7/init.py +96 -0
  115. hpp_tutorial-9.0.0/tutorial_8/README.md +200 -0
  116. hpp_tutorial-9.0.0/tutorial_8/controllers.yaml +44 -0
  117. hpp_tutorial-9.0.0/tutorial_8/init.py +240 -0
  118. hpp_tutorial-9.0.0/tutorial_9/README.md +175 -0
  119. hpp_tutorial-9.0.0/tutorial_9/init.py +276 -0
  120. hpp_tutorial-9.0.0/urdf/box.urdf +26 -0
  121. hpp_tutorial-9.0.0/urdf/box_color.urdf +16 -0
  122. hpp_tutorial-9.0.0/urdf/cup.urdf +26 -0
  123. hpp_tutorial-9.0.0/urdf/door.urdf +111 -0
  124. hpp_tutorial-9.0.0/urdf/fr3.urdf +452 -0
  125. hpp_tutorial-9.0.0/urdf/ground.urdf +20 -0
  126. hpp_tutorial-9.0.0/urdf/kitchen_area.urdf +4729 -0
  127. hpp_tutorial-9.0.0/urdf/kitchen_area_obstacle.urdf +4729 -0
  128. hpp_tutorial-9.0.0/urdf/obstacle.urdf +18 -0
  129. hpp_tutorial-9.0.0/urdf/rod.urdf +19 -0
  130. hpp_tutorial-9.0.0/urdf/square-plate.urdf +17 -0
  131. hpp_tutorial-9.0.0/urdf/staubli-drill.urdf +254 -0
  132. hpp_tutorial-9.0.0/urdf/table.urdf +160 -0
@@ -0,0 +1,4 @@
1
+ # format (Guilhem Saurel, 2022-05-04)
2
+ 63e2891105797737dcd5e33a2ad4ab52cb5eff11
3
+ # pre-commit run -a (Guilhem Saurel, 2022-10-05)
4
+ 56ad49bcb2ae890f8bd8fddadcf94b8bb500d1c8
@@ -0,0 +1,6 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "github-actions"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "monthly"
@@ -0,0 +1,41 @@
1
+ name: ROS2 Continuous Integration
2
+ on:
3
+ push:
4
+ branches:
5
+ - devel
6
+ - main
7
+ pull_request:
8
+ jobs:
9
+ build:
10
+ strategy:
11
+ matrix:
12
+ env:
13
+ - {ROS_DISTRO: rolling}
14
+ env:
15
+ UPSTREAM_WORKSPACE: |
16
+ github:gepetto/example-robot-data#devel
17
+ github:humanoid-path-planner/hpp-constraints#devel
18
+ github:humanoid-path-planner/hpp-core#devel
19
+ github:humanoid-path-planner/hpp-environments#devel
20
+ github:humanoid-path-planner/hpp-gepetto-viewer#devel
21
+ github:humanoid-path-planner/hpp-manipulation#devel
22
+ github:humanoid-path-planner/hpp-manipulation-urdf#devel
23
+ github:humanoid-path-planner/hpp-pinocchio#devel
24
+ github:humanoid-path-planner/hpp-python#devel
25
+ github:humanoid-path-planner/hpp-statistics#devel
26
+ github:humanoid-path-planner/hpp-util#devel
27
+ runs-on: ubuntu-latest
28
+ steps:
29
+ - uses: actions/checkout@v7
30
+ - uses: 'ros-industrial/industrial_ci@125164b9f1883cdf1858897a7146d1bebf2be5c6'
31
+ env: ${{ matrix.env }}
32
+ check:
33
+ if: always()
34
+ name: check-ros-ci
35
+ runs-on: ubuntu-latest
36
+ needs:
37
+ - build
38
+ steps:
39
+ - uses: re-actors/alls-green@release/v1
40
+ with:
41
+ jobs: ${{ toJSON(needs) }}
@@ -0,0 +1,53 @@
1
+ name: "Publish docker image"
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - devel
7
+ tags:
8
+ - "v*"
9
+
10
+ jobs:
11
+ dockgen:
12
+ runs-on: "ubuntu-latest"
13
+ permissions:
14
+ contents: read
15
+ packages: write
16
+ attestations: write
17
+ id-token: write
18
+ steps:
19
+ - uses: actions/checkout@v6
20
+
21
+ - uses: astral-sh/setup-uv@v7
22
+ - run: uvx dockgen
23
+
24
+ # https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions
25
+
26
+ - name: Log in to the Container registry
27
+ uses: docker/login-action@v4
28
+ with:
29
+ registry: ghcr.io
30
+ username: ${{ github.actor }}
31
+ password: ${{ secrets.GITHUB_TOKEN }}
32
+
33
+ - name: Extract metadata (tags, labels) for Docker
34
+ id: meta
35
+ uses: docker/metadata-action@v6
36
+ with:
37
+ images: ghcr.io/${{ github.repository }}
38
+
39
+ - name: Build and push Docker image
40
+ id: push
41
+ uses: docker/build-push-action@v7
42
+ with:
43
+ context: .
44
+ push: true
45
+ tags: ${{ steps.meta.outputs.tags }}
46
+ labels: ${{ steps.meta.outputs.labels }}
47
+
48
+ - name: Generate artifact attestation
49
+ uses: actions/attest-build-provenance@v4
50
+ with:
51
+ subject-name: ghcr.io/${{ github.repository }}
52
+ subject-digest: ${{ steps.push.outputs.digest }}
53
+ push-to-registry: true
@@ -0,0 +1,40 @@
1
+ name: "CI - Nix"
2
+ on:
3
+ push:
4
+ branches:
5
+ - devel
6
+ - master
7
+ - main
8
+ - stable
9
+ pull_request:
10
+ branches:
11
+ - devel
12
+ - master
13
+ - main
14
+ - stable
15
+ jobs:
16
+ nix:
17
+ runs-on: "${{ matrix.os }}-latest"
18
+ strategy:
19
+ fail-fast: false
20
+ matrix:
21
+ os: [ubuntu]
22
+ steps:
23
+ - uses: actions/checkout@v7
24
+ - uses: cachix/install-nix-action@v31
25
+ - uses: cachix/cachix-action@v17
26
+ with:
27
+ name: gepetto
28
+ authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
29
+ - run: nix flake check -L
30
+ - run: nix build -L
31
+ check:
32
+ if: always()
33
+ name: check-macos-linux-nix
34
+ runs-on: ubuntu-latest
35
+ needs:
36
+ - nix
37
+ steps:
38
+ - uses: re-actors/alls-green@release/v1
39
+ with:
40
+ jobs: ${{ toJSON(needs) }}
@@ -0,0 +1,151 @@
1
+ name: Release on GitHub & PyPI
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*.c*"
7
+ branches:
8
+ - cmeel
9
+ pull_request:
10
+ branches:
11
+ - cmeel
12
+
13
+ env:
14
+ CMEEL_LOG_LEVEL: DEBUG
15
+ DEPS: example-robot-data[build] hpp-gepetto-viewer[build] hpp-manipulation[build]
16
+ PROJECT: hpp-tutorial
17
+
18
+ jobs:
19
+ wheel:
20
+ name: "Build ${{ matrix.python }} ${{ matrix.os }}"
21
+ runs-on: "${{ matrix.os }}"
22
+ strategy:
23
+ matrix:
24
+ os: ["ubuntu-24.04"]
25
+ python: ["cp313"]
26
+ steps:
27
+ - uses: actions/checkout@v6
28
+ with:
29
+ submodules: 'true'
30
+ - run: echo "${{ matrix.python }}" | sed "s/cp3/PYTHON_VERSION=3./" >> "${GITHUB_ENV}"
31
+ - uses: actions/setup-python@v6
32
+ with:
33
+ python-version: ${{ env.PYTHON_VERSION }}
34
+ - run: python -m pip install -U pip
35
+ - run: python -m pip wheel -vw wheelhouse .
36
+ - uses: actions/upload-artifact@v7
37
+ with:
38
+ name: "artifact-${{ matrix.os }}-${{ matrix.python }}"
39
+ path: wheelhouse
40
+
41
+ test-wheel:
42
+ needs: ["wheel"]
43
+ name: "Test ${{ matrix.python }} ${{ matrix.os }}"
44
+ runs-on: "${{ matrix.os }}"
45
+ strategy:
46
+ matrix:
47
+ os: ["ubuntu-24.04"]
48
+ python: ["cp313"]
49
+ steps:
50
+ - uses: actions/download-artifact@v8
51
+ with:
52
+ name: "artifact-${{ matrix.os }}-${{ matrix.python }}"
53
+ path: wheelhouse
54
+ - run: echo "${{ matrix.python }}" | sed "s/cp3/PYTHON_VERSION=3./" >> "${GITHUB_ENV}"
55
+ - uses: actions/setup-python@v6
56
+ with:
57
+ python-version: ${{ env.PYTHON_VERSION }}
58
+ - name: index
59
+ run: |
60
+ python -m pip install -U pip
61
+ python -m pip install wheel simple503
62
+ python -m simple503 --base-url ${{ github.workspace }}/wheelhouse ${{ github.workspace }}/wheelhouse
63
+ - name: install deps
64
+ run: python -m pip install cmeel $DEPS
65
+ - name: install wheel
66
+ run: python -m pip install -i "file://${{ github.workspace }}/wheelhouse" $PROJECT
67
+
68
+ sdist:
69
+ runs-on: ubuntu-24.04
70
+ steps:
71
+ - uses: actions/checkout@v6
72
+ with:
73
+ submodules: 'true'
74
+ - uses: actions/setup-python@v6
75
+ with:
76
+ python-version: 3.13
77
+ - name: setup
78
+ run: |
79
+ python -m pip install -U pip
80
+ python -m pip install build cmeel[build] $DEPS
81
+ - name: build sdist
82
+ run: python -m build -nso dist .
83
+ - uses: actions/upload-artifact@v7
84
+ with:
85
+ name: artifact-sdist
86
+ path: dist
87
+
88
+ test-sdist:
89
+ runs-on: ubuntu-24.04
90
+ needs: ["sdist"]
91
+ name: "Test sdist"
92
+ steps:
93
+ - uses: actions/download-artifact@v8
94
+ with:
95
+ name: "artifact-sdist"
96
+ path: dist
97
+ - uses: actions/setup-python@v6
98
+ with:
99
+ python-version: 3.13
100
+ - name: setup
101
+ run: |
102
+ python -m pip install -U pip
103
+ python -m pip install build cmeel[build] $DEPS
104
+ - name: install sdist
105
+ run: python -m pip install dist/$(echo "$PROJECT" | tr - _)*.tar.gz
106
+
107
+ release:
108
+ needs: ["test-wheel", "test-sdist"]
109
+ if: ${{ startsWith(github.ref, 'refs/tags/v') }}
110
+ runs-on: ubuntu-24.04
111
+ environment: release
112
+ permissions:
113
+ id-token: write
114
+ contents: write
115
+ steps:
116
+ - uses: actions/checkout@v6
117
+ with:
118
+ ref: ${{ github.ref_name }}
119
+ - run: curl https://github.com/nim65s.gpg | gpg --import
120
+ - name: validate signature
121
+ run: >
122
+ git verify-tag --raw ${{ github.ref_name }} 2>&1
123
+ | grep -q 'VALIDSIG 9B1A79065D2F2B806C8A5A1C7D2ACDAF4653CF28'
124
+ - uses: actions/download-artifact@v8
125
+ with:
126
+ merge-multiple: true
127
+ path: dist
128
+ - run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
129
+ - run: gh release create -t "Release ${{ env.TAG}}" "${{ env.TAG }}" dist/$(echo $PROJECT | tr - _)*.{whl,tar.gz}
130
+ env:
131
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
132
+ - name: Publish package distributions to PyPI
133
+ uses: pypa/gh-action-pypi-publish@release/v1
134
+ with:
135
+ skip-existing: true
136
+
137
+ check:
138
+ if: always()
139
+ name: check-macos-linux
140
+
141
+ needs:
142
+ - test-wheel
143
+ - test-sdist
144
+
145
+ runs-on: Ubuntu-latest
146
+
147
+ steps:
148
+ - name: Decide whether the needed jobs succeeded or failed
149
+ uses: re-actors/alls-green@release/v1
150
+ with:
151
+ jobs: ${{ toJSON(needs) }}
@@ -0,0 +1,31 @@
1
+ name: update-flake-lock
2
+ on:
3
+ workflow_dispatch:
4
+ schedule:
5
+ - cron: '0 18 1 * *'
6
+ jobs:
7
+ update-flake-inputs:
8
+ runs-on: ubuntu-slim
9
+ permissions:
10
+ contents: write
11
+ pull-requests: write
12
+ steps:
13
+ - name: Generate GitHub App Token
14
+ id: app-token
15
+ uses: actions/create-github-app-token@v3
16
+ with:
17
+ app-id: ${{ secrets.GEPETTO_NIX_APP_ID }}
18
+ private-key: ${{ secrets.GEPETTO_NIX_APP_PRIVATE_KEY }}
19
+ - name: Checkout repository
20
+ uses: actions/checkout@v7
21
+ with:
22
+ token: ${{ steps.app-token.outputs.token }}
23
+ - name: Setup Nix
24
+ uses: cachix/install-nix-action@v31
25
+ - name: Update flake inputs
26
+ uses: mic92/update-flake-inputs@v1
27
+ with:
28
+ github-token: ${{ steps.app-token.outputs.token }}
29
+ pr-labels: 'no-changelog'
30
+ git-author-name: 'hrp2-14'
31
+ git-author-email: '40568249+hrp2-14@users.noreply.github.com'
@@ -0,0 +1 @@
1
+ include: https://rainboard.laas.fr/project/hpp_tutorial/.gitlab-ci.yml
@@ -0,0 +1,14 @@
1
+ pull_request_rules:
2
+ - name: merge [bot] PRs when CI pass
3
+ conditions:
4
+ - check-success = "check-macos-linux-nix"
5
+ - check-success = "check-ros-ci"
6
+ - check-success = "pre-commit.ci - pr"
7
+ - or:
8
+ - author = dependabot[bot]
9
+ - author = gepetto-flake-updater[bot]
10
+ - author = github-actions[bot]
11
+ - author = hrp2-14
12
+ - author = pre-commit-ci[bot]
13
+ actions:
14
+ merge:
@@ -0,0 +1,40 @@
1
+ ci:
2
+ autoupdate_schedule: quarterly
3
+ repos:
4
+ - repo: https://github.com/BlankSpruce/gersemi-pre-commit
5
+ rev: 0.27.7
6
+ hooks:
7
+ - id: gersemi
8
+ - repo: https://github.com/astral-sh/ruff-pre-commit
9
+ rev: v0.15.20
10
+ hooks:
11
+ - id: ruff-check
12
+ - id: ruff-format
13
+ - repo: https://github.com/pappasam/toml-sort
14
+ rev: v0.24.4
15
+ hooks:
16
+ - id: toml-sort-fix
17
+ - repo: https://github.com/pre-commit/mirrors-clang-format
18
+ rev: v22.1.5
19
+ hooks:
20
+ - id: clang-format
21
+ args:
22
+ - --style=Google
23
+ - repo: https://github.com/pre-commit/pre-commit-hooks
24
+ rev: v6.0.0
25
+ hooks:
26
+ - id: check-added-large-files
27
+ - id: check-ast
28
+ - id: check-executables-have-shebangs
29
+ - id: check-json
30
+ - id: check-merge-conflict
31
+ - id: check-symlinks
32
+ - id: check-toml
33
+ - id: check-yaml
34
+ - id: debug-statements
35
+ - id: destroyed-symlinks
36
+ - id: detect-private-key
37
+ - id: end-of-file-fixer
38
+ - id: fix-byte-order-marker
39
+ - id: mixed-line-ending
40
+ - id: trailing-whitespace
@@ -0,0 +1,16 @@
1
+ #!/bin/bash
2
+
3
+ # Set debug mode
4
+ set -x
5
+ set -v
6
+
7
+ # Display post-failure environment
8
+ echo "Environment:"
9
+ env
10
+
11
+ # Dump as much log as we can
12
+ find $build_dir -name "*.log" | xargs cat
13
+
14
+ # End debug mode
15
+ set +v
16
+ set +x
@@ -0,0 +1,134 @@
1
+ #!/bin/bash
2
+ set -ev
3
+
4
+ # Directories.
5
+ root_dir=`pwd`
6
+ build_dir="$root_dir/_travis/build"
7
+ install_dir="$root_dir/_travis/install"
8
+
9
+ success=1
10
+
11
+ run_script()
12
+ {
13
+ $1 &
14
+ pidhpp=$!
15
+
16
+ # Give some time to the CORBA serve to start.
17
+ # This should not be required
18
+ sleep 1s
19
+
20
+ python "$2"
21
+ exitcode=$?
22
+
23
+ if [ ! "$exitcode" -eq "0" ]; then
24
+ echo "---- $1: Script $2 failed -----"
25
+ success=0
26
+ fi
27
+
28
+ kill $pidhpp
29
+ }
30
+
31
+ print_variables()
32
+ {
33
+ for var in "$@"; do
34
+ echo "${var}=${!var}"
35
+ done
36
+ }
37
+
38
+ abort()
39
+ {
40
+ echo "abort: $@" | sed '1!s/^[ ]*/ /' >&2
41
+ exit 1
42
+ }
43
+
44
+
45
+ update_documentation()
46
+ {
47
+ set -ev
48
+ doc_dir="${install_dir}/share/doc"
49
+ gh_link="https://humanoid-path-planner.github.io/hpp-doc/api/"
50
+ gh_url="humanoid-path-planner/hpp-doc.git"
51
+ remote_url="https://github.com/${gh_url}"
52
+
53
+ # If we are on the master branch of humanoid-path-planner and
54
+ # this is not a pull-request
55
+ if `test "${TRAVIS_REPO_SLUG}" = "humanoid-path-planner/hpp_tutorial" -a ${TRAVIS_PULL_REQUEST} = false -a ${TRAVIS_BRANCH} = master`; then
56
+ # Fix the links in the doc
57
+ cd ${doc_dir}
58
+ find . -type f -exec sed -i "s|${doc_dir}|${gh_link}|g" {} \;
59
+
60
+ # Fetch the old documentation
61
+ cd ${build_dir}
62
+ git clone --quiet --branch gh-pages -- $remote_url project \
63
+ || abort "failed to clone the package repository"
64
+ cd project \
65
+ || abort "failed to change directory"
66
+
67
+ # Update git config
68
+ git config user.name '${GIT_NAME}'
69
+ git config user.email '${GIT_EMAIL}'
70
+
71
+ # Update the documentation.
72
+ [ -d api ] && ( git rm --quiet -rf api/ || true )
73
+ cp -r ${doc_dir}/* ${build_dir}/project/api
74
+ git add api/ \
75
+ || abort "failed to add the updated documentation to the git index"
76
+
77
+ tmp=`mktemp -d` || abort "cannot create the temporary directory"
78
+ trap "rm -rf -- '$tmp'" EXIT
79
+
80
+ doc_version=${TRAVIS_BRANCH}
81
+ head_commit=`git log --format=oneline HEAD^.. | cut -d' ' -f1`
82
+ echo -e "[travis-bot] Update $doc_version Doxygen documentation.\n\n
83
+ Source commit id: $head_commit" > $tmp/commit_msg
84
+ commit_status=`git status -s`
85
+
86
+ # Make sure that there is something to commit.
87
+ # If this is not the case, the documentation is already
88
+ # up-to-date and the commit should not be generated.
89
+ if test -n "$commit_status"; then
90
+ git commit --quiet -F $tmp/commit_msg \
91
+ || abort "failed to generate the git commit"
92
+
93
+ # Get git read for pushing
94
+ # git config credentials.helper "store --file=${tmp}/credentials"
95
+ # echo "https://${GH_TOKEN}:x-oauth-basic@github.com" > "${tmp}/credentials"
96
+ git remote set-url origin "https://${GH_USERNAME}:${GH_TOKEN}@github.com/${gh_url}"
97
+
98
+ echo "* Push the generated commit..."
99
+ git push origin gh-pages
100
+
101
+ echo "Documentation updated with success!"
102
+ else
103
+ echo "Github pages documentation is already up-to-date."
104
+ fi
105
+
106
+ # Clean up the tmp directory
107
+ rm -rf $tmp
108
+
109
+ trap - EXIT
110
+ else
111
+ echo "Not on the good repository or branch."
112
+ print_variables TRAVIS_REPO_SLUG TRAVIS_BRANCH TRAVIS_PULL_REQUEST
113
+ fi
114
+ }
115
+
116
+ export DEVEL_DIR="$root_dir/_travis"
117
+ # wget -O $DEVEL_DIR/config.sh https://raw.githubusercontent.com/humanoid-path-planner/hpp-doc/master/doc/config.sh
118
+ echo "Silently source ${DEVEL_DIR}/config.sh"
119
+ set +ev
120
+ source $DEVEL_DIR/config.sh
121
+ set -ev
122
+
123
+ ps -C omniNames
124
+
125
+ run_script hppcorbaserver "$root_dir/script/tutorial_1.py"
126
+ run_script hppcorbaserver "$root_dir/script/tutorial_2.py"
127
+
128
+ run_script hpp-manipulation-server "$root_dir/script/tutorial_manipulation.py"
129
+
130
+ update_documentation
131
+
132
+ if [ "$success" -eq "0" ]; then
133
+ exit 1;
134
+ fi