Reply To: Great and easy startup script

Home Forums AR Sandbox Forum Great and easy startup script Reply To: Great and easy startup script

#103316
GrantWells
Participant

I’ve just banged into the same problem and taken a stab at correcting the paths for the sandbox 2.3 / kinect 2.8 / vrui 4.2 combination and new locations.

I’ve not run the complete physical setup yet so not certain its 100% correct but seems to be working – can someone with actual skill check and validate please.

Replace the contents of startAugmentedSandbox.sh in ~/UC-Davis-AR-Sandbox-Configuration-Menu folder with the following:


#!/bin/sh
# 
# Author: Malamaker (J.Malavolti) Created: 2016-03-23 Last Updated: 2016-03-24
# fixed paths GW 2017-05-24 to suit sandbox 2.3 / kinect 2.8 / vrui 4.2

echo "Welcome to the Augmented Reality Sandbox Configuration and Start Menu"

while true; do
	echo "Make a selection from the following List"
	echo "  1) Align your kinect sensor"
	echo "  2) Align your projector"
	echo "  3) Calibrate sensor and projector"
	echo "  4) Start AR Sandbox"
	echo "  5) Exit"
	read -p "Selection: " userSelection

	case "$userSelection" in
		1) 	echo "Starting Kinect Sensor Alignment tool"
			cd /usr/local
			./bin/RawKinectViewer -compress 0
			;;
			
		2)	echo "Starting Projector Alignment tool"
			cd /usr/local
			./bin/XBackground
			;;
			
		3)	echo "Starting calibration tool"
			read -p "Enter projector witdth: " calWidth
			read -p "Enter projector height: " calHeight
			cd ~/src/SARndbox-2.3
			./bin/CalibrateProjector -s $calWidth $calHeight
			;;

		4)	echo "Starting AR Sandbox"
			cd ~/src/SARndbox-2.3
			./bin/SARndbox -uhm -fpv
			;;

		5)	echo "Exiting Augmented Reality Sandbox Menu"
			exit
			;;
	esac
	
	sleep 2
	echo "\n\n"
done

Comments are closed.