[TeamTalk 46]: [583] moast: New import of modified moast code
tk@edam.speech.cs.cmu.edu
tk at edam.speech.cs.cmu.edu
Wed May 2 15:25:46 EDT 2007
An HTML attachment was scrubbed...
URL: http://mailman.srv.cs.cmu.edu/pipermail/teamtalk-developers/attachments/20070502/ff516d1b/attachment-0001.html
-------------- next part --------------
Added: moast/AUTHORS
===================================================================
Added: moast/CVS/Entries
===================================================================
--- moast/CVS/Entries (rev 0)
+++ moast/CVS/Entries 2007-05-02 19:25:45 UTC (rev 583)
@@ -0,0 +1,11 @@
+/AUTHORS/1.1.1.1/Wed Oct 12 20:50:32 2005//
+/ChangeLog/1.1.1.1/Wed Oct 12 20:50:32 2005//
+/Makefile.am/1.4/Fri Sep 22 12:54:06 2006//
+/Makefile.local/1.3/Wed Jun 21 19:38:13 2006//
+/NEWS/1.1.1.1/Wed Oct 12 20:50:32 2005//
+/README/1.2/Wed Jun 21 19:38:13 2006//
+/acinclude.m4/1.8/Mon Feb 26 16:46:55 2007//
+/bootstrap/1.3/Fri Sep 1 18:12:41 2006//
+/build/1.1/Tue Jan 10 16:09:13 2006//
+/configure.ac/1.18/Tue Feb 27 14:51:53 2007//
+D
Added: moast/CVS/Entries.Log
===================================================================
--- moast/CVS/Entries.Log (rev 0)
+++ moast/CVS/Entries.Log 2007-05-02 19:25:45 UTC (rev 583)
@@ -0,0 +1,7 @@
+A D/bin////
+A D/data////
+A D/doc////
+A D/etc////
+A D/include////
+A D/lib////
+A D/src////
Added: moast/CVS/Repository
===================================================================
--- moast/CVS/Repository (rev 0)
+++ moast/CVS/Repository 2007-05-02 19:25:45 UTC (rev 583)
@@ -0,0 +1 @@
+devel
Added: moast/CVS/Root
===================================================================
--- moast/CVS/Root (rev 0)
+++ moast/CVS/Root 2007-05-02 19:25:45 UTC (rev 583)
@@ -0,0 +1 @@
+:pserver:anonymous at moast.cvs.sourceforge.net:/cvsroot/moast
Added: moast/ChangeLog
===================================================================
Added: moast/Makefile.am
===================================================================
--- moast/Makefile.am (rev 0)
+++ moast/Makefile.am 2007-05-02 19:25:45 UTC (rev 583)
@@ -0,0 +1,2 @@
+SUBDIRS = include src lib bin etc
+EXTRA_DIST = include doc
Added: moast/Makefile.local
===================================================================
--- moast/Makefile.local (rev 0)
+++ moast/Makefile.local 2007-05-02 19:25:45 UTC (rev 583)
@@ -0,0 +1,30 @@
+# This gets us our local stuff, namely building the NML source, then
+# the "all" target last.
+# Leave out "doc" as a default.
+local : ini nml java swig all
+
+# this builds the INI file (for version, at least)
+ini :
+ (cd etc && $(MAKE) -f Makefile.local $@)
+
+# this builds the NML source
+nml :
+ (cd src/nml && $(MAKE) -f Makefile.local $@)
+ (cd etc && $(MAKE) -f Makefile.local $@)
+
+# this builds Java support
+java :
+ (cd src/java && $(MAKE) -f Makefile.local $@)
+
+# this builds the SWIG files
+swig :
+ (cd src/tools && $(MAKE) -f Makefile.local $@)
+
+# this builds the Doxygen documentation
+doc :
+ (cd doc && $(MAKE) -f Makefile.local $@)
+
+# this gets us the usual stuff
+include Makefile
+
+.PHONY : local ini nml swig doc
Added: moast/NEWS
===================================================================
Added: moast/README
===================================================================
--- moast/README (rev 0)
+++ moast/README 2007-05-02 19:25:45 UTC (rev 583)
@@ -0,0 +1,11 @@
+
+cd /usr/local/moast/devel/include
+
+for file in `all the NML headers` ; do
+ java -jar /usr/local/rcslib/bin/CodeGenCmdLine.jar generate_for_java=true amMisJA.hh
+done
+
+javac -classpath /usr/local/rcslib/bin/rcs.jar *.java
+
+jar -cvf moast.jar *.class
+
Added: moast/acinclude.m4
===================================================================
--- moast/acinclude.m4 (rev 0)
+++ moast/acinclude.m4 2007-05-02 19:25:45 UTC (rev 583)
@@ -0,0 +1,623 @@
+AC_DEFUN([AC_HAVE_RCSLIB],
+ [AC_MSG_CHECKING([for RCS library])]
+ RCSLIB_DIR=`echo $RCSLIB_DIR`
+ if test x$RCSLIB_DIR = x ; then
+ for dir in /usr/local/rcslib /usr/rcslib /local/rcslib ; do
+ if test -d $dir -o -L $dir ; then RCSLIB_DIR=$dir ; break ; fi
+ done
+ fi
+ if test x$RCSLIB_DIR = x ; then
+ [AC_MSG_ERROR([not found, set RCSLIB_DIR environment variable and try again])]
+ else
+ [AC_MSG_RESULT([$RCSLIB_DIR])]
+dnl put HAVE_RCSLIB in config.h
+ [AC_DEFINE(HAVE_RCSLIB,
+ 1, [Define non-zero if you have the RCS Library.])]
+dnl add needed libraries
+ [AC_CHECK_LIB(socket, main)]
+ [AC_CHECK_LIB(wsock32, main)]
+ [AC_CHECK_LIB(rt, main)]
+ [AC_CHECK_LIB(posix4, main)]
+ [AC_CHECK_LIB(nsl, main)]
+dnl put RCSLIB_DIR in Makefile
+ [AC_SUBST(RCSLIB_DIR)]
+dnl put RCSLIB_DIR into variable file for use by shell scripts
+ echo RCSLIB_DIR=$RCSLIB_DIR > rcslib_dir
+ fi
+ )
+
+AC_DEFUN([AC_HAVE_MYSQL],
+# look for <mysql/mysql.h>, but define HAVE_MYSQL_H instead of
+# HAVE_MYSQL_MYSQL_H, since code will include <mysql.h> and CFLAGS will
+# specify something like -I/usr/include/mysql
+ [AC_CHECK_HEADER([mysql/mysql.h], [AC_DEFINE(HAVE_MYSQL_H, 1, Define to 1 if you have the <mysql.h> header file.)] mysql=true, mysql=false)]
+ [AM_CONDITIONAL(HAVE_MYSQL_H, test x$mysql = xtrue)]
+# check for mysql_config, which if it exists will return CFLAGS and LIBS
+ [AC_CHECK_PROGS(MYSQL_CONFIG, mysql_config)]
+ [AM_CONDITIONAL(HAVE_MYSQL, test x$MYSQL_CONFIG != x)]
+ if test x$MYSQL_CONFIG = x ; then
+ MYSQL_CFLAGS=""
+ MYSQL_LIBS=""
+ else
+ MYSQL_CFLAGS=`mysql_config --cflags`
+ MYSQL_LIBS=`mysql_config --libs`
+ fi
+ [AC_SUBST(MYSQL_CFLAGS)]
+ [AC_SUBST(MYSQL_LIBS)]
+ )
+
+AC_DEFUN([AC_HAVE_GTK],
+ [AC_CHECK_PROGS(PKG_CONFIG, pkg-config)]
+ if test x$PKG_CONFIG != x ; then
+ [AC_MSG_CHECKING([for gtk+-2.0])]
+ GTK_VERSION=`pkg-config --modversion gtk+-2.0`
+ if test x$GTK_VERSION != x ; then
+ GTK_CFLAGS=`pkg-config --cflags gtk+-2.0`
+ GTK_LIBS=`pkg-config --libs gtk+-2.0`
+ [AC_MSG_RESULT([$GTK_VERSION])]
+ else
+ [AC_MSG_RESULT([no])]
+ fi
+ else
+ GTK_VERSION=""
+ GTK_CFLAGS=""
+ GTK_LIBS=""
+ fi
+ [AC_SUBST(GTK_VERSION)]
+ [AC_SUBST(GTK_CFLAGS)]
+ [AC_SUBST(GTK_LIBS)]
+ [AM_CONDITIONAL(HAVE_GTK, test x$GTK_VERSION != x)]
+ )
+
+AC_DEFUN([AC_CHECK_MATH],
+ [AC_CHECK_DECL(floorf,,
+ AH_TEMPLATE([floorf], [Math function 'floor' for floats])
+ AC_DEFINE([floorf(x)], [((float) floor((double) (x)))]),
+ [#include <math.h>])]
+ [AC_CHECK_DECL(sqrtf,,
+ AH_TEMPLATE([sqrtf], [Math function 'sqrt' for floats])
+ AC_DEFINE([sqrtf(x)], [((float) sqrt((double) (x)))]),
+ [#include <math.h>])]
+ )
+
+AC_DEFUN([ACX_TK_INCLUDE],
+ [AC_MSG_CHECKING([for Tk headers])]
+ [AC_ARG_WITH(,
+ [ --with-tkinclude=<path to Tk headers> Specify path to Tk headers],
+ dirs=$withval,dirs="/usr/include /usr/include/tcl8.4 /usr/include/tcl8.3")]
+ for dir in $dirs ; do
+ if test -f $dir/tk.h ; then tkinclude_dir=$dir ; break; fi
+ done
+ if test x$tkinclude_dir = x ; then
+ [AC_MSG_RESULT([not found in $dirs, try --with-tkinclude=<path to Tk headers>])]
+ else
+ TK_INCLUDE_DIR=$tkinclude_dir
+dnl put HAVE_TK_INCLUDE in config.h
+ [AC_DEFINE(HAVE_TK_INCLUDE,
+ 1, [Define non-zero if you have Tk headers.])]
+dnl put TK_INCLUDE_DIR in Makefile
+ [AC_SUBST(TK_INCLUDE_DIR)]
+ [AC_MSG_RESULT([$TK_INCLUDE_DIR])]
+ fi
+ [AM_CONDITIONAL(HAVE_TK_INCLUDE, test x$tkinclude_dir != x)]
+)
+
+AC_DEFUN([ACX_TCL_LIB],
+ [AC_MSG_CHECKING([for Tcl library])]
+ [AC_ARG_WITH(,
+ [ --with-tcllib=<path to Tcl library> Specify path to Tcl library],
+ dirs=$withval,dirs="/usr/lib")]
+ [AC_ARG_WITH(,
+ [ --with-tcllink=<link name of Tcl library> Specify link name of Tcl library],
+ names=$withval,names="tcl tcl8.4 tcl84 tcl8.3 tcl83")]
+ for dir in $dirs ; do
+ for name in $names ; do
+ if test -f $dir/lib"$name".a ; then tcllink="-L$dir -l$name"; break; fi
+ if test -f $dir/lib"$name".so ; then tcllink="-L$dir -l$name"; break; fi
+ done
+ done
+ if test x"$tcllink" = x ; then
+ [AC_MSG_RESULT([none of lib"$names".a,so found in $dirs, try --with-tcllib=<path to Tcl library, --with-tcllink=<link name of Tcl library>])]
+ else
+ TCL_LINK="$tcllink"
+dnl put TCL_LINK in Makefile
+ [AC_SUBST(TCL_LINK)]
+ [AC_MSG_RESULT([$TCL_LINK])]
+ fi
+ [AM_CONDITIONAL(HAVE_TCL_LIB, test x"$tcllink" != x)]
+)
+
+AC_DEFUN([ACX_TK_LIB],
+ [AC_MSG_CHECKING([for Tk library])]
+ [AC_ARG_WITH(,
+ [ --with-tklib=<path to Tk library> Specify path to Tk library],
+ dirs=$withval,dirs="/usr/lib")]
+ [AC_ARG_WITH(,
+ [ --with-tklink=<link name of Tk library> Specify link name of Tk library],
+ names=$withval,names="tk tk8.4 tk84 tk8.3 tk83")]
+ for dir in $dirs ; do
+ for name in $names ; do
+ if test -f $dir/lib"$name".a ; then tklink="-L$dir -l$name"; break; fi
+ if test -f $dir/lib"$name".so ; then tklink="-L$dir -l$name"; break; fi
+ done
+ done
+ if test x"$tklink" = x ; then
+ [AC_MSG_RESULT([none of lib"$names".a,so found in $dirs, try --with-tklib=<path to Tk library, --with-tklink=<link name of Tk library>])]
+ else
+ TK_LINK="$tklink"
+dnl put TK_LINK in Makefile
+ [AC_SUBST(TK_LINK)]
+ [AC_MSG_RESULT([$TK_LINK])]
+ fi
+ [AM_CONDITIONAL(HAVE_TK_LIB, test x"$tklink" != x)]
+)
+
+AC_DEFUN([AC_HAVE_TCL_DEVEL],
+ [AC_CHECK_HEADERS([tcl.h], tcl=true, tcl=false)]
+ [AM_CONDITIONAL(HAVE_TCL_DEVEL, test x$tcl = xtrue)]
+ )
+
+AC_DEFUN([AC_HAVE_PERL_DEVEL],
+ [AC_MSG_CHECKING([for perl devel])]
+ dir=""
+ if test x$LOCATE != x ; then
+ if test x$GREP != x ; then
+ for file in `locate perl.h | grep CORE` ; do
+ dir=`dirname $file`
+ done
+ fi
+ fi
+ if test x$dir = x ; then
+ PERL_FLAGS=""
+ [AC_MSG_RESULT([no])]
+ else
+ PERL_FLAGS="-D_GNU_SOURCE -I$dir"
+ [AC_MSG_RESULT([$dir])]
+ fi
+ [AC_SUBST(PERL_FLAGS)]
+ [AM_CONDITIONAL(HAVE_PERL_DEVEL, test "x$PERL_FLAGS" != x)]
+ )
+
+AC_DEFUN([AC_HAVE_PYTHON_DEVEL],
+ [AC_MSG_CHECKING([for python devel])]
+ dir=""
+ if test x$LOCATE != x ; then
+ if test x$GREP != x ; then
+ for file in `locate Python.h | grep python` ; do
+ dir=`dirname $file`
+ done
+ fi
+ fi
+ if test x$dir = x ; then
+ PYTHON_FLAGS=""
+ [AC_MSG_RESULT([no])]
+ else
+ PYTHON_FLAGS="-I$dir"
+ [AC_MSG_RESULT([$dir])]
+ fi
+ [AC_SUBST(PYTHON_FLAGS)]
+ [AM_CONDITIONAL(HAVE_PYTHON_DEVEL, test "x$PYTHON_FLAGS" != x)]
+ )
+
+dnl @synopsis ACX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
+dnl
+dnl This macro figures out how to build C programs using POSIX threads.
+dnl It sets the PTHREAD_LIBS output variable to the threads library and
+dnl linker flags, and the PTHREAD_CFLAGS output variable to any special
+dnl C compiler flags that are needed. (The user can also force certain
+dnl compiler flags/libs to be tested by setting these environment
+dnl variables.)
+dnl
+dnl Also sets PTHREAD_CC to any special C compiler that is needed for
+dnl multi-threaded programs (defaults to the value of CC otherwise).
+dnl (This is necessary on AIX to use the special cc_r compiler alias.)
+dnl
+dnl NOTE: You are assumed to not only compile your program with these
+dnl flags, but also link it with them as well. e.g. you should link
+dnl with $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS
+dnl $LIBS
+dnl
+dnl If you are only building threads programs, you may wish to use
+dnl these variables in your default LIBS, CFLAGS, and CC:
+dnl
+dnl LIBS="$PTHREAD_LIBS $LIBS"
+dnl CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
+dnl CC="$PTHREAD_CC"
+dnl
+dnl In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute
+dnl constant has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to
+dnl that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
+dnl
+dnl ACTION-IF-FOUND is a list of shell commands to run if a threads
+dnl library is found, and ACTION-IF-NOT-FOUND is a list of commands to
+dnl run it if it is not found. If ACTION-IF-FOUND is not specified, the
+dnl default action will define HAVE_PTHREAD.
+dnl
+dnl Please let the authors know if this macro fails on any platform, or
+dnl if you have any other suggestions or comments. This macro was based
+dnl on work by SGJ on autoconf scripts for FFTW (www.fftw.org) (with
+dnl help from M. Frigo), as well as ac_pthread and hb_pthread macros
+dnl posted by Alejandro Forero Cuervo to the autoconf macro repository.
+dnl We are also grateful for the helpful feedback of numerous users.
+dnl
+dnl @category InstalledPackages
+dnl @author Steven G. Johnson <stevenj at alum.mit.edu>
+dnl @version 2005-01-14
+dnl @license GPLWithACException
+
+AC_DEFUN([ACX_PTHREAD], [
+AC_REQUIRE([AC_CANONICAL_HOST])
+AC_LANG_SAVE
+AC_LANG_CPLUSPLUS
+acx_pthread_ok=no
+
+# We used to check for pthread.h first, but this fails if pthread.h
+# requires special compiler flags (e.g. on True64 or Sequent).
+# It gets checked for in the link test anyway.
+
+# First of all, check if the user has set any of the PTHREAD_LIBS,
+# etcetera environment variables, and if threads linking works using
+# them:
+if test x"$PTHREAD_LIBS$PTHREAD_CXXFLAGS" != x; then
+ save_CXXFLAGS="$CXXFLAGS"
+ CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
+ save_LIBS="$LIBS"
+ LIBS="$PTHREAD_LIBS $LIBS"
+ AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CXXFLAGS=$PTHREAD_CXXFLAGS])
+ AC_TRY_LINK_FUNC(pthread_join, acx_pthread_ok=yes)
+ AC_MSG_RESULT($acx_pthread_ok)
+ if test x"$acx_pthread_ok" = xno; then
+ PTHREAD_LIBS=""
+ PTHREAD_CXXFLAGS=""
+ fi
+ LIBS="$save_LIBS"
+ CXXFLAGS="$save_CXXFLAGS"
+fi
+
+# We must check for the threads library under a number of different
+# names; the ordering is very important because some systems
+# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
+# libraries is broken (non-POSIX).
+
+# Create a list of thread flags to try. Items starting with a "-" are
+# C compiler flags, and other items are library names, except for "none"
+# which indicates that we try without any flags at all, and "pthread-config"
+# which is a program returning the flags for the Pth emulation library.
+
+acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
+
+# The ordering *is* (sometimes) important. Some notes on the
+# individual items follow:
+
+# pthreads: AIX (must check this before -lpthread)
+# none: in case threads are in libc; should be tried before -Kthread and
+# other compiler flags to prevent continual compiler warnings
+# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
+# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
+# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
+# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
+# -pthreads: Solaris/gcc
+# -mthreads: Mingw32/gcc, Lynx/gcc
+# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
+# doesn't hurt to check since this sometimes defines pthreads too;
+# also defines -D_REENTRANT)
+# pthread: Linux, etcetera
+# --thread-safe: KAI C++
+# pthread-config: use pthread-config program (for GNU Pth library)
+
+case "${host_cpu}-${host_os}" in
+ *solaris*)
+
+ # On Solaris (at least, for some versions), libc contains stubbed
+ # (non-functional) versions of the pthreads routines, so link-based
+ # tests will erroneously succeed. (We need to link with -pthread or
+ # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
+ # a function called by this macro, so we could check for that, but
+ # who knows whether they'll stub that too in a future libc.) So,
+ # we'll just look for -pthreads and -lpthread first:
+
+ acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
+ ;;
+esac
+
+if test x"$acx_pthread_ok" = xno; then
+for flag in $acx_pthread_flags; do
+
+ case $flag in
+ none)
+ AC_MSG_CHECKING([whether pthreads work without any flags])
+ ;;
+
+ -*)
+ AC_MSG_CHECKING([whether pthreads work with $flag])
+ PTHREAD_CXXFLAGS="$flag"
+ ;;
+
+ pthread-config)
+ AC_CHECK_PROG(acx_pthread_config, pthread-config, yes, no)
+ if test x"$acx_pthread_config" = xno; then continue; fi
+ PTHREAD_CXXFLAGS="`pthread-config --cflags`"
+ PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
+ ;;
+
+ *)
+ AC_MSG_CHECKING([for the pthreads library -l$flag])
+ PTHREAD_LIBS="-l$flag"
+ ;;
+ esac
+
+ save_LIBS="$LIBS"
+ save_CXXFLAGS="$CXXFLAGS"
+ LIBS="$PTHREAD_LIBS $LIBS"
+ CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
+
+ # Check for various functions. We must include pthread.h,
+ # since some functions may be macros. (On the Sequent, we
+ # need a special flag -Kthread to make this header compile.)
+ # We check for pthread_join because it is in -lpthread on IRIX
+ # while pthread_create is in libc. We check for pthread_attr_init
+ # due to DEC craziness with -lpthreads. We check for
+ # pthread_cleanup_push because it is one of the few pthread
+ # functions on Solaris that doesn't have a non-functional libc stub.
+ # We try pthread_create on general principles.
+ AC_TRY_LINK([#include <pthread.h>],
+ [pthread_t th; pthread_join(th, 0);
+ pthread_attr_init(0); pthread_cleanup_push(0, 0);
+ pthread_create(0,0,0,0); pthread_cleanup_pop(0); ],
+ [acx_pthread_ok=yes])
+
+ LIBS="$save_LIBS"
+ CXXFLAGS="$save_CXXFLAGS"
+
+ AC_MSG_RESULT($acx_pthread_ok)
+ if test "x$acx_pthread_ok" = xyes; then
+ break;
+ fi
+
+ PTHREAD_LIBS=""
+ PTHREAD_CXXFLAGS=""
+done
+fi
+
+# Various other checks:
+if test "x$acx_pthread_ok" = xyes; then
+ save_LIBS="$LIBS"
+ LIBS="$PTHREAD_LIBS $LIBS"
+ save_CXXFLAGS="$CXXFLAGS"
+ CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
+
+ # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
+ AC_MSG_CHECKING([for joinable pthread attribute])
+ attr_name=unknown
+ for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
+ AC_TRY_LINK([#include <pthread.h>], [int attr=$attr;],
+ [attr_name=$attr; break])
+ done
+ AC_MSG_RESULT($attr_name)
+ if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
+ AC_DEFINE_UNQUOTED(PTHREAD_CREATE_JOINABLE, $attr_name,
+ [Define to necessary symbol if this constant
+ uses a non-standard name on your system.])
+ fi
+
+ AC_MSG_CHECKING([if more special flags are required for pthreads])
+ flag=no
+ case "${host_cpu}-${host_os}" in
+ *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
+ *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
+ esac
+ AC_MSG_RESULT(${flag})
+ if test "x$flag" != xno; then
+ PTHREAD_CXXFLAGS="$flag $PTHREAD_CXXFLAGS"
+ fi
+
+ LIBS="$save_LIBS"
+ CXXFLAGS="$save_CXXFLAGS"
+
+ # More AIX lossage: must compile with cc_r
+ AC_CHECK_PROG(PTHREAD_CXX, cc_r, cc_r, ${CXX})
+else
+ PTHREAD_CXX="$CXX"
+fi
+
+AC_SUBST(PTHREAD_LIBS)
+AC_SUBST(PTHREAD_CXXFLAGS)
+AC_SUBST(PTHREAD_CXX)
+
+# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
+if test x"$acx_pthread_ok" = xyes; then
+ ifelse([$1],,AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]),[$1])
+ :
+else
+ acx_pthread_ok=no
+ $2
+fi
+AC_LANG_RESTORE
+])dnl ACX_PTHREAD
+
+# Configure paths for SDL
+# Sam Lantinga 9/21/99
+# stolen from Manish Singh
+# stolen back from Frank Belew
+# stolen from Manish Singh
+# Shamelessly stolen from Owen Taylor
+
+dnl AM_PATH_SDL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
+dnl Test for SDL, and define SDL_CFLAGS and SDL_LIBS
+dnl
+AC_DEFUN([AM_PATH_SDL],
+[dnl
+dnl Get the cflags and libraries from the sdl-config script
+dnl
+AC_ARG_WITH(sdl-prefix,[ --with-sdl-prefix=PFX Prefix where SDL is installed (optional)],
+ sdl_prefix="$withval", sdl_prefix="")
+AC_ARG_WITH(sdl-exec-prefix,[ --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)],
+ sdl_exec_prefix="$withval", sdl_exec_prefix="")
+AC_ARG_ENABLE(sdltest, [ --disable-sdltest Do not try to compile and run a test SDL program],
+ , enable_sdltest=yes)
+
+ if test x$sdl_exec_prefix != x ; then
+ sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
+ if test x${SDL_CONFIG+set} != xset ; then
+ SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
+ fi
+ fi
+ if test x$sdl_prefix != x ; then
+ sdl_args="$sdl_args --prefix=$sdl_prefix"
+ if test x${SDL_CONFIG+set} != xset ; then
+ SDL_CONFIG=$sdl_prefix/bin/sdl-config
+ fi
+ fi
+
+ if test "x$prefix" != xNONE; then
+ PATH="$prefix/bin:$prefix/usr/bin:$PATH"
+ fi
+ AC_PATH_PROG(SDL_CONFIG, sdl-config, no, [$PATH])
+ min_sdl_version=ifelse([$1], ,0.11.0,$1)
+ AC_MSG_CHECKING(for SDL - version >= $min_sdl_version)
+ no_sdl=""
+ if test "$SDL_CONFIG" = "no" ; then
+ no_sdl=yes
+ else
+ SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
+ SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
+
+ sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
+ sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
+ sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
+ if test "x$enable_sdltest" = "xyes" ; then
+ ac_save_CFLAGS="$CFLAGS"
+ ac_save_CXXFLAGS="$CXXFLAGS"
+ ac_save_LIBS="$LIBS"
+ CFLAGS="$CFLAGS $SDL_CFLAGS"
+ CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
+ LIBS="$LIBS $SDL_LIBS"
+dnl
+dnl Now check if the installed SDL is sufficiently new. (Also sanity
+dnl checks the results of sdl-config to some extent
+dnl
+ rm -f conf.sdltest
+ AC_TRY_RUN([
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include "SDL.h"
+
+char*
+my_strdup (char *str)
+{
+ char *new_str;
+
+ if (str)
+ {
+ new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
+ strcpy (new_str, str);
+ }
+ else
+ new_str = NULL;
+
+ return new_str;
+}
+
+int main (int argc, char *argv[])
+{
+ int major, minor, micro;
+ char *tmp_version;
+
+ /* This hangs on some systems (?)
+ system ("touch conf.sdltest");
+ */
+ { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
+
+ /* HP/UX 9 (%@#!) writes to sscanf strings */
+ tmp_version = my_strdup("$min_sdl_version");
+ if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
+ printf("%s, bad version string\n", "$min_sdl_version");
+ exit(1);
+ }
+
+ if (($sdl_major_version > major) ||
+ (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
+ (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
+ {
+ return 0;
+ }
+ else
+ {
+ printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
+ printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
+ printf("*** best to upgrade to the required version.\n");
+ printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
+ printf("*** to point to the correct copy of sdl-config, and remove the file\n");
+ printf("*** config.cache before re-running configure\n");
+ return 1;
+ }
+}
+
+],, no_sdl=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
+ CFLAGS="$ac_save_CFLAGS"
+ CXXFLAGS="$ac_save_CXXFLAGS"
+ LIBS="$ac_save_LIBS"
+ fi
+ fi
+ if test "x$no_sdl" = x ; then
+ AC_MSG_RESULT(yes)
+ ifelse([$2], , :, [$2])
+ else
+ AC_MSG_RESULT(no)
+ if test "$SDL_CONFIG" = "no" ; then
+ echo "*** The sdl-config script installed by SDL could not be found"
+ echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
+ echo "*** your path, or set the SDL_CONFIG environment variable to the"
+ echo "*** full path to sdl-config."
+ else
+ if test -f conf.sdltest ; then
+ :
+ else
+ echo "*** Could not run SDL test program, checking why..."
+ CFLAGS="$CFLAGS $SDL_CFLAGS"
+ CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
+ LIBS="$LIBS $SDL_LIBS"
+ AC_TRY_LINK([
+#include <stdio.h>
+#include "SDL.h"
+
+int main(int argc, char *argv[])
+{ return 0; }
+#undef main
+#define main K_and_R_C_main
+], [ return 0; ],
+ [ echo "*** The test program compiled, but did not run. This usually means"
+ echo "*** that the run-time linker is not finding SDL or finding the wrong"
+ echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
+ echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
+ echo "*** to the installed location Also, make sure you have run ldconfig if that"
+ echo "*** is required on your system"
+ echo "***"
+ echo "*** If you have an old version installed, it is best to remove it, although"
+ echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
+ [ echo "*** The test program failed to compile or link. See the file config.log for the"
+ echo "*** exact error that occured. This usually means SDL was incorrectly installed"
+ echo "*** or that you have moved SDL since it was installed. In the latter case, you"
+ echo "*** may want to edit the sdl-config script: $SDL_CONFIG" ])
+ CFLAGS="$ac_save_CFLAGS"
+ CXXFLAGS="$ac_save_CXXFLAGS"
+ LIBS="$ac_save_LIBS"
+ fi
+ fi
+ SDL_CFLAGS=""
+ SDL_LIBS=""
+ ifelse([$3], , :, [$3])
+ fi
+ AC_SUBST(SDL_CFLAGS)
+ AC_SUBST(SDL_LIBS)
+ rm -f conf.sdltest
+])
+
+AC_DEFUN([ACX_HAVE_SDL],
+ [AM_PATH_SDL([1.2.8], have_sdl=true)]
+ [AM_CONDITIONAL(HAVE_SDL, test x$have_sdl != x)]
+)
Added: moast/bin/CVS/Entries
===================================================================
--- moast/bin/CVS/Entries (rev 0)
+++ moast/bin/CVS/Entries 2007-05-02 19:25:45 UTC (rev 583)
@@ -0,0 +1,21 @@
+/Makefile.am/1.47/Mon Apr 30 17:04:16 2007//
+/Makefile.local/1.2/Wed Oct 19 20:21:55 2005//
+/arda.arc/1.1.1.1/Wed Oct 12 20:50:32 2005//
+/ipc-clear/1.2/Wed Dec 20 15:28:05 2006//
+/navPlot/1.2/Wed Nov 29 21:19:07 2006//
+/ppm.tcl/1.1.1.1/Wed Oct 12 20:50:32 2005//
+/primSpPlot/1.1/Wed Mar 15 21:54:05 2006//
+/run/1.23/Wed Apr 25 15:07:44 2007//
+/runDrone/1.1.1.1/Wed Oct 12 20:50:32 2005//
+/runJoy/1.5/Mon Apr 30 18:42:28 2007//
+/runSub/1.5/Wed Jan 31 18:36:10 2007//
+/runVehicle/1.10/Thu Dec 14 16:16:52 2006//
+/say/1.1.1.1/Wed Oct 12 20:50:32 2005//
+/spPlot/1.5/Wed Aug 2 21:42:31 2006//
+/splash/1.1.1.1/Wed Oct 12 20:50:32 2005//
+/subBot.dat/1.1/Tue Jan 9 18:46:20 2007//
+/subabs.dat/1.2/Thu Dec 14 19:47:27 2006//
+/subpt.dat/1.4/Wed Nov 29 21:19:07 2006//
+/symPlot/1.1/Wed Mar 15 21:54:05 2006//
+/wp.dat/1.4/Mon Feb 26 18:55:42 2007//
+D
Added: moast/bin/CVS/Repository
===================================================================
--- moast/bin/CVS/Repository (rev 0)
+++ moast/bin/CVS/Repository 2007-05-02 19:25:45 UTC (rev 583)
@@ -0,0 +1 @@
+devel/bin
Added: moast/bin/CVS/Root
===================================================================
--- moast/bin/CVS/Root (rev 0)
+++ moast/bin/CVS/Root 2007-05-02 19:25:45 UTC (rev 583)
@@ -0,0 +1 @@
+:pserver:anonymous at moast.cvs.sourceforge.net:/cvsroot/moast
Added: moast/bin/Makefile.am
===================================================================
--- moast/bin/Makefile.am (rev 0)
+++ moast/bin/Makefile.am 2007-05-02 19:25:45 UTC (rev 583)
@@ -0,0 +1,258 @@
+bin_PROGRAMS = moastNmlSvr simWare servoShell primSPMain primMisMain primMobMain primShell segmentTest exampleUtmConvert gpsToSerial amSPMain amMisMain amMobMain amShell vehSPMain vehMobPLMain vehShell sectShell sectMobPL exampleDijkTabs exampleDijkHeap exampleDijkHeapN exampleAStarHeapA exampleAStarHeapB exampleAStarHeapNA exampleAStarHeapNB exampleScrollMap spPlay moastErrorLog nmlPrint inifind exampleVisGraph vehDrone nmlConvert spqrConvert slamStub trafficShell
+
+
+INCLUDES = -I$(RCSLIB_DIR)/include
+
+moastNmlSvr_SOURCES = ../src/nml/moastNmlSvr.cc
+moastNmlSvr_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+servoShell_SOURCES = ../src/servo/servoShell.cc
+servoShell_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+slamStub_SOURCES = ../src/sim/simWare/slamStub.cc
+slamStub_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+# bin_PROGRAMS += simpleSim
+# simpleSim_SOURCES = ../src/sim/simpleSim/simpleSim.cc ../src/sim/simpleSim/simpleMobSim.cc ../src/sim/simpleSim/simpleMisSim.cc ../src/sim/simpleSim/simpleSPSim.cc ../src/sim/simpleSim/simpleSim.hh
+# simpleSim_CXX = $(PTHREAD_CXX)
+# simpleSim_CXXFLAGS = $(CXXFLAGS) $(PTHREAD_CXXFLAGS)
+# simpleSim_LIBS = $(PTHREAD_LIBS) $(LIBS)
+# simpleSim_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+simWare_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+simWare_CXX = $(PTHREAD_CXX)
+simWare_CXXFLAGS = $(CXXFLAGS) $(PTHREAD_CXXFLAGS)
+simWare_LIBS = $(PTHREAD_LIBS) $(LIBS)
+simWare_SOURCES = ../src/sim/simWare/simWare.cc ../src/sim/simWare/swBaseSkin.hh ../src/sim/simWare/swKBTypes.hh \
+ ../src/sim/simWare/swKBUtils.hh ../src/sim/simWare/swKBUtils.cc \
+ ../src/sim/simWare/simWareKB.hh ../src/sim/simWare/simWareKB.cc \
+ ../src/sim/simWare/swKBWorld.hh ../src/sim/simWare/swKBWorld.cc \
+ ../src/sim/simWare/swKBBot.hh ../src/sim/simWare/swKBBot.cc \
+ ../src/sim/simWare/swKBSen.hh ../src/sim/simWare/swKBSen.cc \
+ ../src/sim/simWare/swKBEff.hh ../src/sim/simWare/swKBEff.cc \
+ ../src/sim/simWare/swKBMis.hh ../src/sim/simWare/swKBMis.cc \
+ ../src/sim/simWare/swKBMsg.hh ../src/sim/simWare/swKBMsg.cc \
+ ../src/sim/simWare/usarInfSkin.hh ../src/sim/simWare/usarInfSkin.cc \
+ ../src/sim/simWare/moastSupSkin.hh ../src/sim/simWare/moastSupSkin.cc \
+ ../src/sim/simWare/swServoNodeBase.hh ../src/sim/simWare/swServoNodeBase.cc \
+ ../src/sim/simWare/swServoMob.hh ../src/sim/simWare/swServoMob.cc \
+ ../src/sim/simWare/swServoSP.hh ../src/sim/simWare/swServoSP.cc \
+ ../src/sim/simWare/swServoMis.hh ../src/sim/simWare/swServoMis.cc
+
+bin_PROGRAMS += simpleSimWare
+simpleSimWare_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+simpleSimWare_CXX = $(PTHREAD_CXX)
+simpleSimWare_CXXFLAGS = $(CXXFLAGS) $(PTHREAD_CXXFLAGS) -DSIMPLESIM
+simpleSimWare_LIBS = $(PTHREAD_LIBS) $(LIBS)
+simpleSimWare_SOURCES = \
+../src/sim/simWare/simWare.cc ../src/sim/simWare/swBaseSkin.hh \
+../src/sim/simWare/swKBTypes.hh \
+../src/sim/simWare/swKBUtils.hh ../src/sim/simWare/swKBUtils.cc \
+../src/sim/simWare/simWareKB.hh ../src/sim/simWare/simWareKB.cc \
+../src/sim/simWare/swKBWorld.hh ../src/sim/simWare/swKBWorld.cc \
+../src/sim/simWare/swKBBot.hh ../src/sim/simWare/swKBBot.cc \
+../src/sim/simWare/swKBSen.hh ../src/sim/simWare/swKBSen.cc \
+../src/sim/simWare/swKBEff.hh ../src/sim/simWare/swKBEff.cc \
+../src/sim/simWare/swKBMis.hh ../src/sim/simWare/swKBMis.cc \
+../src/sim/simWare/swKBMsg.hh ../src/sim/simWare/swKBMsg.cc \
+../src/sim/simWare/simpleSimInfSkin.hh ../src/sim/simWare/simpleSimInfSkin.cc \
+../src/sim/simWare/moastSupSkin.hh ../src/sim/simWare/moastSupSkin.cc \
+../src/sim/simWare/swServoNodeBase.hh ../src/sim/simWare/swServoNodeBase.cc \
+../src/sim/simWare/swServoMob.hh ../src/sim/simWare/swServoMob.cc \
+../src/sim/simWare/swServoSP.hh ../src/sim/simWare/swServoSP.cc \
+../src/sim/simWare/swServoMis.hh ../src/sim/simWare/swServoMis.cc
+
+bin_PROGRAMS += trafficSimWare
+trafficSimWare_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+trafficSimWare_CXX = $(PTHREAD_CXX)
+trafficSimWare_CXXFLAGS = $(CXXFLAGS) $(PTHREAD_CXXFLAGS) #-DTRAFFICSIM
+trafficSimWare_LIBS = $(PTHREAD_LIBS) $(LIBS)
+trafficSimWare_SOURCES = \
+../src/sim/simWare/trafficSim.cc ../src/sim/simWare/swBaseSkin.hh \
+../src/sim/simWare/swKBTypes.hh \
+../src/sim/simWare/swKBUtils.hh ../src/sim/simWare/swKBUtils.cc \
+../src/sim/simWare/simWareKB.hh ../src/sim/simWare/simWareKB.cc \
+../src/sim/simWare/swKBWorld.hh ../src/sim/simWare/swKBWorld.cc \
+../src/sim/simWare/swKBBot.hh ../src/sim/simWare/swKBBot.cc \
+../src/sim/simWare/swKBSen.hh ../src/sim/simWare/swKBSen.cc \
+../src/sim/simWare/swKBEff.hh ../src/sim/simWare/swKBEff.cc \
+../src/sim/simWare/swKBMis.hh ../src/sim/simWare/swKBMis.cc \
+../src/sim/simWare/swKBMsg.hh ../src/sim/simWare/swKBMsg.cc \
+../src/sim/simWare/usarInfSkin.hh ../src/sim/simWare/usarInfSkin.cc \
+../src/sim/simWare/trafficSupSkin.hh ../src/sim/simWare/trafficSupSkin.cc \
+../src/sim/simWare/swTraffic.hh ../src/sim/simWare/swTraffic.cc
+
+segmentTest_SOURCES = ../src/tools/segmentTools/cluster.cc ../src/tools/segmentTools/test.cc ../src/tools/segmentTools/chainHull.cc ../src/tools/segmentTools/cluster.hh ../src/tools/segmentTools/vectorWM.cc ../src/tools/segmentTools/vectorWm.hh
+segmentTest_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+exampleUtmConvert_SOURCES = ../src/tools/exampleUtmConvert.cc
+exampleUtmConvert_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+exampleAStarHeapA_SOURCES = ../src/tools/exampleAStarHeapA.cc
+exampleAStarHeapA_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+exampleAStarHeapB_SOURCES = ../src/tools/exampleAStarHeapB.cc
+exampleAStarHeapB_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+exampleAStarHeapNA_SOURCES = ../src/tools/exampleAStarHeapNA.cc
+exampleAStarHeapNA_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+exampleAStarHeapNB_SOURCES = ../src/tools/exampleAStarHeapNB.cc
+exampleAStarHeapNB_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+exampleDijkTabs_SOURCES = ../src/tools/exampleDijkTabs.cc
+exampleDijkTabs_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+exampleDijkHeap_SOURCES = ../src/tools/exampleDijkHeap.cc
+exampleDijkHeap_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+exampleDijkHeapN_SOURCES = ../src/tools/exampleDijkHeapN.cc
+exampleDijkHeapN_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+exampleScrollMap_SOURCES = ../src/tools/exampleScrollMap.cc ../src/tools/exampleScrollMap.hh ../src/tools/exampleCell.hh
+exampleScrollMap_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+gpsToSerial_SOURCES = ../src/tools/gpsToSerial.cc ../src/tools/gpsToSerial.hh
+gpsToSerial_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+nmlConvert_SOURCES = ../src/tools/nmlConvert.cc
+nmlConvert_LDADD =
+
+primSPMain_SOURCES = ../src/prim/primSPMain.cc
+primSPMain_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+primMobMain_SOURCES = ../src/prim/primMobMain.cc
+primMobMain_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+primMisMain_SOURCES = ../src/prim/primMisMain.cc
+primMisMain_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+primShell_SOURCES = ../src/prim/primShell.cc
+primShell_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+amSPMain_SOURCES = ../src/am/amSPMain.cc ../src/am/amSPMap.cc ../include/amSPCell.hh
+amSPMain_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+amMisMain_SOURCES = ../src/am/amMisMain.cc
+amMisMain_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+amMobMain_SOURCES = ../src/am/amMobMain.cc ../src/am/amMobMain.hh
+amMobMain_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+amShell_SOURCES = ../src/am/amShell.cc
+amShell_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+vehSPMain_SOURCES = ../src/vehicle/vehSPMain.cc
+vehSPMain_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+vehMobPLMain_SOURCES = ../src/vehicle/vehMobPLMain.cc ../src/vehicle/vehMobPlWm.cc ../src/vehicle/vehMobPLEngine.cc ../src/vehicle/vehMobPlWm.hh ../src/vehicle/vehMobPLEngine.hh ../src/vehicle/vehMobMap.cc ../src/vehicle/vehMobMap.hh ../src/vehicle/vehMobCell.hh
+vehMobPLMain_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm $(X_LIBS) -lX11
+
+vehShell_SOURCES = ../src/vehicle/vehShell.cc
+vehShell_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+sectShell_SOURCES = ../src/section/sectShell.cc
+sectShell_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+sectMobPL_SOURCES = ../src/section/sectMobPL.cc ../src/section/rcsSectMobPlEngine.cc ../src/section/rcsSectMobPlEngine.hh ../../../TeamTalk/Agents/boeingLib/boeing/boeing_map_server.cc ../../../TeamTalk/Agents/boeingLib/boeing/boeing_map_server.h ../../../TeamTalk/Agents/boeingLib/boeing/boeing_map_packet.cc ../../../TeamTalk/Agents/boeingLib/boeing/boeing_map_packet.h ../../../TeamTalk/Agents/boeingLib/coralshared/timer.cc ../../../TeamTalk/Agents/boeingLib/coralshared/timer.h ../../../TeamTalk/Agents/boeingLib/coralshared/udpsocket.cc ../../../TeamTalk/Agents/boeingLib/coralshared/udpsocket.h ../../../TeamTalk/Agents/boeingLib/coralshared/error_check.cc ../../../TeamTalk/Agents/boeingLib/coralshared/error_check.h
+sectMobPL_CPPFLAGS = -I../../../TeamTalk/Agents/boeingLib/boeing -I../../../TeamTalk/Agents/boeingLib/coralshared
+sectMobPL_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+trafficShell_SOURCES = ../src/sim/simWare/trafficShell.cc
+trafficShell_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+spPlay_SOURCES = ../src/tools/spPlay.cc
+spPlay_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+inifind_SOURCES = ../src/tools/inifind.cc
+inifind_LDADD = -L$(RCSLIB_DIR)/lib -lrcs
+
+moastErrorLog_SOURCES = ../src/tools/moastErrorLog.cc
+moastErrorLog_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+nmlPrint_SOURCES = ../src/tools/nmlPrint.cc
+nmlPrint_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+spqrConvert_SOURCES = ../src/tools/spqrConvert.cc
+spqrConvert_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+exampleVisGraph_SOURCES = ../src/tools/exampleVisGraph.cc
+exampleVisGraph_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+vehDrone_SOURCES = ../src/tools/vehDrone.cc
+vehDrone_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+EXTRA_DIST = run ipc-clear splash ../src/nml/moast.diag ../src/nml/moastDiag.csh runVehicle ../src/common/scrollingMap.cc
+# Extras if we have X Windows
+
+if HAVE_X
+
+bin_PROGRAMS += joystick
+joystick_SOURCES = ../src/tools/joystick.cc
+joystick_CXXFLAGS = $(AM_CXXFLAGS) $(X_CFLAGS)
+joystick_LDADD = ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm $(X_LIBS) -lX11
+endif
+
+# Extras if we have wish
+
+if HAVE_WISH
+
+bin_PROGRAMS += tksplash
+tksplash_SOURCES = ../src/tools/tksplash.tcl
+tksplash_DEPENDENCIES = ../src/tools/tksplash.tcl
+tksplash_LINK = cp ../src/tools/tksplash.tcl ./tksplash ; echo
+
+endif
+
+# Extras if we have GTK
+
+if HAVE_GTK
+
+INCLUDES += @GTK_CFLAGS@
+bin_PROGRAMS += servoGui gtksplash displayGraph imageview notifier
+bin_PROGRAMS += gtksplash displayGraph imageview notifier
+servoGui_SOURCES = ../src/servo/servoGui.cc
+servoGui_CXXFLAGS = @GTK_CFLAGS@ $(AM_CXXFLAGS)
+servoGui_LDADD = @GTK_LIBS@ ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+gtksplash_SOURCES = ../src/tools/gtksplash.c
+gtksplash_CFLAGS = @GTK_CFLAGS@ $(AM_CFLAGS)
+gtksplash_LDADD = @GTK_LIBS@
+displayGraph_SOURCES = ../src/tools/displayGraph.cc
+displayGraph_CFLAGS = @GTK_CFLAGS@ $(AM_CXXFLAGS)
+displayGraph_LDADD = @GTK_LIBS@
+imageview_SOURCES = ../src/tools/imageView/callbacks.c ../src/tools/imageView/interface.c ../src/tools/imageView/main.c ../src/tools/imageView/support.c ../src/tools/imageView/callbacks.h ../src/tools/imageView/interface.h ../src/tools/imageView/support.h
+imageview_CFLAGS = @GTK_CFLAGS@ $(AM_CFLAGS)
+imageview_LDADD = @GTK_LIBS@
+notifier_CFLAGS = @GTK_CFLAGS@ $(AM_CFLAGS)
+notifier_SOURCES = ../src/tools/notifier/notifier.cc ../src/tools/notifier/support.cc ../src/tools/notifier/callbacks.cc ../src/tools/notifier/interface.cc ../src/tools/notifier/callbacks.hh ../src/tools/notifier/interface.hh ../src/tools/notifier/support.hh
+notifier_CXXFLAGS = $(AM_CXXFLAGS) $(X_CFLAGS)
+notifier_LDADD = @GTK_LIBS@ ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+endif
+
+# Extras if we have MySQL
+
+if HAVE_MYSQL
+
+INCLUDES += @MYSQL_CFLAGS@
+bin_PROGRAMS += exampleMySql
+exampleMySql_SOURCES = ../src/tools/exampleMySql.cc
+exampleMySql_LDADD = @MYSQL_LIBS@ ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+vehMobPLMain_LDADD += @MYSQL_LIBS@ ../lib/libmoastMySQL.a
+vehMobPLMain_CXXFLAGS = -DHAVE_MYSQL @MYSQL_CFLAGS@
+endif
+
+# Extras if we have SDL Simple DirectMedia Layer for joystick
+
+if HAVE_SDL
+
+INCLUDES += @SDL_CFLAGS@
+bin_PROGRAMS += joySDL robojoy
+
+joySDL_SOURCES = ../src/tools/joySDL.cc
+joySDL_LDADD = @SDL_LIBS@ ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+robojoy_SOURCES = ../src/tools/robojoy.cc
+robojoy_LDADD = @SDL_LIBS@ ../lib/libmoast.a -L$(RCSLIB_DIR)/lib -lrcs -lposemath -lm
+
+endif
Added: moast/bin/Makefile.local
===================================================================
--- moast/bin/Makefile.local (rev 0)
+++ moast/bin/Makefile.local 2007-05-02 19:25:45 UTC (rev 583)
@@ -0,0 +1 @@
+include Makefile
Added: moast/bin/arda.arc
===================================================================
--- moast/bin/arda.arc (rev 0)
+++ moast/bin/arda.arc 2007-05-02 19:25:45 UTC (rev 583)
@@ -0,0 +1,16 @@
+# y x
+55 51 1.0 20
+#49 49 49.7 55.1 1.5 1.0 20
+31.6 55.2 1.0 20
+31.6 74.2 12.6 74.2 -1.5 1.0 20
+12.6 90.0 1.0 20
+22 95 1.0 20
+24.4 111.5 1.0 20
+32.5 119 1.0 20
+34 98 1.0 20
+
+
+
+#55.0164 125.349 2.0 20
+#55.0164 158.725 2.0 20
+#74.028 158.725 74.028 177.736 -1.5 2.0 20
Added: moast/bin/ipc-clear
===================================================================
--- moast/bin/ipc-clear (rev 0)
+++ moast/bin/ipc-clear 2007-05-02 19:25:45 UTC (rev 583)
@@ -0,0 +1,75 @@
+#!/bin/sh
+
+#
+# 'ipc-clear' removes semaphores and shared memory that may be lying around
+#
+
+OS=`uname`
+
+if [ $OS = Linux ] ; then
+
+for key in `ipcs -m | awk '{print $1}'` ; do
+ if [ "$key" = "0x00000000" ] ; then continue ; fi
+ if [ "$key" = "------" ] ; then continue ; fi
+ if [ "$key" = "key" ] ; then continue ; fi
+ echo -n removing shared memory $key...
+ ipcrm -M $key
+ echo done
+done
+
+for key in `ipcs -s | awk '{print $1}'` ; do
+ if [ "$key" = "0x00000000" ] ; then continue ; fi
+ if [ "$key" = "------" ] ; then continue ; fi
+ if [ "$key" = "key" ] ; then continue ; fi
+ echo -n removing semaphore $key...
+ ipcrm -S $key
+ echo done
+done
+
+for key in `ipcs -q | awk '{print $1}'` ; do
+ if [ "$key" = "0x00000000" ] ; then continue ; fi
+ if [ "$key" = "------" ] ; then continue ; fi
+ if [ "$key" = "key" ] ; then continue ; fi
+ echo -n removing message queue $key...
+ ipcrm -Q $key
+ echo done
+done
+
+elif [ $OS = SunOS ] ; then
+
+# go for entries like "m 4900 0x0000077d ..."
+
+clear=`ipcs | awk -e '$1 ~ /m/ && $3 ~ /0x/ {print $3}'`
+for id in $clear ; do
+ echo ipcrm -M $id
+ ipcrm -M $id
+done
+
+# go for entries like "s 327680 0x0000077e ..."
+
+clear=`ipcs | awk -e '$1 ~ /s/ && $3 ~ /0x/ {print $3}'`
+for id in $clear ; do
+ echo ipcrm -S $id
+ ipcrm -S $id
+done
+
+# go for entries like "m4900000 0x0000077d ..."
+
+clear=`ipcs | awk -e '$1 ~ /m/ && $2 ~ /0x/ {print $2}'`
+for id in $clear ; do
+ echo ipcrm -M $id
+ ipcrm -M $id
+done
+
+# go for entries like "s3276800 0x0000077e ..."
+
+clear=`ipcs | awk -e '$1 ~ /s/ && $2 ~ /0x/ {print $2}'`
+for id in $clear ; do
+ echo ipcrm -S $id
+ ipcrm -S $id
+done
+
+fi
+
+exit 0
+
Property changes on: moast/bin/ipc-clear
___________________________________________________________________
Name: svn:executable
+
Added: moast/bin/navPlot
===================================================================
--- moast/bin/navPlot (rev 0)
+++ moast/bin/navPlot 2007-05-02 19:25:45 UTC (rev 583)
@@ -0,0 +1,19 @@
+#!/bin/sh
+# run this until ^C, then it will plot the data
+
+cd `dirname $0`
+
+export CONFIG_NML=../etc/moast.nml
+
+finished=0
+trap "finished=1" SIGINT
+
+\rm -f out.dat
+while test $finished -eq 0 ; do
+ ./nmlPrint -n 1 -b navDataExt -p nmlPrint --notime >> out.dat
+done
+
+# splot the XYZ relative position
+if test -s out.dat ; then echo "splot 'out.dat' using 5:6:7" | gnuplot -persist; fi
+
+exit 0
Property changes on: moast/bin/navPlot
___________________________________________________________________
Name: svn:executable
+
Added: moast/bin/ppm.tcl
===================================================================
--- moast/bin/ppm.tcl (rev 0)
+++ moast/bin/ppm.tcl 2007-05-02 19:25:45 UTC (rev 583)
@@ -0,0 +1,30 @@
+#!/bin/sh
+# the next line restarts using wish \
+exec wish "$0" "$@"
+
+if {$argc < 1} {
+ puts stderr "syntax: ppm.tcl <image file>"
+ exit
+}
+
+set img [lindex $argv 0]
+
+if {! [file exists $img]} {
+ puts stderr "can't find file $img"
+ exit
+}
+
+if {[catch {image create photo image1 -file $img}]} {
+ puts stderr "bad image file $img"
+ exit
+}
+
+label .label -image image1
+pack .label
+
+while {1} {
+ update idletasks
+ image delete image1
+ catch {image create photo image1 -file $img}
+ after 100
+}
Property changes on: moast/bin/ppm.tcl
___________________________________________________________________
Name: svn:executable
+
Added: moast/bin/primSpPlot
===================================================================
--- moast/bin/primSpPlot (rev 0)
+++ moast/bin/primSpPlot 2007-05-02 19:25:45 UTC (rev 583)
@@ -0,0 +1,16 @@
+#!/bin/sh
+# pipe this output to gnuplot, e.g.,
+# ./symPlot | gnuplot
+
+export CONFIG_NML=../etc/moast.nml
+
+finished=0
+trap "finished=1" SIGINT
+
+\rm -f out
+while test $finished -eq 0 ; do
+ ./nmlPrint -b primSPLinescan -p nmlPrint --block --notime > out
+ if test -s out ; then echo plot \[\] \'out\' w lp lt 1 lw 2 pt 5; fi
+done
+
+exit 0
Property changes on: moast/bin/primSpPlot
___________________________________________________________________
Name: svn:executable
+
Added: moast/bin/run
===================================================================
--- moast/bin/run (rev 0)
+++ moast/bin/run 2007-05-02 19:25:45 UTC (rev 583)
@@ -0,0 +1,161 @@
+#!/bin/sh
+#
+# USERS EDIT THIS AREA
+#
+# set up to use ackerman steering
+#export USE_ACKERMAN=2
+
+# set up to use the submarine
+#export USE_NAUTIC=1.0
+
+#set SECT=yes to run section, VEH, AM, prim, and servo, else SECT=no
+SECT=yes
+
+# if SECT=no, set VEH=yes to run vehicle, AM, prim, and servo, else VEH=no
+VEH=no
+
+# if VEH=no, set AM=yes to run AM, prim, and servo, else AM=no
+AM=no
+
+# if AM=no, set PRIM=yes to run prim, and servo, else PRIM=no
+PRIM=yes
+
+# set USARSIM=yes to run usarSim, else USARSIM=no to run simpleSim
+USARSIM=yes
+#
+# END OF USER EDIT AREA
+#
+
+echo `dirname $0`/..
+if [ $# = 0 ]; then
+ ID=1
+else
+ ID=$1
+fi
+if [ $# -le 1 ]; then
+ PLATFORM=2
+else
+ PLATFORM=$2
+fi
+if [ $# -le 2 ]; then
+ STARTLOC=1
+else
+ STARTLOC=$3
+fi
+#
+#are we on cygwin?
+CYGWIN=no
+case `uname -s` in
+CYGWIN*) CYGWIN=yes
+;;
+esac
+
+CONFIG_NML=../etc/moast.nml ; export CONFIG_NML
+CONFIG_INI=../etc/moast.ini ; export CONFIG_INI
+
+TOP=servoShell
+if [ x$PRIM = xyes ] ; then TOP=primShell ; fi
+if [ x$AM = xyes ] ; then PRIM=yes; TOP=amShell ; fi
+if [ x$VEH = xyes ] ; then AM=yes; PRIM=yes; TOP=vehShell ; fi
+if [ x$SECT = xyes ] ; then VEH=yes; AM=yes; PRIM=yes; TOP=sectShell ; fi
+pid1=0
+pid2=0
+pid3=0
+pid4=0
+pid5=0
+pid6=0
+pid7=0
+pid8=0
+pid9=0
+pid10=0
+
+kill1=9
+kill2=INT
+kill3=9
+kill4=9
+kill5=9
+kill6=INT
+kill7=9
+kill8=9
+kill9=9
+kill10=9
+
+./ipc-clear
+
+./splash $CONFIG_INI &
+
+echo "Starting server..."
+if [ x$CYGWIN = xyes ] ; then
+ nice -n'-10' ./moastNmlSvr &
+else
+ ./moastNmlSvr &
+fi
+pid1=$!
+sleep 3
+
+if [ x$USARSIM = xyes ] ; then
+ echo "Starting usarsim..."
+ if [ x$CYGWIN = xyes ] ; then
+ nice -n'-10' ./simWare -i$ID -s$STARTLOC -p$PLATFORM &
+ kill2=HUP
+ else
+ ./simWare -i$ID -s$STARTLOC -p$PLATFORM &
+ kill2=HUP
+ fi
+else
+ echo "Starting simpleSimWare..."
+ ./simpleSimWare -i$ID -s$STARTLOC -p$PLATFORM &
+fi
+pid2=$!
+sleep 5
+
+./slamStub -i$ID&
+pid3=$!
+sleep 1
+
+if [ x$PRIM = xyes ] ; then
+ echo "Starting prim..."
+ sleep 2
+ ./primMobMain -d$ID&
+ pid4=$!
+ ./primSPMain -d$ID&
+ pid5=$!
+ #./primMisMain -d$ID&
+ #pid6=$!
+fi
+
+if [ x$AM = xyes ] ; then
+ echo "Starting am..."
+ ./amMobMain -d$ID&
+ pid7=$!
+ ./amSPMain -z.1 -d$ID&
+ pid8=$!
+fi
+
+if [ x$VEH = xyes ] ; then
+ echo "Starting vehicle..."
+ ./vehMobPLMain -i -g1 -r.1 -d$ID&
+# ./vehMobPLMain -i -g3 -r.1 -d$ID&
+ pid9=$!
+fi
+
+if [ x$SECT = xyes ] ; then
+ echo "Starting section..."
+ ./sectMobPL -r.1&
+ pid10=$!
+fi
+
+./$TOP
+
+if [ ! $pid10 = 0 ] ; then kill -$kill10 $pid10 ; fi
+if [ ! $pid9 = 0 ] ; then kill -$kill9 $pid9 ; fi
+if [ ! $pid8 = 0 ] ; then kill -$kill8 $pid8 ; fi
+if [ ! $pid7 = 0 ] ; then kill -$kill7 $pid7 ; fi
+if [ ! $pid6 = 0 ] ; then kill -$kill6 $pid6 ; fi
+if [ ! $pid5 = 0 ] ; then kill -$kill5 $pid5 ; fi
+if [ ! $pid4 = 0 ] ; then kill -$kill4 $pid4 ; fi
+if [ ! $pid3 = 0 ] ; then kill -$kill3 $pid3 ; fi
+if [ ! $pid2 = 0 ] ; then kill -$kill2 $pid2 ; fi
+if [ ! $pid1 = 0 ] ; then kill -$kill1 $pid1 ; fi
+
+exit 0
Property changes on: moast/bin/run
___________________________________________________________________
Name: svn:executable
+
Added: moast/bin/runDrone
===================================================================
--- moast/bin/runDrone (rev 0)
+++ moast/bin/runDrone 2007-05-02 19:25:45 UTC (rev 583)
@@ -0,0 +1,86 @@
+#!/bin/sh
+
+# set SERVER=yes to run nml server, else SERVER=no
+SERVER=no
+
+# set PRIM=yes to run prim, else PRIM=no
+PRIM=yes
+
+# set USARSIM=yes to run usarSim, else USARSIM=no to run oldUsarSim
+USARSIM=yes
+
+CONFIG_NML=../etc/moast.nml ; export CONFIG_NML
+CONFIG_INI=../etc/moast.ini ; export CONFIG_INI
+
+TOP=servoGui
+
+pid1=0
+pid2=0
+pid3=0
+pid4=0
+pid5=0
+pid6=0
+pid7=0
+
+kill1=INT
+kill2=INT
+kill3=INT
+kill4=INT
+kill5=INT
+kill6=INT
+kill7=INT
+
+if [ x$SERVER = xyes ] ; then
+ ./moastNmlSvr &
+ sleep 2
+fi
+pid1=$!
+
+if [ x$USARSIM = xyes ] ; then
+ kill2=HUP
+ ./usarSim -hbugs-220.mxnet.mel.nist.gov -i2&
+# ./oldUsarSim -x-2928 -y1164 -z128 -h bugs-220.mxnet.mel.nist.gov -w DM-NistDay &
+else
+ ./simpleSim &
+fi
+pid2=$!
+
+if [ x$PRIM = xyes ] ; then
+ sleep 2
+ kill3=HUP
+ ./primMobMain -d2&
+ pid3=$!
+fi
+
+./vehDrone -d2 -v&
+pid4=$!
+
+sleep 5
+if [ x$USARSIM = xyes ] ; then
+ kill5=HUP
+ ./usarSim -hbugs-220.mxnet.mel.nist.gov -i3&
+# ./oldUsarSim -x-2928 -y1164 -z128 -h bugs-220.mxnet.mel.nist.gov -w DM-NistDay &
+else
+ ./simpleSim &
+fi
+pid5=$!
+
+if [ x$PRIM = xyes ] ; then
+ sleep 2
+ kill6=HUP
+ ./primMobMain -d3&
+ pid6=$!
+fi
+
+./vehDrone -d3 -v
+pid7=$!
+
+if [ ! $pid7 = 0 ] ; then kill -$kill7 $pid7 ; fi
+if [ ! $pid6 = 0 ] ; then kill -$kill6 $pid6 ; fi
+if [ ! $pid5 = 0 ] ; then kill -$kill5 $pid5 ; fi
+if [ ! $pid4 = 0 ] ; then kill -$kill4 $pid4 ; fi
+if [ ! $pid3 = 0 ] ; then kill -$kill3 $pid3 ; fi
+if [ ! $pid2 = 0 ] ; then kill -$kill2 $pid2 ; fi
+if [ ! $pid1 = 0 ] ; then kill -$kill1 $pid1 ; fi
+
+exit 0
Property changes on: moast/bin/runDrone
___________________________________________________________________
Name: svn:executable
+
Added: moast/bin/runJoy
===================================================================
--- moast/bin/runJoy (rev 0)
+++ moast/bin/runJoy 2007-05-02 19:25:45 UTC (rev 583)
@@ -0,0 +1,170 @@
+#!/bin/sh
+#user set these for simulation
+ID=1
+#P2DX
+#PLATFORM=1; JOYMODE=1
+#P2AT
+#PLATFORM=2; JOYMODE=1
+#ATRVJr
+#PLATFORM=3; JOYMODE=1
+#ATRVJrBig
+#PLATFORM=4; JOYMODE=1
+#HUMMER
+#PLATFORM=5; JOYMODE=2
+#Submarine
+#PLATFORM=6; JOYMODE=3
+#Zerg
+PLATFORM=7; JOYMODE=1
+#Talon
+#PLATFORM=8; JOYMODE=1
+#TeleMax
+#PLATFORM=9; JOYMODE=1
+#AirRobot
+PLATFORM=10; JOYMODE=4
+#STARTLOC=1
+STARTLOC=2
+#done with user area
+#
+#are we on cygwin?
+CYGWIN=no
+case `uname -s` in
+CYGWIN*) CYGWIN=yes
+;;
+esac
+
+echo `dirname $0`/..
+# set up to use ackerman steering
+#export USE_ACKERMAN=2
+
+# set up to use the submarine
+#USE_NAUTIC=1.0 ; export USE_NAUTIC
+
+#set SECT=yes to run section, VEH, AM, prim, and servo, else SECT=no
+SECT=no
+
+# if SECT=no, set VEH=yes to run vehicle, AM, prim, and servo, else VEH=no
+VEH=no
+
+# if VEH=no, set AM=yes to run AM, prim, and servo, else AM=no
+AM=yes
+
+# if AM=no, set PRIM=yes to run prim, and servo, else PRIM=no
+PRIM=no
+
+# set USARSIM=yes to run usarSim, else USARSIM=no to run simpleSim
+USARSIM=yes
+
+CONFIG_NML=../etc/moast.nml ; export CONFIG_NML
+CONFIG_INI=../etc/moast.ini ; export CONFIG_INI
+
+TOP=servoShell
+if [ x$PRIM = xyes ] ; then TOP=primShell ; fi
+if [ x$AM = xyes ] ; then PRIM=yes; TOP=amShell ; fi
+if [ x$VEH = xyes ] ; then AM=yes; PRIM=yes; TOP=vehShell ; fi
+if [ x$SECT = xyes ] ; then VEH=yes; AM=yes; PRIM=yes; TOP=sectShell ; fi
+pid1=0
+pid2=0
+pid3=0
+pid4=0
+pid5=0
+pid6=0
+pid7=0
+pid8=0
+pid9=0
+pid10=0
+pid11=0
+
+kill1=9
+kill2=9
+kill3=9
+kill4=9
+kill5=9
+kill6=INT
+kill7=9
+kill8=9
+kill9=9
+kill10=9
+kill11=9
+
+./ipc-clear
+
+./splash $CONFIG_INI &
+
+echo "Starting server..."
+if [ x$CYGWIN = xyes ] ; then
+ nice -n'-10' ./moastNmlSvr &
+else
+ ./moastNmlSvr &
+fi
+pid1=$!
+sleep 3
+
+if [ x$USARSIM = xyes ] ; then
+ echo "Starting usarsim..."
+ if [ x$CYGWIN = xyes ] ; then
+ nice -n'-10' ./simWare -i$ID -s$STARTLOC -p$PLATFORM &
+ else
+ ./simWare -i$ID -s$STARTLOC -p$PLATFORM &
+fi
+ pid2=$!
+ kill2=HUP
+ sleep 5
+ ./slamStub &
+ pid3=$!
+ sleep 1
+
+else
+ ./simpleSim &
+ pid2=$!
+fi
+
+if [ x$PRIM = xyes ] ; then
+ echo "Starting prim..."
+ sleep 2
+ ./primMobMain &
+ pid4=$!
+ ./primSPMain &
+ pid5=$!
+ ./primMisMain &
+ pid6=$!
+fi
+
+if [ x$AM = xyes ] ; then
+ echo "Starting am..."
+ ./amMobMain &
+ pid7=$!
+ ./amSPMain -z.1&
+ pid8=$!
+fi
+
+if [ x$VEH = xyes ] ; then
+ echo "Starting vehicle..."
+# ./vehMobPLMain -i -g1 -r.2 &
+ ./vehMobPLMain -i -g3 -r.1 &
+ pid9=$!
+fi
+
+if [ x$SECT = xyes ] ; then
+ echo "Starting section..."
+ ./sectMobPL &
+ pid10=$!
+fi
+
+./joySDL -d1 -x3 -y3 -z3 -w3 -m$JOYMODE&
+pid11=$!
+
+./$TOP
+
+if [ ! $pid11 = 0 ] ; then kill -$kill11 $pid11 ; fi
+if [ ! $pid10 = 0 ] ; then kill -$kill10 $pid10 ; fi
+if [ ! $pid9 = 0 ] ; then kill -$kill9 $pid9 ; fi
+if [ ! $pid8 = 0 ] ; then kill -$kill8 $pid8 ; fi
+if [ ! $pid7 = 0 ] ; then kill -$kill7 $pid7 ; fi
+if [ ! $pid6 = 0 ] ; then kill -$kill6 $pid6 ; fi
+if [ ! $pid5 = 0 ] ; then kill -$kill5 $pid5 ; fi
+if [ ! $pid4 = 0 ] ; then kill -$kill4 $pid4 ; fi
+if [ ! $pid3 = 0 ] ; then kill -$kill3 $pid3 ; fi
+if [ ! $pid2 = 0 ] ; then kill -$kill2 $pid2 ; fi
+if [ ! $pid1 = 0 ] ; then kill -$kill1 $pid1 ; fi
+
+exit 0
Property changes on: moast/bin/runJoy
___________________________________________________________________
Name: svn:executable
+
Added: moast/bin/runSub
===================================================================
--- moast/bin/runSub (rev 0)
+++ moast/bin/runSub 2007-05-02 19:25:45 UTC (rev 583)
@@ -0,0 +1,143 @@
+#!/bin/sh
+#
+#are we on cygwin?
+CYGWIN=no
+case `uname -s` in
+ CYGWIN*)
+ CYGWIN=yes
+;;
+esac
+echo $CYGWIN
+
+cd `dirname $0`
+
+#set SECT=yes to run section, VEH, AM, prim, and servo, else SECT=no
+SECT=no
+
+# if SECT=no, set VEH=yes to run vehicle, AM, prim, and servo, else VEH=no
+VEH=no
+
+# if VEH=no, set AM=yes to run AM, prim, and servo, else AM=no
+AM=no
+
+# if AM=no, set PRIM=yes to run prim, and servo, else PRIM=no
+PRIM=yes
+
+# set USARSIM=yes to run usarSim, else USARSIM=no to run simpleSim
+USARSIM=yes
+
+CONFIG_NML=../etc/moast.nml ; export CONFIG_NML
+CONFIG_INI=../etc/moast.ini ; export CONFIG_INI
+
+# use the submarine
+export USE_NAUTIC=1.0
+
+TOP=servoShell
+if [ x$PRIM = xyes ] ; then TOP=primShell ; fi
+if [ x$AM = xyes ] ; then PRIM=yes; TOP=amShell ; fi
+if [ x$VEH = xyes ] ; then AM=yes; PRIM=yes; TOP=vehShell ; fi
+if [ x$SECT = xyes ] ; then VEH=yes; AM=yes; PRIM=yes; TOP=sectShell ; fi
+pid1=0
+pid2=0
+pid2a=0
+pid3=0
+pid4=0
+pid5=0
+pid6=0
+pid7=0
+pid8=0
+pid9=0
+pid10=0
+
+kill1=9
+kill2=9
+kill2a=9
+kill3=9
+kill4=9
+kill5=9
+kill6=INT
+kill7=9
+kill8=9
+kill9=9
+kill10=9
+
+./ipc-clear > /dev/null 2>&1
+
+./splash $CONFIG_INI &
+
+echo "Starting server..."
+if [ x$CYGWIN = xyes ] ; then
+ nice -n'-10' ./moastNmlSvr &
+else
+ ./moastNmlSvr &
+fi
+sleep 2
+pid1=$!
+
+if [ x$USARSIM = xyes ] ; then
+ echo "Starting usarsim..."
+# ./usarSim -i1 &
+if [ x$CYGWIN = xyes ] ; then
+ nice -n'-10' ./simWare -i1 -s1 -p6 &
+else
+ ./simWare -i1 -s2 -p6 &
+fi
+ pid2=$!
+ sleep 5
+ ./slamStub &
+ pid2a=$!
+ sleep 1
+ kill2=HUP
+else
+ ./simpleSim &
+fi
+
+if [ x$PRIM = xyes ] ; then
+ echo "Starting prim..."
+ sleep 2
+ ./primMobMain &
+ pid3=$!
+ ./primSPMain &
+ pid4=$!
+ ./primMisMain &
+ pid5=$!
+fi
+
+if [ x$AM = xyes ] ; then
+ echo "Starting am..."
+ ./amMobMain &
+ pid6=$!
+ ./amSPMain -z.1&
+ pid7=$!
+fi
+
+if [ x$VEH = xyes ] ; then
+ echo "Starting vehicle..."
+ ./vehMobPLMain -i -g3 -r.2&
+ pid8=$!
+fi
+
+if [ x$SECT = xyes ] ; then
+ echo "Starting section..."
+ ./sectMobPL &
+ pid9=$!
+fi
+
+./joySDL -d1 -m3 -x2 -y2 -z2 -w4 &
+pid10=$!
+
+./$TOP
+
+if [ ! $pid10 = 0 ] ; then kill -$kill10 $pid10 ; fi
+if [ ! $pid9 = 0 ] ; then kill -$kill9 $pid9 ; fi
+if [ ! $pid8 = 0 ] ; then kill -$kill8 $pid8 ; fi
+if [ ! $pid7 = 0 ] ; then kill -$kill7 $pid7 ; fi
+if [ ! $pid6 = 0 ] ; then kill -$kill6 $pid6 ; fi
+if [ ! $pid5 = 0 ] ; then kill -$kill5 $pid5 ; fi
+if [ ! $pid4 = 0 ] ; then kill -$kill4 $pid4 ; fi
+if [ ! $pid3 = 0 ] ; then kill -$kill3 $pid3 ; fi
+if [ ! $pid2a = 0 ] ; then kill -$kill2a $pid2a ; fi
+if [ ! $pid2 = 0 ] ; then kill -$kill2 $pid2 ; fi
+if [ ! $pid1 = 0 ] ; then kill -$kill1 $pid1 ; fi
+
+exit 0
Property changes on: moast/bin/runSub
___________________________________________________________________
Name: svn:executable
+
Added: moast/bin/runVehicle
===================================================================
--- moast/bin/runVehicle (rev 0)
+++ moast/bin/runVehicle 2007-05-02 19:25:45 UTC (rev 583)
@@ -0,0 +1,128 @@
+#!/bin/sh
+#
+# USERS EDIT THIS AREA
+#
+# set up to use ackerman steering
+#export USE_ACKERMAN=2
+
+# set up to use the submarine
+#export USE_NAUTIC=1.0
+# set VEH=yes to run vehicle, AM, prim, and servo, else VEH=no
+VEH=yes
+
+# if VEH=no, set AM=yes to run AM, prim, and servo, else AM=no
+AM=no
+
+# if AM=no, set PRIM=yes to run prim, and servo, else PRIM=no
+PRIM=yes
+
+# set USARSIM=yes to run usarSim, else USARSIM=no to run simpleSim
+USARSIM=yes
+#
+# END OF USER EDIT AREA
+#
+
+if [ $# = 0 ]; then
+ vehID=2
+else
+ vehID=$1
+fi
+if [ $# -le 1 ]; then
+ PLATFORM=2
+else
+ PLATFORM=$2
+fi
+if [ $# -le 2 ]; then
+ STARTLOC=2
+else
+ STARTLOC=$3
+fi
+
+#are we on cygwin?
+CYGWIN=no
+case `uname -s` in
+CYGWIN*) CYGWIN=yes
+;;
+esac
+
+CONFIG_NML=../etc/moast.nml ; export CONFIG_NML
+CONFIG_INI=../etc/moast.ini ; export CONFIG_INI
+
+TOP=servoShell
+if [ x$PRIM = xyes ] ; then TOP=primShell ; fi
+if [ x$AM = xyes ] ; then PRIM=yes; TOP=amShell ; fi
+if [ x$VEH = xyes ] ; then AM=yes; PRIM=yes; TOP=vehShell ; fi
+pid1=0
+pid2=0
+pid3=0
+pid4=0
+pid5=0
+pid6=0
+pid7=0
+pid8=0
+pid9=0
+
+kill1=9
+kill2=9
+kill3=9
+kill4=9
+kill5=9
+kill6=9
+kill7=9
+kill8=9
+kill9=9
+
+./splash $CONFIG_INI &
+
+if [ x$USARSIM = xyes ] ; then
+ echo "Starting usarsim..."
+ if [ x$CYGWIN = xyes ] ; then
+ nice -n'-10' ./simWare -i$vehID -s$STARTLOC -p$PLATFORM &
+ else
+ ./simWare -i$vehID -s$STARTLOC -p$PLATFORM &
+fi
+ pid1=$!
+ kill1=HUP
+ sleep 5
+ ./slamStub -i$vehID&
+ pid2=$!
+ sleep 1
+
+else
+ ./simpleSim &
+ pid1=$!
+fi
+
+if [ x$PRIM = xyes ] ; then
+ ./primMobMain -d$vehID&
+ pid3=$!
+ ./primSPMain -d$vehID&
+ pid4=$!
+fi
+
+if [ x$AM = xyes ] ; then
+ sleep 2
+ ./amMobMain -d$vehID&
+ pid5=$!
+ ./amSPMain -z.1 -d$vehID&
+ pid6=$!
+fi
+
+if [ x$VEH = xyes ] ; then
+ ./vehMobPLMain -i -g1 -r.2 -d$vehID&
+ pid7=$!
+fi
+
+./$TOP -d$vehID
+
+if [ ! $pid9 = 0 ] ; then kill -$kill9 $pid9 ; fi
+if [ ! $pid8 = 0 ] ; then kill -$kill8 $pid8 ; fi
+if [ ! $pid7 = 0 ] ; then kill -$kill7 $pid7 ; fi
+if [ ! $pid6 = 0 ] ; then kill -$kill6 $pid6 ; fi
+if [ ! $pid5 = 0 ] ; then kill -$kill5 $pid5 ; fi
+if [ ! $pid4 = 0 ] ; then kill -$kill4 $pid4 ; fi
+if [ ! $pid3 = 0 ] ; then kill -$kill3 $pid3 ; fi
+if [ ! $pid2 = 0 ] ; then kill -$kill2 $pid2 ; fi
@@ Diff output truncated at 60000 characters. @@
More information about the TeamTalk-developers
mailing list