Python bindings for MOOS
- Fixed CMake to use whatever version of Python 3 available on the system.
- Added binary message data type support.
- Clean up code (clang-format and black).
- Forked https://github.com/davidhodo/pymoos
- Updated to latest MOOS API (10.5.0)
- Fixed CMake to find MOOS libs
- Updated to Python 3.7
- MOOS Core
- Python 3
- Boost libraries (Boost Python compiled against Python 3)
Newer Ubuntu installations ship with both 2.7 and 3 versions of the Boost Python library. For older versions (or other OS's) Boost Python must be compiled and linked against Python 3.
The pymoos bindings require that the core MOOS packages be installed:
git clone https://github.com/themoos/core-moos.git cd core-moos mkdir build cd build cmake .. make
Building and Installation
The pymoos bindings can be downloaded and installed by:
git clone email@example.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:
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)
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size pymoos-2020.1.0.tar.gz (4.8 kB)||File type Source||Python version None||Upload date||Hashes View hashes|