-
Notifications
You must be signed in to change notification settings - Fork 2
/
install.sh
executable file
·56 lines (49 loc) · 1.41 KB
/
install.sh
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
48
49
50
51
52
53
54
55
56
#!/usr/bin/env bash
set -e
source /etc/lsb-release
if [ "$DISTRIB_RELEASE" = "20.04" ]; then
ROS_DIST="noetic"
elif [ "$DISTRIB_RELEASE" = "22.04" ]; then
ROS_DIST="humble"
else
echo "unsupported Ubuntu distribution"
exit 1
fi
source /opt/ros/${ROS_DIST}/setup.bash
# determine repo from environment variables inside CI or use defaults
MMF_REPO_URL="${GITHUB_SERVER_URL:-https://github.com}/${GITHUB_REPOSITORY:-christian-rauch/MultiMotionFusion}"
MMF_BRANCH="${GITHUB_HEAD_REF:-master}"
echo "setup workspace"
mkdir -p ~/mmf_ws/
cd ~/mmf_ws/
vcs import << EOF
repositories:
src/MultiMotionFusion:
type: git
url: ${MMF_REPO_URL}.git
version: ${MMF_BRANCH}
src/Pangolin:
type: git
url: https://github.com/stevenlovegrove/Pangolin.git
version: v0.8
src/densecrf:
type: git
url: https://github.com/christian-rauch/densecrf.git
version: master
src/gSLICr:
type: git
url: https://github.com/christian-rauch/gSLICr.git
version: colcon
src/super_point_inference:
type: git
url: https://github.com/christian-rauch/super_point_inference.git
version: master
src/torch_cpp:
type: git
url: https://github.com/christian-rauch/torch_cpp.git
version: master
EOF
rosdep install --from-paths src --ignore-src -y
echo "build workspace"
cd ~/mmf_ws/
colcon build --cmake-args -D CMAKE_BUILD_TYPE=Release -D CMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc