From d7cf394f853f4354cea0c0b6d56c565f959a4a78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20B=C3=BCrki?= Date: Fri, 3 Jul 2020 10:38:35 +0200 Subject: [PATCH] Add install script and skeleton.tracker script --- scripts/setup.sh | 35 +++++++++++++++++++++++++++++++++++ scripts/skeleton-tracker.sh | 5 +++++ 2 files changed, 40 insertions(+) create mode 100644 scripts/setup.sh create mode 100644 scripts/skeleton-tracker.sh diff --git a/scripts/setup.sh b/scripts/setup.sh new file mode 100644 index 0000000..57abf0e --- /dev/null +++ b/scripts/setup.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +# Note : this script assumes the OS to be Lubuntu 18.04.4 LTS (it should also work on Ubuntu 18.04.4 LTS) + +# install dependencies +apt -y install curl libglfw3{,-dev} libglew-dev libopencv-{core,imgproc,objdetect}-dev libfreeimage-dev libboost-filesystem-dev libpugixml-dev libopenni{,2}-dev +# remove automatically installed package -y +apt -y purge openni-utils -y + +# install RealSense SDK 2.35 +apt-key adv --keyserver keys.gnupg.net --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE || sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE +add-apt-repository "deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo bionic main" -u +sudo apt-get -y install librealsense2-dev + +# prepare to install Nuitrack +wget https://launchpad.net/~ubuntu-security/+archive/ubuntu/ppa/+build/15108504/+files/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb -O libpng.deb +sudo dpkg -i libpng.deb +rm libpng.deb + +# fix logname error on Lubuntu 18.04 +mv /usr/bin/logname{,bckp} +cat << EOF > /usr/bin/logname +#!/bin/bash +echo \$USER +EOF +chmod a+x /usr/bin/logname + +# install Nuitrack +wget http://download.3divi.com/Nuitrack/platforms/nuitrack-ubuntu-amd64.deb -O nuitrack.deb +dpkg -i nuitrack.deb +rm nuitrack.deb + +# restore actual logname program +mv /usr/bin/logname{bckp,} + diff --git a/scripts/skeleton-tracker.sh b/scripts/skeleton-tracker.sh new file mode 100644 index 0000000..18c4aac --- /dev/null +++ b/scripts/skeleton-tracker.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +export LD_LIBRARY_PATH="/usr/local/lib/nuitrack" ; + +../the-hole-skeleton-tracker -- GitLab