hpp-toppra 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.
- hpp_toppra-9.0.0/.bumpversion.cfg +7 -0
- hpp_toppra-9.0.0/.github/dependabot.yml +6 -0
- hpp_toppra-9.0.0/.github/workflows/ci_ros2.yml +41 -0
- hpp_toppra-9.0.0/.github/workflows/dockgen.yml +53 -0
- hpp_toppra-9.0.0/.github/workflows/nix.yml +38 -0
- hpp_toppra-9.0.0/.github/workflows/release.yml +159 -0
- hpp_toppra-9.0.0/.github/workflows/update-flake-lock.yml +31 -0
- hpp_toppra-9.0.0/.mergify.yml +14 -0
- hpp_toppra-9.0.0/.pre-commit-config.yaml +40 -0
- hpp_toppra-9.0.0/CMakeLists.txt +94 -0
- hpp_toppra-9.0.0/LICENSE +29 -0
- hpp_toppra-9.0.0/PKG-INFO +32 -0
- hpp_toppra-9.0.0/README.md +15 -0
- hpp_toppra-9.0.0/dockgen.toml +12 -0
- hpp_toppra-9.0.0/flake.lock +576 -0
- hpp_toppra-9.0.0/flake.nix +26 -0
- hpp_toppra-9.0.0/include/hpp/toppra/toppra.hh +72 -0
- hpp_toppra-9.0.0/include/pyhpp/toppra/toppra.hh +36 -0
- hpp_toppra-9.0.0/package.xml +24 -0
- hpp_toppra-9.0.0/pyproject.toml +22 -0
- hpp_toppra-9.0.0/python/CMakeLists.txt +57 -0
- hpp_toppra-9.0.0/python/path.cc +125 -0
- hpp_toppra-9.0.0/python/pyhpp_toppra/bindings.cc +39 -0
- hpp_toppra-9.0.0/python/pyhpp_toppra/toppra.cc +55 -0
- hpp_toppra-9.0.0/src/piecewise-polynomial.hh +145 -0
- hpp_toppra-9.0.0/src/serialization.hh +26 -0
- hpp_toppra-9.0.0/src/toppra-plugin.cc +24 -0
- hpp_toppra-9.0.0/src/toppra.cc +544 -0
- hpp_toppra-9.0.0/tests/test-ill-formed-paths.cc +33 -0
- hpp_toppra-9.0.0/tests/test-path-serialization.cc +56 -0
- hpp_toppra-9.0.0/tests/test_read_path.py +186 -0
- hpp_toppra-9.0.0/tests/test_toppra.py +158 -0
- hpp_toppra-9.0.0/tests/tests.cc +318 -0
- hpp_toppra-9.0.0/tests/tests.hh +21 -0
|
@@ -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
|
+
NOT_TEST_BUILD: true # TODO
|
|
16
|
+
UPSTREAM_WORKSPACE: |
|
|
17
|
+
github:gepetto/example-robot-data#devel
|
|
18
|
+
github:humanoid-path-planner/hpp-constraints#devel
|
|
19
|
+
github:humanoid-path-planner/hpp-core#devel
|
|
20
|
+
github:humanoid-path-planner/hpp-environments#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,38 @@
|
|
|
1
|
+
name: "CI - Nix"
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches:
|
|
5
|
+
- devel
|
|
6
|
+
- master
|
|
7
|
+
- main
|
|
8
|
+
pull_request:
|
|
9
|
+
branches:
|
|
10
|
+
- devel
|
|
11
|
+
- master
|
|
12
|
+
- main
|
|
13
|
+
jobs:
|
|
14
|
+
nix:
|
|
15
|
+
runs-on: "${{ matrix.os }}-latest"
|
|
16
|
+
strategy:
|
|
17
|
+
fail-fast: false
|
|
18
|
+
matrix:
|
|
19
|
+
os: [ubuntu]
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v7
|
|
22
|
+
- uses: cachix/install-nix-action@v31
|
|
23
|
+
- uses: cachix/cachix-action@v17
|
|
24
|
+
with:
|
|
25
|
+
name: gepetto
|
|
26
|
+
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
27
|
+
- run: nix flake check -L
|
|
28
|
+
- run: nix build -L
|
|
29
|
+
check:
|
|
30
|
+
if: always()
|
|
31
|
+
name: check-macos-linux-nix
|
|
32
|
+
runs-on: ubuntu-latest
|
|
33
|
+
needs:
|
|
34
|
+
- nix
|
|
35
|
+
steps:
|
|
36
|
+
- uses: re-actors/alls-green@release/v1
|
|
37
|
+
with:
|
|
38
|
+
jobs: ${{ toJSON(needs) }}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
name: Release on GitHub & PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v*"
|
|
7
|
+
branches:
|
|
8
|
+
- cmeel
|
|
9
|
+
pull_request:
|
|
10
|
+
branches:
|
|
11
|
+
- cmeel
|
|
12
|
+
|
|
13
|
+
env:
|
|
14
|
+
CMEEL_LOG_LEVEL: DEBUG
|
|
15
|
+
DEPS: cmeel-boost[build] cmeel-toppra[build] hpp-python[build]
|
|
16
|
+
PROJECT: hpp-toppra
|
|
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", "ubuntu-24.04-arm"]
|
|
25
|
+
python: ["cp310", "cp311", "cp312", "cp313", "cp314"]
|
|
26
|
+
steps:
|
|
27
|
+
- uses: actions/checkout@v6
|
|
28
|
+
with:
|
|
29
|
+
submodules: 'true'
|
|
30
|
+
- run: pipx install cibuildwheel
|
|
31
|
+
- run: echo "OPENMP=OFF" >> $GITHUB_ENV
|
|
32
|
+
if: ${{ startsWith(matrix.os, 'macos') }}
|
|
33
|
+
- run: echo "OPENMP=ON" >> $GITHUB_ENV
|
|
34
|
+
if: ${{ startsWith(matrix.os, 'ubuntu') }}
|
|
35
|
+
- run: cibuildwheel
|
|
36
|
+
env:
|
|
37
|
+
CIBW_BUILD: "${{ matrix.python }}-*"
|
|
38
|
+
CIBW_SKIP: "*-musllinux* *i686"
|
|
39
|
+
CIBW_MANYLINUX_X86_64_IMAGE: "quay.io/pypa/manylinux_2_28_x86_64"
|
|
40
|
+
CIBW_MANYLINUX_AARCH64_IMAGE: "quay.io/pypa/manylinux_2_28_aarch64"
|
|
41
|
+
CIBW_REPAIR_WHEEL_COMMAND: ""
|
|
42
|
+
CIBW_ENVIRONMENT: CMEEL_LOG_LEVEL="DEBUG" CMEEL_JOBS="1" CMEEL_TEST_JOBS="1" CMEEL_RUN_TESTS="false" CMEEL_CMAKE_ARGS="-DBUILD_WITH_OPENMP_SUPPORT=${{
|
|
43
|
+
env.OPENMP }}"
|
|
44
|
+
- uses: actions/upload-artifact@v7
|
|
45
|
+
with:
|
|
46
|
+
name: "artifact-${{ matrix.os }}-${{ matrix.python }}"
|
|
47
|
+
path: wheelhouse
|
|
48
|
+
|
|
49
|
+
test-wheel:
|
|
50
|
+
needs: ["wheel"]
|
|
51
|
+
name: "Test ${{ matrix.python }} ${{ matrix.os }}"
|
|
52
|
+
runs-on: "${{ matrix.os }}"
|
|
53
|
+
strategy:
|
|
54
|
+
matrix:
|
|
55
|
+
os: ["ubuntu-24.04", "ubuntu-24.04-arm"]
|
|
56
|
+
python: ["cp310", "cp311", "cp312", "cp313", "cp314"]
|
|
57
|
+
steps:
|
|
58
|
+
- uses: actions/download-artifact@v8
|
|
59
|
+
with:
|
|
60
|
+
name: "artifact-${{ matrix.os }}-${{ matrix.python }}"
|
|
61
|
+
path: wheelhouse
|
|
62
|
+
- run: echo "${{ matrix.python }}" | sed "s/cp3/PYTHON_VERSION=3./" >> "${GITHUB_ENV}"
|
|
63
|
+
- uses: actions/setup-python@v6
|
|
64
|
+
with:
|
|
65
|
+
python-version: ${{ env.PYTHON_VERSION }}
|
|
66
|
+
- name: index
|
|
67
|
+
run: |
|
|
68
|
+
python -m pip install -U pip
|
|
69
|
+
python -m pip install wheel simple503
|
|
70
|
+
python -m simple503 --base-url ${{ github.workspace }}/wheelhouse ${{ github.workspace }}/wheelhouse
|
|
71
|
+
- name: install deps
|
|
72
|
+
run: python -m pip install cmeel $DEPS
|
|
73
|
+
- name: install wheel
|
|
74
|
+
run: python -m pip install -i "file://${{ github.workspace }}/wheelhouse" $PROJECT
|
|
75
|
+
|
|
76
|
+
sdist:
|
|
77
|
+
runs-on: ubuntu-24.04
|
|
78
|
+
steps:
|
|
79
|
+
- uses: actions/checkout@v6
|
|
80
|
+
with:
|
|
81
|
+
submodules: 'true'
|
|
82
|
+
- uses: actions/setup-python@v6
|
|
83
|
+
with:
|
|
84
|
+
python-version: 3.13
|
|
85
|
+
- name: setup
|
|
86
|
+
run: |
|
|
87
|
+
python -m pip install -U pip
|
|
88
|
+
python -m pip install build cmeel[build] $DEPS
|
|
89
|
+
- name: build sdist
|
|
90
|
+
run: python -m build -nso dist .
|
|
91
|
+
- uses: actions/upload-artifact@v7
|
|
92
|
+
with:
|
|
93
|
+
name: artifact-sdist
|
|
94
|
+
path: dist
|
|
95
|
+
|
|
96
|
+
test-sdist:
|
|
97
|
+
runs-on: ubuntu-24.04
|
|
98
|
+
needs: ["sdist"]
|
|
99
|
+
name: "Test sdist"
|
|
100
|
+
steps:
|
|
101
|
+
- uses: actions/download-artifact@v8
|
|
102
|
+
with:
|
|
103
|
+
name: "artifact-sdist"
|
|
104
|
+
path: dist
|
|
105
|
+
- uses: actions/setup-python@v6
|
|
106
|
+
with:
|
|
107
|
+
python-version: 3.13
|
|
108
|
+
- name: setup
|
|
109
|
+
run: |
|
|
110
|
+
python -m pip install -U pip
|
|
111
|
+
python -m pip install build cmeel[build] $DEPS
|
|
112
|
+
- name: install sdist
|
|
113
|
+
run: python -m pip install dist/$(echo "$PROJECT" | tr - _)*.tar.gz
|
|
114
|
+
|
|
115
|
+
release:
|
|
116
|
+
needs: ["test-wheel", "test-sdist"]
|
|
117
|
+
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
|
118
|
+
runs-on: ubuntu-24.04
|
|
119
|
+
environment: release
|
|
120
|
+
permissions:
|
|
121
|
+
id-token: write
|
|
122
|
+
contents: write
|
|
123
|
+
steps:
|
|
124
|
+
- uses: actions/checkout@v6
|
|
125
|
+
with:
|
|
126
|
+
ref: ${{ github.ref_name }}
|
|
127
|
+
- run: curl https://github.com/nim65s.gpg | gpg --import
|
|
128
|
+
- name: validate signature
|
|
129
|
+
run: >
|
|
130
|
+
git verify-tag --raw ${{ github.ref_name }} 2>&1
|
|
131
|
+
| grep -q 'VALIDSIG 9B1A79065D2F2B806C8A5A1C7D2ACDAF4653CF28'
|
|
132
|
+
- uses: actions/download-artifact@v8
|
|
133
|
+
with:
|
|
134
|
+
merge-multiple: true
|
|
135
|
+
path: dist
|
|
136
|
+
- run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
|
|
137
|
+
- run: gh release create -t "Release ${{ env.TAG}}" "${{ env.TAG }}" dist/$(echo $PROJECT | tr - _)*.{whl,tar.gz}
|
|
138
|
+
env:
|
|
139
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
140
|
+
- name: Publish package distributions to PyPI
|
|
141
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
142
|
+
with:
|
|
143
|
+
skip-existing: true
|
|
144
|
+
|
|
145
|
+
check:
|
|
146
|
+
if: always()
|
|
147
|
+
name: check-macos-linux
|
|
148
|
+
|
|
149
|
+
needs:
|
|
150
|
+
- test-wheel
|
|
151
|
+
- test-sdist
|
|
152
|
+
|
|
153
|
+
runs-on: Ubuntu-latest
|
|
154
|
+
|
|
155
|
+
steps:
|
|
156
|
+
- name: Decide whether the needed jobs succeeded or failed
|
|
157
|
+
uses: re-actors/alls-green@release/v1
|
|
158
|
+
with:
|
|
159
|
+
jobs: ${{ toJSON(needs) }}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
name: update-flake-lock
|
|
2
|
+
on:
|
|
3
|
+
workflow_dispatch:
|
|
4
|
+
schedule:
|
|
5
|
+
- cron: '0 6 24 * *'
|
|
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,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,94 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Copyright (c) 2022 Eureka Robotics
|
|
3
|
+
# Authors: Joseph Mirabel
|
|
4
|
+
#
|
|
5
|
+
#
|
|
6
|
+
|
|
7
|
+
cmake_minimum_required(VERSION 3.22)
|
|
8
|
+
|
|
9
|
+
set(CXX_DISABLE_WERROR TRUE)
|
|
10
|
+
set(PROJECT_USE_CMAKE_EXPORT TRUE)
|
|
11
|
+
|
|
12
|
+
set(PROJECT_NAME hpp-toppra)
|
|
13
|
+
set(PROJECT_DESCRIPTION "Bridge between HPP and TOPPRA.")
|
|
14
|
+
|
|
15
|
+
find_package(jrl-cmakemodules QUIET CONFIG)
|
|
16
|
+
if(jrl-cmakemodules_FOUND)
|
|
17
|
+
get_property(
|
|
18
|
+
JRL_CMAKE_MODULES
|
|
19
|
+
TARGET jrl-cmakemodules::jrl-cmakemodules
|
|
20
|
+
PROPERTY INTERFACE_INCLUDE_DIRECTORIES
|
|
21
|
+
)
|
|
22
|
+
message(STATUS "JRL cmakemodules found on system at ${JRL_CMAKE_MODULES}")
|
|
23
|
+
else()
|
|
24
|
+
message(STATUS "JRL cmakemodules not found. Let's fetch it.")
|
|
25
|
+
include(FetchContent)
|
|
26
|
+
FetchContent_Declare(
|
|
27
|
+
"jrl-cmakemodules"
|
|
28
|
+
GIT_REPOSITORY "https://github.com/jrl-umi3218/jrl-cmakemodules.git"
|
|
29
|
+
)
|
|
30
|
+
FetchContent_MakeAvailable("jrl-cmakemodules")
|
|
31
|
+
FetchContent_GetProperties("jrl-cmakemodules" SOURCE_DIR JRL_CMAKE_MODULES)
|
|
32
|
+
endif()
|
|
33
|
+
|
|
34
|
+
include("${JRL_CMAKE_MODULES}/hpp.cmake")
|
|
35
|
+
include("${JRL_CMAKE_MODULES}/boost.cmake")
|
|
36
|
+
|
|
37
|
+
compute_project_args(PROJECT_ARGS LANGUAGES CXX)
|
|
38
|
+
project(${PROJECT_NAME} ${PROJECT_ARGS})
|
|
39
|
+
|
|
40
|
+
add_project_dependency(eigenpy REQUIRED)
|
|
41
|
+
add_project_dependency(hpp-core REQUIRED)
|
|
42
|
+
add_project_dependency(hpp-python REQUIRED)
|
|
43
|
+
add_project_dependency(toppra 0.6.2 REQUIRED)
|
|
44
|
+
if(BUILD_TESTING)
|
|
45
|
+
find_package(Catch2 QUIET)
|
|
46
|
+
if(NOT Catch2_FOUND)
|
|
47
|
+
include(FetchContent)
|
|
48
|
+
FetchContent_Declare(
|
|
49
|
+
Catch2
|
|
50
|
+
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
|
|
51
|
+
GIT_TAG v3.15.2
|
|
52
|
+
)
|
|
53
|
+
FetchContent_MakeAvailable(Catch2)
|
|
54
|
+
endif()
|
|
55
|
+
endif()
|
|
56
|
+
|
|
57
|
+
include(${HPP_CORE_CMAKE_PLUGIN})
|
|
58
|
+
|
|
59
|
+
set(${PROJECT_NAME}_HEADERS include/hpp/toppra/toppra.hh)
|
|
60
|
+
|
|
61
|
+
add_library(
|
|
62
|
+
${PROJECT_NAME}
|
|
63
|
+
SHARED
|
|
64
|
+
src/toppra.cc
|
|
65
|
+
src/piecewise-polynomial.hh
|
|
66
|
+
src/piecewise-polynomial.hh
|
|
67
|
+
src/serialization.hh
|
|
68
|
+
${${PROJECT_NAME}_HEADERS}
|
|
69
|
+
)
|
|
70
|
+
target_link_libraries(
|
|
71
|
+
hpp-toppra
|
|
72
|
+
PUBLIC hpp-python::hpp-python hpp-core::hpp-core toppra::toppra
|
|
73
|
+
)
|
|
74
|
+
target_include_directories(hpp-toppra PUBLIC $<INSTALL_INTERFACE:include>)
|
|
75
|
+
install(TARGETS ${PROJECT_NAME} EXPORT ${TARGETS_EXPORT_NAME} DESTINATION lib)
|
|
76
|
+
|
|
77
|
+
add_subdirectory(python)
|
|
78
|
+
|
|
79
|
+
if(BUILD_TESTING)
|
|
80
|
+
add_executable(
|
|
81
|
+
unittests
|
|
82
|
+
tests/tests.cc
|
|
83
|
+
tests/test-ill-formed-paths.cc
|
|
84
|
+
tests/test-path-serialization.cc
|
|
85
|
+
)
|
|
86
|
+
add_test(unittests unittests)
|
|
87
|
+
target_link_libraries(
|
|
88
|
+
unittests
|
|
89
|
+
hpp-manipulation::hpp-manipulation
|
|
90
|
+
toppra::toppra
|
|
91
|
+
hpp-toppra
|
|
92
|
+
Catch2::Catch2WithMain
|
|
93
|
+
)
|
|
94
|
+
endif()
|
hpp_toppra-9.0.0/LICENSE
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
Copyright (c) 2020, LAAS-CNRS
|
|
2
|
+
Copyright (c) 2022, Eureka Robotics
|
|
3
|
+
Authors: Joseph Mirabel (jmirabel@eurekarobotics.com)
|
|
4
|
+
Olivier Roussel (olivier.roussel@laas.fr)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Redistribution and use in source and binary forms, with or without
|
|
8
|
+
modification, are permitted provided that the following conditions are
|
|
9
|
+
met:
|
|
10
|
+
|
|
11
|
+
1. Redistributions of source code must retain the above copyright
|
|
12
|
+
notice, this list of conditions and the following disclaimer.
|
|
13
|
+
|
|
14
|
+
2. Redistributions in binary form must reproduce the above copyright
|
|
15
|
+
notice, this list of conditions and the following disclaimer in the
|
|
16
|
+
documentation and/or other materials provided with the distribution.
|
|
17
|
+
|
|
18
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
19
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
20
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
21
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
22
|
+
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
23
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
24
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
25
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
26
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
27
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
28
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
|
|
29
|
+
DAMAGE.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: hpp-toppra
|
|
3
|
+
Version: 9.0.0
|
|
4
|
+
Summary: Bridge between HPP and TOPPRA
|
|
5
|
+
Requires-Python: >=3.9
|
|
6
|
+
License-Expression: LGPL-3.0-or-later
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Requires-Dist: cmeel
|
|
9
|
+
Requires-Dist: cmeel-boost ~= 1.90.0
|
|
10
|
+
Requires-Dist: cmeel-toppra
|
|
11
|
+
Requires-Dist: hpp-python
|
|
12
|
+
Provides-Extra: build
|
|
13
|
+
Requires-Dist: cmeel-boost[build] ~= 1.90.0; extra == "build"
|
|
14
|
+
Requires-Dist: cmeel-toppra[build]; extra == "build"
|
|
15
|
+
Requires-Dist: hpp-python[build]; extra == "build"
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
|
|
18
|
+
# Integration of TOPPRA in HPP
|
|
19
|
+
|
|
20
|
+
This package was kick-started from the [TOPPRA plugin](https://github.com/humanoid-path-planner/hpp-core/tree/master/plugins) in [hpp-core](https://github.com/humanoid-path-planner/hpp-core).
|
|
21
|
+
|
|
22
|
+
## Instruction for developers
|
|
23
|
+
|
|
24
|
+
### Unit tests
|
|
25
|
+
|
|
26
|
+
At the moment, there is no CI pipeline so developpers should make sure the unit test passes
|
|
27
|
+
before submitting a PR.
|
|
28
|
+
|
|
29
|
+
### Increase the version number
|
|
30
|
+
|
|
31
|
+
Inreasing the version number is done with `bump2version`.
|
|
32
|
+
Run `bump2version (major|minor|patch)` depending on the version number you wish to increase.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Integration of TOPPRA in HPP
|
|
2
|
+
|
|
3
|
+
This package was kick-started from the [TOPPRA plugin](https://github.com/humanoid-path-planner/hpp-core/tree/master/plugins) in [hpp-core](https://github.com/humanoid-path-planner/hpp-core).
|
|
4
|
+
|
|
5
|
+
## Instruction for developers
|
|
6
|
+
|
|
7
|
+
### Unit tests
|
|
8
|
+
|
|
9
|
+
At the moment, there is no CI pipeline so developpers should make sure the unit test passes
|
|
10
|
+
before submitting a PR.
|
|
11
|
+
|
|
12
|
+
### Increase the version number
|
|
13
|
+
|
|
14
|
+
Inreasing the version number is done with `bump2version`.
|
|
15
|
+
Run `bump2version (major|minor|patch)` depending on the version number you wish to increase.
|