Skip to content

Commit 3e04e89

Browse files
authored
Fork branch (strawlab#106)
Build support in Windows environment(test 1.6, not test 1.72/1.8) Reference example of official website Partial implementation Adding automatic test configuration file(AppVeyor/TravisCI)
1 parent 97f5f17 commit 3e04e89

File tree

410 files changed

+253738
-1069
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

410 files changed

+253738
-1069
lines changed

.flake8.cython

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[flake8]
2+
filename = *.pyx,*.px*
3+
exclude = .eggs,*.egg,build
4+
ignore = E901,E225,E226,E227

.pep8

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[pep8]
2+
exclude=.eggs,*.egg,build
3+
diff=True

.travis.yml

Lines changed: 170 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,170 @@
1+
language: python
2+
3+
cache:
4+
- pip
5+
- ccache
6+
7+
matrix:
8+
include:
9+
# - os: linux
10+
# python: "2.7"
11+
# env:
12+
# - PCL_VERSION="1.7"
13+
# - os: linux
14+
# python: "3.4"
15+
# env:
16+
# - PCL_VERSION="1.7"
17+
# - os: linux
18+
# python: "3.5"
19+
# env:
20+
# - PCL_VERSION="1.7"
21+
- os: linux
22+
python: "2.7"
23+
env:
24+
- PCL_VERSION="1.8"
25+
- os: linux
26+
python: "3.4"
27+
env:
28+
- PCL_VERSION="1.8"
29+
- os: linux
30+
python: "3.5"
31+
env:
32+
- PCL_VERSION="1.8"
33+
34+
# TravisCI TimeLimit 50min
35+
# numpy error
36+
# - os: osx
37+
# language: generic
38+
# env:
39+
# - PYTHON_VERSION=2.7.10
40+
# - PYENV_ROOT=~/.pyenv
41+
# - PATH=$PYENV_ROOT/shims:$PATH:$PYENV_ROOT/bin
42+
# - os: osx
43+
# language: generic
44+
# env:
45+
# - PYTHON_VERSION=3.4.3
46+
# - PYENV_ROOT=~/.pyenv
47+
# - PATH=$PYENV_ROOT/shims:$PATH:$PYENV_ROOT/bin
48+
# - os: osx
49+
# language: generic
50+
# env:
51+
# - PYTHON_VERSION=3.5.1
52+
# - PYENV_ROOT=~/.pyenv
53+
# - PATH=$PYENV_ROOT/shims:$PATH:$PYENV_ROOT/bin
54+
55+
# travis_wait 45 brew install pcl --without-vtk --without-qt;
56+
# use pcl version 1.7
57+
# sudo add-apt-repository ppa:v-launchpad-jochen-sprickerhof-de/pcl -y;
58+
# sudo apt-get update -y;
59+
# sudo apt-get install libpcl-all -y;
60+
# use pcl 1.8(Ubuntu)
61+
# sudo apt-get update -y;
62+
# git clone https://github.com/PointCloudLibrary/pcl.git pcl-trunk;
63+
# ln -s pcl-trunk pcl -y;
64+
# sudo apt-get install g++ -y;
65+
# sudo apt-get install cmake cmake-gui -y;
66+
# sudo apt-get install doxygen -y;
67+
# sudo apt-get install mpi-default-dev openmpi-bin openmpi-common -y;
68+
# sudo apt-get install libflann1.8 libflann-dev -y;
69+
# sudo apt-get install libeigen3-dev -y;
70+
# sudo apt-get install libboost-all-dev -y;
71+
# sudo apt-get install libvtk5.8-qt4 libvtk5.8 libvtk5-dev -y;
72+
# sudo apt-get install libqhull* -y;
73+
# sudo apt-get install libusb-dev -y;
74+
# sudo apt-get install libgtest-dev -y;
75+
# sudo apt-get install git-core freeglut3-dev pkg-config -y;
76+
# sudo apt-get install build-essential libxmu-dev libxi-dev -y;
77+
# sudo apt-get install libusb-1-0-dev graphviz mono-complete -y;
78+
# sudo apt-get install qt-sdk openjdk-7-jdk openjdk-7-jre -y;
79+
# sudo apt-get install phonon-backend-gstreamer -y;
80+
# sudo apt-get install phonon-backend-vlc -y;
81+
# sudo apt-get install libpcap-dev -y;
82+
# cd pcl;
83+
# mkdir build;
84+
# cd build;
85+
# cmake -DCMAKE_BUILD_TYPE=None -DBUILD_GPU=OFF -DBUILD_apps=ON -DBUILD_examples=ON .. ;
86+
# travis_wait 45 make;
87+
# travis_wait 45 sudo make install;
88+
# https://github.com/hsean/Capstone-44-Object-Segmentation/wiki/PCL-1.8:-Ubuntu-14.04-Installation-Guide
89+
# Add OpenNI2?
90+
# sudo apt-get install -yV g++ python libusb-1.0.0-dev libudev-dev openjdk-6-jdk freeglut3-dev doxygen graphviz
91+
# git clone https://github.com/OpenNI/OpenNI2.git
92+
# cd OpenNI2
93+
# make
94+
# cd Packaging
95+
# python ./ReleaseVersion.py x86
96+
# cd OpenNI-Linux-x86-2.2
97+
# cp -a Include /usr/local/include/ni2
98+
# cp -a Redist /usr/local/lib/ni2
99+
# cd ../../..
100+
# other
101+
# sudo apt-get install openni2-utils
102+
###
103+
before_install:
104+
- if [[ $TRAVIS_OS_NAME = "osx" ]]; then
105+
brew update >/dev/null;
106+
brew outdated pyenv || brew upgrade --quiet pyenv;
107+
brew install homebrew/boneyard/pyenv-pip-rehash;
108+
brew tap homebrew/science;
109+
110+
PYTHON_CONFIGURE_OPTS="--enable-unicode=ucs2" pyenv install -ks $PYTHON_VERSION;
111+
pyenv global $PYTHON_VERSION;
112+
python --version;
113+
114+
brew search versions/pcl;
115+
travis_wait 45 brew install pcl --without-qt;
116+
fi
117+
118+
- if [[ $TRAVIS_OS_NAME = "linux" ]]; then
119+
sudo apt-get install openni2-utils
120+
121+
sudo add-apt-repository ppa:v-launchpad-jochen-sprickerhof-de/pcl -y;
122+
sudo apt-get update -y;
123+
sudo apt-get install libpcl-all -y;
124+
fi
125+
126+
127+
install:
128+
- pip install --upgrade pip
129+
- pip install cython==0.25.2
130+
- pip install numpy
131+
- pip install coveralls
132+
- python setup.py build_ext -i
133+
- python setup.py install
134+
135+
# pcl base 1.7.2
136+
# - python examples/official/Recognition/cpython correspondence_grouping.py pcldata/tutorials/correspondence_grouping/milk.pcd pcldata/tutorials/correspondence_grouping/milk_cartoon_all_small_clorox.pcd
137+
script:
138+
# - coverage run --source=test_pcl setup.py test
139+
# - coverage run tests/test_pcl.py
140+
- coverage run --parallel-mode tests/test_pcl.py
141+
- coverage run --parallel-mode tests/test_registration.py
142+
# examples
143+
# - python examples/GrabberCallbackTest.py
144+
# examples/official
145+
# - python examples/official/grabber/openni_grabber.py
146+
# # examples_command_172.txt
147+
# # Filtering
148+
# - python examples/official/Filtering/PassThroughFilter.py
149+
# - python examples/official/Filtering/project_inliers.py
150+
# - python examples/official/Filtering/remove_outliers.py -r Radius
151+
# - python examples/official/Filtering/remove_outliers.py -r Condition
152+
# - python examples/official/Filtering/VoxelGrid_160.py
153+
# - python examples/official/Filtering/statistical_removal.py
154+
# - python examples/official/IO/pcd_read.py
155+
# # KdTree
156+
# - python examples/official/kdtree/kdtree_search.py
157+
# # keypoints
158+
# # NG(RangeImage Link Error)
159+
# - python examples/official/keypoints/narf_keypoint_extraction.py
160+
# # octree
161+
# - python examples/official/octree/octree_search.py
162+
# - python examples/official/Segmentation/cluster_extraction.py
163+
# - python examples/official/Segmentation/cylinder_segmentation.py
164+
# - python examples/official/surface/concave_hull_2d.py
165+
# - python examples/official/surface/resampling.py
166+
167+
after_success:
168+
- coverage combine
169+
- coveralls
170+

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy