#!/bin/sh . ./path_config.sh # use this in almost all cases export ARTOOLKIT_CONFIG="v4l2src device=/dev/video0 use-fixed-fps=false ! ffmpegcolorspace ! capsfilter caps=video/x-raw-rgb,bpp=24,width=960,height=720 ! identity name=artoolkit ! fakesink" # try this to flip the image only if not able to do so on the projector/output # device! #export ARTOOLKIT_CONFIG="v4l2src device=/dev/video1 use-fixed-fps=false ! ffmpegcolorspace ! videoflip method=horizontal-flip ! identity name=artoolkit ! fakesink" #export DEBUG="gddb" export LD_LIBRARY_PATH=.:${ARTOOLKITPLUS_PATH}/lib:${LD_LIBRARY_PATH} export TRACKER=osgart_artoolkitplus_tracker if [ "$DEBUG" = "gdbb" ] ; then # gdb in batch mode gdb --eval-command=run --eval-command=bt -batch ./levelHead 1 elif [ "$DEBUG" = "gdb" ] ; then # normal gdb gdb --args ./levelHead 0 0 640 480 0 elif [ "$DEBUG" = "ltrace" ] ; then ltrace -Cf -o ltrace.out ./levelHead 0 0 640 480 0 else # arguments are in the order of: mirror-mode (for text), fullscreen toggle, w, h, graphic timer if ./levelHead 0 1 640 480 0 then echo "successfully exited." exit else echo "************ stand back. attempting restart.. **************" ./levelHead 0 1 640 480 0 fi fi