Skip to content

Commit 8f1f385

Browse files
authored
Merge pull request #27 from OpenPTrack/docker
Docker
2 parents 58b3af0 + 9b6c3cd commit 8f1f385

File tree

462 files changed

+22276
-6446
lines changed

Some content is hidden

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

462 files changed

+22276
-6446
lines changed

.DS_Store

10 KB
Binary file not shown.

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.DS_Store
2+
._.DS_Store
3+
*.weights
4+
*.o
5+
*.mp4
6+
*.bag
7+
*.avi

detection/conf/ground_based_people_detector_kinect2.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ ground_estimation_mode: 3
66
# Flag enabling manual ground selection via ssh:
77
remote_ground_selection: true #false
88
# Flag stating if the ground should be read from file, if present:
9-
read_ground_from_file: false
9+
read_ground_from_file: true
1010
# Flag that locks the ground plane update:
11-
lock_ground: false
11+
lock_ground: true
1212
# Threshold on the ratio of valid points needed for ground estimation:
13-
valid_points_threshold: 0.3
13+
valid_points_threshold: 0.0
1414

1515
############################
1616
## Background subtraction ##
@@ -26,9 +26,9 @@ background_seconds: 3.0
2626
## Ground based people detection parameters ##
2727
##############################################
2828
# Minimum detection confidence:
29-
ground_based_people_detection_min_confidence: -4.0 #-1.75
29+
ground_based_people_detection_min_confidence: -5.0 #-1.75
3030
# Minimum person height:
31-
minimum_person_height: 1.0
31+
minimum_person_height: 0.6
3232
# Maximum person height:
3333
maximum_person_height: 2.3
3434
# Max depth range:
@@ -46,7 +46,7 @@ heads_minimum_distance: 0.3
4646
# Voxel size used to downsample the point cloud (lower: detection slower but more precise; higher: detection faster but less precise):
4747
voxel_size: 0.06
4848
# Denoising flag. If true, a statistical filter is applied to the point cloud to remove noise:
49-
apply_denoising: false
49+
apply_denoising: true
5050
# MeanK for denoising (the higher it is, the stronger is the filtering):
5151
mean_k_denoising: 5
5252
# Standard deviation for denoising (the lower it is, the stronger is the filtering):
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
0.135961
2+
0.736747
3+
0.662358
4+
-3.7817
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-0.126431
2+
-0.751091
3+
-0.64798
4+
3.72321

detection/launch/camera_poses.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Auto-generated file.
2+
# CALIBRATION ID: 1527811056
3+
kinect01: 1.46852 0.274771 5.17853 0.875625 -0.247839 0.0487522 0.411678

