Skip to content

Commit 8ffedeb

Browse files
authored
upgrade to fcl 0.7.0, octomap 1.9.8 (#51)
1 parent cc75369 commit 8ffedeb

File tree

9 files changed

+35
-63
lines changed

9 files changed

+35
-63
lines changed

.github/workflows/push.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- name: Check out source repository
1111
uses: actions/checkout@v2
1212
- name: Set up Python environment
13-
uses: actions/setup-python@v2
13+
uses: actions/setup-python@v3
1414
with:
1515
python-version: 3.9
1616
- name: flake8
@@ -24,12 +24,13 @@ jobs:
2424
name: Build wheel on ${{matrix.platform}}
2525
runs-on: ${{matrix.platform}}
2626
strategy:
27+
fail-fast: false
2728
matrix:
2829
platform: [ubuntu-latest, macos-latest, windows-latest]
2930
steps:
3031
- uses: actions/checkout@v2
3132
- name: Build wheels
32-
uses: pypa/cibuildwheel@v2.0.0
33-
- uses: actions/upload-artifact@v2
33+
uses: pypa/cibuildwheel@v2.7.0
34+
- uses: actions/upload-artifact@v3
3435
with:
3536
path: ./wheelhouse/*.whl

.github/workflows/release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ jobs:
4848
steps:
4949
- uses: actions/checkout@v2
5050
- name: Build wheels
51-
uses: pypa/cibuildwheel@v2.0.0
52-
- uses: actions/upload-artifact@v2
51+
uses: pypa/cibuildwheel@v2.7.0
52+
- uses: actions/upload-artifact@v3
5353
with:
5454
path: ./wheelhouse/*.whl
5555
- uses: xresloader/upload-to-github-release@v1
@@ -60,16 +60,17 @@ jobs:
6060
overwrite: true
6161
draft: false
6262
update_latest_release: true
63-
63+
6464
upload_pypi:
65-
needs: [build_wheels]
65+
if: contains(needs.create_release.outputs.mod_files, 'src/fcl/version.py')
66+
needs: [create_release, build_wheels]
6667
runs-on: ubuntu-latest
6768
steps:
68-
- uses: actions/download-artifact@v2
69+
- uses: actions/download-artifact@v3
6970
with:
7071
name: artifact
7172
path: dist
72-
- uses: pypa/gh-action-pypi-publish@v1.4.2
73+
- uses: pypa/gh-action-pypi-publish@v1.5.0
7374
with:
7475
user: __token__
7576
password: ${{ secrets.PYPI_API_TOKEN }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
Python-FCL is an (unofficial) Python interface for the [Flexible Collision Library (FCL)](https://github.com/flexible-collision-library/fcl),
55
an excellent C++ library for performing proximity and collision queries on pairs of geometric models.
6-
Currently, this package is targeted for FCL 0.6.1.
6+
Currently, this package is targeted for FCL 0.7.0.
77

88
This package supports three types of proximity queries for pairs of geometric models:
99
* __Collision Detection__: Detecting whether two models overlap (and optionally where).

build_dependencies/Dockerfile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# NOTE: this docker file is only for local testing of the build
2-
# it should be copied or symlinked up one directory as docker
3-
# can't go into parent directories
42
# example of testing a build locally:
5-
6-
# ln -sf requirements/Dockerfile .
7-
# docker build . -t pythonfcl
3+
# docker build . -t pythonfcl -f build_dependencies/Dockerfile
84

95
FROM quay.io/pypa/manylinux2010_x86_64:latest
106

@@ -24,6 +20,6 @@ RUN pip install numpy cython
2420
# build the python-fcl module
2521
COPY . /python_fcl
2622
RUN pip wheel /python_fcl --no-deps -w wheelhouse/
27-
RUN pip install /python_fcl --no-index -f /wheelhouse
23+
RUN pip install python_fcl --no-index -f /wheelhouse
2824
RUN ls /wheelhouse
29-
RUN auditwheel repair wheelhouse/python_fcl-0.6.1-cp39-cp39-linux_x86_64.whl --plat manylinux2010_x86_64 -w /wheelhouse
25+
RUN auditwheel repair wheelhouse/python_fcl-0.7.0-cp39-cp39-linux_x86_64.whl -w /wheelhouse

build_dependencies/install_linux.sh

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,44 @@
1+
# exit immediately on any failed step
2+
set -xe
3+
14
mkdir -p deps
25
cd deps
3-
get eigen
6+
47
curl -OL https://gitlab.com/libeigen/eigen/-/archive/3.3.9/eigen-3.3.9.tar.gz
58
tar -zxf eigen-3.3.9.tar.gz
69

710
rm -rf libccd
811
git clone --depth 1 --branch v2.1 https://github.com/danfis/libccd.git
912

1013
rm -rf octomap
11-
git clone --depth 1 --branch v1.8.0 https://github.com/OctoMap/octomap.git
14+
git clone --depth 1 --branch v1.9.8 https://github.com/OctoMap/octomap.git
1215

1316
rm -rf fcl
14-
git clone --depth 1 --branch v0.6.1 https://github.com/flexible-collision-library/fcl.git
17+
git clone --depth 1 --branch v0.7.0 https://github.com/ambi-robotics/fcl.git
1518

16-
echo "Install eigen"
19+
# Install eigen
1720
cmake -B build -S eigen-3.3.9
1821
cmake --install build
1922

20-
echo "Build and install libccd"
23+
# Build and install libccd
2124
cd libccd
2225
cmake .
2326
make -j4
2427
make install
2528
cd ..
2629

27-
echo "Build and install octomap"
30+
# Build and install octomap
2831
cd octomap
29-
cmake .
32+
cmake . -D CMAKE_BUILD_TYPE=Release -D BUILD_OCTOVIS_SUBPROJECT=OFF -D BUILD_DYNAMICETD3D_SUBPROJECT=OFF
3033
make -j4
3134
make install
3235
cd ..
3336

34-
echo "Build and install fcl"
37+
# Build and install fcl
3538
cd fcl
3639
cmake .
3740
make -j4
3841
make install
3942
cd ..
4043

41-
cd ..
44+
cd ..

build_dependencies/install_windows.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<#
22
Originally based on script written by Pebaz (https://github.com/Pebaz/python-fcl/blob/master/requirements/build_win32.ps1)
3-
but with many modification in order to use fcl 0.6.1 and install dependencies without admin rights.
3+
but with many modifications in order to use fcl 0.7.0 and install dependencies without admin rights.
44
55
This script builds fcl and it's dependencies for python-fcl on Windows.
66
@@ -18,9 +18,9 @@ $base_dir = Get-Location
1818
mkdir -p deps; Set-Location deps
1919

2020
# Build options
21-
$generator = "Visual Studio 16 2019"
21+
$generator = "Visual Studio 17 2022"
2222

23-
# All compiled depencies will be install in following folder
23+
# All compiled dependencies will be installed in following folder
2424
$install_dir = "$base_dir\deps\install"
2525

2626

@@ -61,7 +61,7 @@ Set-Location ..
6161
# ------------------------------------------------------------------------------
6262
# Octomap
6363
Write-Host "Building Octomap"
64-
git clone --depth 1 --branch v1.8.0 https://github.com/OctoMap/octomap
64+
git clone --depth 1 --branch v1.9.8 https://github.com/OctoMap/octomap
6565
Set-Location octomap
6666

6767
cmake -B build `
@@ -80,7 +80,7 @@ Set-Location ..
8080
# ------------------------------------------------------------------------------
8181
# FCL
8282
Write-Host "Building FCL"
83-
git clone --depth 1 --branch v0.6.1 https://github.com/flexible-collision-library/fcl
83+
git clone --depth 1 --branch v0.7.0 https://github.com/ambi-robotics/fcl.git
8484
Set-Location fcl
8585

8686
cmake -B build `

build_dependencies/install_windows_ci.ps1

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

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = ["setuptools", "wheel", "oldest-supported-numpy", "Cython"]
33
build-backend = "setuptools.build_meta"
44

55
[tool.cibuildwheel]
6-
skip = "pp*"
6+
skip = ["pp*", "*musllinux*"]
77
test-requires = "pytest"
88
test-command = "pytest {package}/tests"
99

@@ -15,5 +15,5 @@ archs = ["x86_64"]
1515
before-all = "bash build_dependencies/install_macos.sh"
1616

1717
[tool.cibuildwheel.windows]
18-
before-all = "powershell build_dependencies\\install_windows_ci.ps1"
18+
before-all = "powershell build_dependencies\\install_windows.ps1"
1919
archs = ["AMD64"]

src/fcl/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.6.11"
1+
__version__ = "0.7.0"

0 commit comments

Comments
 (0)