XMM - Probabilistic Models for Motion Recognition and Mapping

Compilation and Usage

Table of Contents

Dependencies

The library depends on jsoncpp for JSON file I/O. The library is distributed with this softare. The units tests rely on the Catch testing framework

Compiling as a static/dynamic library

XCode

See the xcode project in "ide/xcode/"

CMake

The library can be built using CMake.
In the root directory, type the following command to generate the Makefiles:

cmake . -G"Unix Makefiles"

The following commands can be used to build the static library, run the unit tests, and generate the documentation:

make
make test
make doc

Usage

The header file "xmm.h" includes all useful headers of the library.

Building the Python Library

Dependencies

Building

The python module can be built using CMake.
In the python directory, type the following command to generate the Makefiles and build the python module:

cmake . -G"Unix Makefiles"
make

The module should be installed in "${xmm_root}/python/bin/"

Usage

Place the built python library somewhere in your python path. To add personal libraries located in '/Path/To/Libs' to the python path, add the following lines to your ".bash_profile":

PYTHONPATH=$PYTHONPATH:/Path/To/Libs
export PYTHONPATH

To import the library in python:

>>> import xmm

Additional utilities can be found in xmm.util.

Prev: Introduction | Next: Getting Started in C++.