Skip to content

davidhodo/pymoos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PYMOOS - Python binds for MOOS

Python interface for the Mission Oriented Software Suite (MOOS), developed at Oxford University [http://www.robots.ox.ac.uk/~mobile/MOOS/wiki/pmwiki.php] and hosted on GitHub [https://github.com/themoos]

The pymoos bindings were written by Ian Baldwin and hosted at http://sourceforge.net/projects/pymoos/.

Dependencies

The pymoos bindings require at a minimum that the core MOOS packages be installed. They are curently written for the pre-V10 header structure and so MOOS must be compiled with the ENABLE_V10_COMPATIBILITY flag set.

git clone https://github.com/themoos/core-moos.git
cd core-moos
mkdir build
cd build
cmake ../ -DENABLE_V10_COMPATIBILITY=ON
make

Boost Python compiled against Python3 is also required. Newer Ubuntu installations ship with both 2.7 and 3.2 versions of the Boost Python library. For older versions (or other OS's) Boost Python must be compiled and linked against Python3.2. Download the Boost source code and extract to a folder and then:

./bootstrap.sh --prefix=path/to/installation/prefix --with-python-version=3.2
./b2 install

Installation

The pymoos bindings can be downloaded and installed by:

git clone git@github.com:davidhodo/pymoos.git
cd pymoos
mkdir build
cmake ../
make
sudo make install

The installation can be tested by:

python3
import pymoos.MOOSCommClient

If an import error occurs check that the installation directory (usually /usr/local/lib/python3/dist-packages on Ubuntu) is included in your PYTHONPATH. If not it can be added by:

export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python3/dist-packages

Example Usage

The following code snippet creates a MOOS comm client from Python and connects to a database hosted on the local machine. From a Python3 interpreter, run:

import pymoos.MOOSCommClient
m = pymoos.MOOSCommClient.MOOSApp()
m.Run( "127.0.0.1", 9000, "pymoos_test", 10)

About

Python bindings for the MOOS middleware

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published