detection/launch/camera_poses.yaml

Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
# Auto generated file.
2+
calibration_id: 1506733371
3+
4+
# Poses w.r.t. the "world" reference frame
5+
poses:
6+
Kinect_1:
7+
translation:
8+
x: 5.5228
9+
y: -4.27573
10+
z: 2.84657
11+
rotation:
12+
x: 0.540582
13+
y: 0.683967
14+
z: -0.356305
15+
w: -0.336164
16+
Kinect_2:
17+
translation:
18+
x: 3.20187
19+
y: 4.10387
20+
z: 2.82639
21+
rotation:
22+
x: 0.258961
23+
y: 0.784498
24+
z: -0.539848
25+
w: -0.161449
26+
Kinect_3:
27+
translation:
28+
x: 2.61357
29+
y: 6.19869
30+
z: 2.89035
31+
rotation:
32+
x: 0.311742
33+
y: 0.765154
34+
z: -0.531478
35+
w: -0.186781
36+
Kinect_4:
37+
translation:
38+
x: -2.16694
39+
y: 8.43214
40+
z: 2.93133
41+
rotation:
42+
x: -0.059143
43+
y: 0.864227
44+
z: -0.494806
45+
w: 0.0691426
46+
Kinect_5:
47+
translation:
48+
x: -4.63463
49+
y: 3.14166
50+
z: 2.72833
51+
rotation:
52+
x: -0.361098
53+
y: 0.706802
54+
z: -0.541251
55+
w: 0.277643
56+
Kinect_6:
57+
translation:
58+
x: -6.72558
59+
y: -5.5218
60+
z: 2.88905
61+
rotation:
62+
x: 0.739439
63+
y: -0.398058
64+
z: 0.284016
65+
w: -0.462726
66+
Kinect_7:
67+
translation:
68+
x: -4.46316
69+
y: -8.67778
70+
z: 2.83606
71+
rotation:
72+
x: -0.83483
73+
y: 0.128724
74+
z: -0.0918962
75+
w: 0.5273
76+
Kinect_8:
77+
translation:
78+
x: 2.86894
79+
y: -8.54469
80+
z: 2.95391
81+
rotation:
82+
x: -0.784911
83+
y: -0.231639
84+
z: 0.125021
85+
w: 0.560917
86+
87+
# Inverse poses
88+
inverse_poses:
89+
Kinect_1:
90+
translation:
91+
x: 5.0204
92+
y: 0.352117
93+
z: 5.61764
94+
rotation:
95+
x: 0.540582
96+
y: 0.683967
97+
z: -0.356305
98+
w: 0.336164
99+
Kinect_2:
100+
translation:
101+
x: 0.296999
102+
y: 0.726112
103+
z: 5.87084
104+
rotation:
105+
x: 0.258961
106+
y: 0.784498
107+
z: -0.539848
108+
w: 0.161449
109+
Kinect_3:
110+
translation:
111+
x: -2.13301
112+
y: 0.467446
113+
z: 6.98858
114+
rotation:
115+
x: 0.311742
116+
y: 0.765154
117+
z: -0.531478
118+
w: 0.186781
119+
Kinect_4:
120+
translation:
121+
x: -0.513355
122+
y: -1.78647
123+
z: 8.99634
124+
rotation:
125+
x: -0.059143
126+
y: 0.864227
127+
z: -0.494806
128+
w: -0.0691426
129+
Kinect_5:
130+
translation:
131+
x: -0.159243
132+
y: 1.18009
133+
z: 6.11357
134+
rotation:
135+
x: -0.361098
136+
y: 0.706802
137+
z: -0.541251
138+
w: -0.277643
139+
Kinect_6:
140+
translation:
141+
x: -1.34193
142+
y: -0.96851
143+
z: 9.0184
144+
rotation:
145+
x: 0.739439
146+
y: -0.398058
147+
z: 0.284016
148+
w: 0.462726
149+
Kinect_7:
150+
translation:
151+
x: 1.48366
152+
y: -1.52729
153+
z: 9.93646
154+
rotation:
155+
x: 0.83483
156+
y: -0.128724
157+
z: 0.0918962
158+
w: 0.5273
159+
Kinect_8:
160+
translation:
161+
x: 1.64628
162+
y: -0.119682
163+
z: 9.34042
164+
rotation:
165+
x: 0.784911
166+
y: 0.231639
167+
z: -0.125021
168+
w: 0.560917

