Skip to content

Commit 8d01832

Browse files
committed
Bump to version 0.1.6
1 parent 126143f commit 8d01832

20 files changed

Lines changed: 214 additions & 87 deletions

.gitlab-ci.yml

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -33,28 +33,22 @@ format:
3333
ubuntu:cpp:build:
3434
stage: build
3535
script:
36-
- mkdir build && cd build && cmake ..
37-
- make -j$(nproc --all) all
38-
artifacts:
39-
paths:
40-
- build/
36+
- mkdir build && cd build && cmake .. && make -j$(nproc --all) all install
37+
- make uninstall
4138

42-
ubuntu:cpp:install:
39+
ubuntu:cpp:example:
4340
stage: build
4441
needs: ["ubuntu:cpp:build"]
4542
script:
46-
- cd build
47-
- make install
43+
- mkdir build && cd build && cmake -DBUILD_CXX_EXAMPLE=ON .. && make -j$(nproc --all) install
4844
- make uninstall
4945

50-
ubuntu:cpp:example:
46+
ubuntu:cpp:standalone_example:
5147
stage: build
52-
needs: ["ubuntu:cpp:install"]
53-
script:
48+
needs: ["ubuntu:cpp:build"]
5449
script:
55-
- mkdir build && cd build && cmake -DBUILD_CXX_EXAMPLE=ON .. && make install && cd ..
56-
- cd examples/cpp/ && mkdir build && cd build && cmake ..
57-
- make -j$(nproc --all) all
50+
- mkdir build && cd build && cmake .. && make -j$(nproc --all) install && cd ..
51+
- cd examples/cpp/ && mkdir build && cd build && cmake .. && make -j$(nproc --all)
5852

5953
#----- ubuntu python jobs ---------------------------------------------------------------------------
6054
ubuntu:py:wheel:
@@ -103,9 +97,9 @@ manylinux:wheels:
10397
image: docker:19.03.12
10498
needs: ["ubuntu:py:wheel"]
10599
rules:
100+
- if: $CI_COMMIT_TAG
106101
- if: $CI_MERGE_REQUEST_IID
107102
- if: $CI_PIPELINE_SOURCE == "schedule"
108-
- if: "$CI_COMMIT_TAG != null && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
109103
variables:
110104
DOCKER_IMAGE: "quay.io/pypa/manylinux2014_x86_64"
111105
PLAT: "manylinux2014_x86_64"
@@ -133,9 +127,9 @@ manylinux:test:
133127
needs: ["manylinux:wheels"]
134128
image: docker:19.03.12
135129
rules:
130+
- if: $CI_COMMIT_TAG
136131
- if: $CI_MERGE_REQUEST_IID
137132
- if: $CI_PIPELINE_SOURCE == "schedule"
138-
- if: "$CI_COMMIT_TAG != null && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
139133
variables:
140134
DOCKER_IMAGE: "quay.io/pypa/manylinux2014_x86_64"
141135
PLAT: "manylinux2014_x86_64"
@@ -153,12 +147,12 @@ testpypi:
153147
stage: deploy
154148
needs: ["manylinux:test"]
155149
rules:
156-
- if: "$CI_COMMIT_TAG != null && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
150+
- if: $CI_COMMIT_TAG
157151
variables:
158152
TWINE_PASSWORD: "${TESTPYPI_ACCESS_TOKEN}"
159153
TWINE_USERNAME: "__token__"
160154
script:
161-
- twine upload --skip-existing --repository testpypi wheelhouse/*.whl
155+
- twine upload --verbose --skip-existing --repository testpypi wheelhouse/*.whl
162156
artifacts:
163157
paths:
164158
- wheelhouse/
@@ -167,9 +161,9 @@ pypi:
167161
stage: deploy
168162
needs: ["testpypi"]
169163
rules:
170-
- if: "$CI_COMMIT_TAG != null && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
164+
- if: $CI_COMMIT_TAG
171165
variables:
172166
TWINE_PASSWORD: "${PYPI_ACCESS_TOKEN}"
173167
TWINE_USERNAME: "__token__"
174168
script:
175-
- twine upload --skip-existing --repository pypi wheelhouse/*.whl
169+
- twine upload --verbose --skip-existing --repository pypi wheelhouse/*.whl

3rdparty/find_dependencies.cmake

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,15 @@ if(NOT USE_SYSTEM_EIGEN3 OR NOT EIGEN3_FOUND)
1717
include(${CMAKE_CURRENT_LIST_DIR}/eigen/eigen.cmake)
1818
endif()
1919

20-
if(USE_SYSTEM_PYBIND11)
21-
find_package(pybind11 QUIET)
22-
endif()
23-
if(NOT USE_SYSTEM_PYBIND11 OR NOT pybind11_FOUND)
24-
set(USE_SYSTEM_PYBIND11 OFF)
25-
include(${CMAKE_CURRENT_LIST_DIR}/pybind11/pybind11.cmake)
20+
if(BUILD_PYTHON_BINDINGS)
21+
if(USE_SYSTEM_PYBIND11)
22+
find_package(pybind11 QUIET)
23+
endif()
24+
if(NOT USE_SYSTEM_PYBIND11 OR NOT pybind11_FOUND)
25+
message(STATUS "ASDASDAS")
26+
set(USE_SYSTEM_PYBIND11 OFF)
27+
include(${CMAKE_CURRENT_LIST_DIR}/pybind11/pybind11.cmake)
28+
endif()
2629
endif()
2730

2831
if(USE_SYSTEM_OPENVDB)

3rdparty/pybind11/pybind11.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ include(FetchContent)
22
FetchContent_Declare(
33
ext_pybind11
44
PREFIX pybind11
5-
URL https://github.com/pybind/pybind11/archive/refs/tags/v2.6.2.tar.gz
6-
URL_HASH SHA256=8ff2fff22df038f5cd02cea8af56622bc67f5b64534f1b83b9f133b8366acff2)
5+
#TODO: Update to a release when this gets merged: https://github.com/pybind/pybind11/pull/3743
6+
GIT_REPOSITORY https://github.com/pybind/pybind11
7+
GIT_TAG master
8+
GIT_SHALLOW ON)
79

810
FetchContent_MakeAvailable(ext_pybind11)

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
cmake_minimum_required(VERSION 3.10)
2-
project(VDBFusion VERSION 0.1.5 LANGUAGES CXX)
2+
project(VDBFusion VERSION 0.1.6 LANGUAGES CXX)
33

44
# Setup build options
55
option(USE_CCACHE "Build using Ccache if found on the path" ON)
66
option(USE_SYSTEM_EIGEN3 "Use system pre-installed eigen3" ON)
77
option(USE_SYSTEM_OPENVDB "Use system pre-installed OpenVDB" ON)
88
option(USE_SYSTEM_PYBIND11 "Use system pre-installed pybind11" ON)
9-
option(PYOPENVDB_SUPPORT "Add suuport for pyopenvdb, this depends on boost::python" OFF)
109
option(SILENCE_WARNINGS "To build manylinux packages only, disable on the global scope" OFF)
1110
option(BUILD_CXX_EXAMPLE "Build C++ examples" OFF)
11+
option(BUILD_PYTHON_BINDINGS "Build the python module" OFF)
1212

13-
mark_as_advanced(USE_CCACHE USE_SYSTEM_OPENVDB PYOPENVDB_SUPPORT SILENCE_WARNINGS)
13+
mark_as_advanced(USE_CCACHE USE_SYSTEM_OPENVDB SILENCE_WARNINGS BUILD_PYTHON_BINDINGS)
1414

1515
if(SILENCE_WARNINGS)
1616
message(WARNING "Disable all warnings for all targets in the build system, only for the CI/CD")

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
.PHONY: docker
1+
.PHONY: install docker
22
install:
33
pip3 -v install . && cp build/*/compile_commands.json build/
44

55
uninstall:
66
pip3 -v uninstall vdbfusion
77

8+
dev:
9+
pip3 -v install -e . && cp build/*/compile_commands.json build/
10+
811
test:
912
pytest .
1013

ci/test-wheels.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ for PYBIN in /opt/python/*/bin/; do
77
"${PYBIN}/pip" install -r /io/requirements.txt
88
"${PYBIN}/pip" install -r /io/dev-requirements.txt
99
"${PYBIN}/pip" install --no-index -f /io/wheelhouse vdbfusion
10-
(cd "$HOME"; "${PYBIN}/pytest" /io/)
10+
(cd "$HOME"; "${PYBIN}/pytest" --capture=sys /io/)
1111
done

docker/builder/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ RUN git clone --depth 1 https://github.com/nachovizzo/openvdb.git -b nacho/vdbfu
5252
&& cmake \
5353
-DOPENVDB_BUILD_PYTHON_MODULE=ON \
5454
-DUSE_NUMPY=ON \
55+
-DPYOPENVDB_INSTALL_DIRECTORY="/usr/local/lib/python3.8/dist-packages" \
5556
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
5657
-DUSE_ZLIB=OFF \
5758
..\

examples/python/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
vdbfusion:
2+
@make -C ../../

examples/python/config/kitti.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ space_carving: False
55
out_dir: "results/"
66

77
# Reconstruction
8-
fill_holes: True
8+
fill_holes: False
99
min_weight: 5.0
1010

1111
# Kitti
1212
apply_pose: True
13-
min_range: 2.0
14-
max_range: 70.0
13+
min_range: 2.5
14+
max_range: 120.0
1515
correct_scan: True

examples/python/vdbfusion_pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def _get_o3d_mesh(tsdf_volume, cfg):
8585

8686
def _print_metrics(self):
8787
# If PYOPENVDB_SUPPORT has not been enabled then we can't report any metrics
88-
if not hasattr(self._tsdf_volume, "tsdf"):
88+
if not self._tsdf_volume.pyopenvdb_support_enabled:
8989
print("No metrics available, please compile with PYOPENVDB_SUPPORT")
9090
return
9191

0 commit comments

Comments
 (0)