迁移pi上的master分支
This commit is contained in:
34
missions/s3_alpha/launch.sh
Executable file
34
missions/s3_alpha/launch.sh
Executable file
@@ -0,0 +1,34 @@
|
||||
#!/bin/bash -e
|
||||
COMMUNITY="alpha"
|
||||
|
||||
#-------------------------------------------------------
|
||||
# Part 1: Check for and handle command-line arguments
|
||||
#-------------------------------------------------------
|
||||
TIME_WARP=10
|
||||
for ARGI; do
|
||||
if [ "${ARGI}" = "--help" -o "${ARGI}" = "-h" ] ; then
|
||||
printf "%s [SWITCHES] [time_warp] \n" $0
|
||||
printf " --help, -h \n"
|
||||
exit 0;
|
||||
elif [ "${ARGI//[^0-9]/}" = "$ARGI" -a "$TIME_WARP" = 1 ]; then
|
||||
TIME_WARP=$ARGI
|
||||
else
|
||||
printf "Bad Argument: %s \n" $ARGI
|
||||
exit 0
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
#-------------------------------------------------------
|
||||
# Part 2: Launch the processes
|
||||
#-------------------------------------------------------
|
||||
printf "Launching the %s MOOS Community (WARP=%s) \n" $COMMUNITY $TIME_WARP
|
||||
pAntler $COMMUNITY.moos --MOOSTimeWarp=$TIME_WARP >& /dev/null &
|
||||
|
||||
uMAC -t $COMMUNITY.moos
|
||||
|
||||
printf "Killing all processes ... \n"
|
||||
kill %1
|
||||
mykill
|
||||
printf "Done killing processes. \n"
|
||||
|
||||
Reference in New Issue
Block a user