docker/open_ptrack-dep/Dockerfile

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
FROM nvidia/opengl:1.0-glvnd-runtime-ubuntu16.04
2+
3+
LABEL maintainer "Samir Tabriz"
4+
5+
ENV NVIDIA_DRIVER_CAPABILITIES ${NVIDIA_DRIVER_CAPABILITIES},display,compute,utility
6+
7+
RUN apt-get update \
8+
&& apt-get install -y --no-install-recommends mesa-utils \
9+
&& rm -rf /var/lib/apt/lists/*
10+
11+
RUN apt-get update \
12+
&& apt-get install -y --no-install-recommends ocl-icd-libopencl1 clinfo \
13+
&& rm -rf /var/lib/apt/lists/*
14+
15+
RUN mkdir -p /etc/OpenCL/vendors \
16+
&& echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd
17+
18+
ENV NVIDIA_VISIBLE_DEVICES=all
19+
20+
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections \
21+
&& echo keyboard-configuration keyboard-configuration/layout select 'English (US)' | debconf-set-selections \
22+
&& echo keyboard-configuration keyboard-configuration/layoutcode select 'us' | debconf-set-selections \
23+
&& apt-get update \
24+
&& apt-get install -y --no-install-recommends software-properties-common wget udev apt-utils sudo
25+
26+
RUN add-apt-repository -y ppa:danielrichter2007/grub-customizer \
27+
&& wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | apt-key add - \
28+
&& apt-get install -y apt-transport-https \
29+
&& echo "deb https://download.sublimetext.com/ apt/stable/" | tee /etc/apt/sources.list.d/sublime-text.list \
30+
&& apt-add-repository -y ppa:obsproject/obs-studio \
31+
&& apt-add-repository -y ppa:graphics-drivers/ppa \
32+
&& add-apt-repository -y ppa:yannubuntu/boot-repair \
33+
&& apt-get update \
34+
&& apt-get install -y sublime-text grub-customizer exfat-fuse exfat-utils vim terminator gitg cmake-curses-gui gparted meld cowsay fortune gimp synaptic libgoogle-glog-dev libatlas-base-dev libeigen3-dev libsuitesparse-dev ncdu filezilla p7zip-full openssh-client openssh-server boot-repair
35+
36+
RUN sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' \
37+
&& apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116 \
38+
&& apt-get update \
39+
&& apt-get install ros-kinetic-desktop-full python-rosinstall -y \
40+
&& rosdep init \
41+
&& rosdep update
42+
43+
RUN /bin/bash -c "echo 'source /opt/ros/kinetic/setup.bash' >> /root/.bashrc \
44+
&& source /root/.bashrc"
45+
46+
RUN add-apt-repository -y ppa:levi-armstrong/ppa \
47+
&& apt-get update
48+
49+
RUN /bin/bash -c "source /opt/ros/kinetic/setup.bash \
50+
&& cd \
51+
&& mkdir -p workspace/ros/src \
52+
&& cd workspace/ros \
53+
&& catkin_make"
54+
55+
RUN /bin/bash -c "echo 'source /root/workspace/ros/devel/setup.bash' >> /root/.bashrc"
56+
57+
RUN cd ~/workspace/ros \
58+
&& apt-get install -y ocl-icd-opencl-dev \
59+
&& wget https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda_8.0.61_375.26_linux-run -O cuda.run \
60+
&& chmod +x cuda.run \
61+
&& ./cuda.run -silent --toolkit \
62+
&& wget "https://www.dropbox.com/s/cx95583vbf1ifzm/cudnn-8.0-linux-x64-v5.1.tgz?dl%3D0&sa=D&ust=1507541105896000&usg=AFQjCNEU511fT00n547PxPt_P6cfSLPVWw" \
63+
&& tar -zxvf cudnn* \
64+
&& cp cuda/include/* /usr/local/cuda/include \
65+
&& cp cuda/lib64/* /usr/local/cuda/lib64/ \
66+
&& echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64' >> ~/.bashrc \
67+
&& echo 'export PATH=$PATH:/usr/local/cuda/bin' >> ~/.bashrc
68+
69+
RUN cd \
70+
&& cd workspace \
71+
&& git clone https://github.com/openptrack/libfreenect2 \
72+
&& cd libfreenect2 \
73+
&& git checkout 1604 \
74+
&& cd depends/ \
75+
&& apt-get install -y git cmake cmake-curses-gui libxmu-dev libxi-dev libgl1-mesa-dev dos2unix xorg-dev libglu1-mesa-dev libtool automake libudev-dev libgtk2.0-dev pkg-config libjpeg-turbo8-dev libturbojpeg libglewmx-dev \
76+
&& ./install_ubuntu.sh \
77+
&& ln -f -s /usr/lib/x86_64-linux-gnu/libturbojpeg.so.0.1.0 /usr/lib/x86_64-linux-gnu/libturbojpeg.so \
78+
&& cd ../examples/protonect/ \
79+
&& mkdir build \
80+
&& cd build \
81+
&& /bin/bash -c "source /opt/ros/kinetic/setup.bash \
82+
&& cmake .. \
83+
&& make \
84+
&& make install" \
85+
&& echo '# ATTR{product}=="Kinect2" SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="02c4", MODE="0666" SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="02d8", MODE="0666" SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="02d9", MODE="0666"' > ~/90-kinect2.rules \
86+
&& mv ~/90-kinect2.rules /etc/udev/rules.d/90-kinect2.rules
87+
88+
RUN cd ~/workspace/ros/src \
89+
&& git clone https://github.com/openptrack/iai_kinect2 \
90+
&& cd iai_kinect2 \
91+
&& git checkout 1604
92+
93+
RUN apt-get install cmake libgoogle-glog-dev libatlas-base-dev libeigen3-dev libsuitesparse-dev -y --force-yes \
94+
&& mkdir /tmp/ceres_install \
95+
&& cd /tmp/ceres_install \
96+
&& git clone https://ceres-solver.googlesource.com/ceres-solver \
97+
&& cd ceres-solver \
98+
&& git fetch --tags \
99+
&& git checkout tags/1.9.0 \
100+
&& cd .. \
101+
&& mkdir ceres-bin \
102+
&& cd ceres-bin \
103+
&& cmake ../ceres-solver \
104+
&& make -j8 \
105+
&& make test \
106+
&& make install \
107+
&& rm -R /tmp/ceres_install \
108+
&& cd ~/workspace/ros/src \
109+
&& git clone https://github.com/iaslab-unipd/calibration_toolkit \
110+
&& cd calibration_toolkit \
111+
&& git fetch origin --tags \
112+
&& git checkout tags/v0.2
113+
114+
RUN cd \
115+
&& cd workspace \
116+
&& apt-get update \
117+
&& git clone https://github.com/marketto89/opencv \
118+
&& cd opencv \
119+
&& git checkout 3.1.0-with-cuda8 \
120+
&& mkdir release \
121+
&& cd release \
122+
&& cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local/opencv3 -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON -D ENABLE_FAST_MATH=1 -D CUDA_FAST_MATH=1 -D WITH_CUBLAS=1 -D WITH_IPP=ON -D CMAKE_LIBRARY_PATH=/usr/local/cuda/lib64/stubs .. \
123+
&& make -j8 -l8 \
124+
&& make install \
125+
&& printf '#OpenCV\nPKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/opencv3/lib/pkgconfig\nexport PKG_CONFIG_PATH\n' >> /root/.bashrc \
126+
&& printf 'PATH=$PATH:/usr/local/opencv3/bin\nexport PATH\n' >> /root/.bashrc \
127+
&& printf 'LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/opencv3/lib\nexport LD_LIBRARY_PATH\n' >> /root/.bashrc \
128+
&& /bin/bash -c "source /root/.bashrc" \
129+
&& ln -s /usr/local/opencv3/share/OpenCV/3rdparty/lib/libippicv.a /usr/local/lib/libippicv.a
130+
131+
RUN /bin/bash -c "source /root/.bashrc \
132+
&& cd ~/workspace/ros/src \
133+
&& git clone https://bitbucket.org/mcarraro/rtpose_wrapper \
134+
&& cd rtpose_wrapper \
135+
&& git checkout integration-1604 \
136+
&& apt-get --assume-yes install libprotobuf-dev libleveldb-dev libsnappy-dev libhdf5-serial-dev protobuf-compiler libboost-all-dev libgflags-dev libgoogle-glog-dev liblmdb-dev \
137+
&& make all -j8"
138+
139+
RUN /bin/bash -c "git clone https://github.com/torch/distro.git ~/torch --recursive \
140+
&& cd ~/torch \
141+
&& bash install-deps \
142+
&& ./install.sh -b \
143+
&& source ~/.bashrc \
144+
&& cd install/bin \
145+
&& ./luarocks install dpnn \
146+
&& ./luarocks install csvigo"
147+
148+
RUN /bin/bash -c "cd /tmp \
149+
&& git clone https://github.com/cmusatyalab/openface.git \
150+
&& cd openface \
151+
&& sudo python setup.py install"
152+
153+
RUN /bin/bash -c "cd /tmp \
154+
&& rm -rf dlib \
155+
&& git clone https://github.com/davisking/dlib.git \
156+
&& cd dlib \
157+
&& git checkout v19.4 \
158+
&& mkdir python_examples/build \
159+
&& cd python_examples/build \
160+
&& cmake ../../tools/python -DUSE_AVX_INSTRUCTIONS=ON \
161+
&& cmake --build . --config Release \
162+
&& sudo cp dlib.so /usr/local/lib/python2.7/dist-packages"
163+
164+
RUN apt-get update \
165+
&& apt-get install -y python-qt4 python-pip \
166+
&& pip install requests
167+
168+
RUN apt-get install ntp -y \
169+
&& rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)