📄 rcsoccersim3d.in
字号:
#! /bin/shprint_help(){ cat << EOHusage: $0 [-h[elp] | -light | -agentdb DB | -logdir DIR] -h[elp] Print this help and exit -logdir DIR Write logfiles to DIR. If this option is not given, the default from commserver.conf will be used -agentdb DB Use DB as agentdb. If this option is not given, the default agentdb.xml is used. -light Force the use of rcssmonitor3D-lite, even if rcssmonitor3D-kerosin is available. This setting is now the default as rcssmonitor3D-kerosin is no longer supported. EOH}kill_server(){ kill -s INT $PID exit 0}#---------------------------------#set default valuesDEFAULTMONITOR="kerosin"LOGFILEDIR=""prefix=@prefix@exec_prefix=@exec_prefix@datadir=@datadir@pkgdatadir=${datadir}/@PACKAGE@SIMULATOR="${exec_prefix}/bin/rcssserver3D"AGENTDB=""SPADESPARAM="--ipc_force_remove"# process optionswhile test -n "$1"do case $1 in -h | -help) help="yes" ;; -light) DEFAULTMONITOR="lite" ;; -agentdb) if test -f "$2"; then AGENTDB="$2" else echo "File $2 not found. ignoring" fi shift ;; -logdir) LOGFILEDIR="$2" shift ;; *) echo "Passing unknown option $1 to SPADES" SPADESPARAM="$SPADESPARAM $1" esac shiftdone# print help message and exitif test "x${help}" = "xyes"; then print_help exit 0fi# set logfile dir if given on commandlineif test -n "$LOGFILEDIR"; then SPADESPARAM="$SPADESPARAM --logfile_dir $LOGFILEDIR"fiif test -x ../agenttest/agenttest; then SIMULATOR="./rcssserver3D" SPADESPARAM="$SPADESPARAM --agent_db_fn ${AGENTDB:-agentdb.xml}"# if test -x ../rcssmonitor3d/kerosin/rcssmonitor3D-kerosin; then# MONITOR="../rcssmonitor3d/${DEFAULTMONITOR}/rcssmonitor3D-${DEFAULTMONITOR}" # else MONITOR="../rcssmonitor3d/lite/rcssmonitor3D-lite" # fielse SPADESPARAM="$SPADESPARAM --agent_db_fn ${AGENTDB:-${pkgdatadir}/agentdb.xml}"# if test -x "${exec_prefix}/bin/rcssmonitor3D-kerosin"; then# MONITOR="${exec_prefix}/bin/rcssmonitor3D-${DEFAULTMONITOR}"# else MONITOR="${exec_prefix}/bin/rcssmonitor3D-lite"# fifi# agent_db_fn echo "Starting Simulator with these Parameters: $SPADESPARAM"echo${SIMULATOR} -- ${SPADESPARAM}&PID=$!sleep 1${MONITOR}kill_server
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -