forked from jsk-ros-pkg/jsk_recognition
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis_before_script_pcl1.8.bash
executable file
·47 lines (37 loc) · 1.17 KB
/
.travis_before_script_pcl1.8.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/env bash
######################################################
# Install PCL 1.8
######################################################
if [ ! -e /usr/local/include/pcl-1.8/pcl/pcl_base.h ]; then
cd /tmp
version="1.8.0rc2"
url="https://github.com/PointCloudLibrary/pcl/archive/pcl-${version}.tar.gz"
fname=pcl-${version}.tar.gz
wget $url -O $fname
tar zxf $fname
cd pcl-pcl-${version}
mkdir build
cd build
# pcl::CropBox does not work properly in kinetic
# with PCL_ENABLE_SSE:BOOL=TRUE flag
# https://github.com/PointCloudLibrary/pcl/pull/1917
if [ $(lsb_release -c -s) = "xenial" ]; then
cmake -DCMAKE_BUILD_TYPE=Release -DPCL_ENABLE_SSE:BOOL=FALSE ..
else
cmake -DCMAKE_BUILD_TYPE=Release ..
fi
make -j2
sudo make -j2 install
fi
######################################################
# Setup dependencies to rebuild from source
######################################################
sudo -H pip install -q rosinstall_generator
rosinstall_generator --tar --rosdistro $ROS_DISTRO \
pcl_conversions \
pcl_ros \
octomap_server \
>> /tmp/$$.rosinstall
cd ~/ros/ws_$REPOSITORY_NAME/src
wstool merge /tmp/$$.rosinstall
wstool up -j4