diff --git a/src/motioncapture.cpp b/src/motioncapture.cpp index f745478..82fd29f 100644 --- a/src/motioncapture.cpp +++ b/src/motioncapture.cpp @@ -21,6 +21,9 @@ #ifdef ENABLE_MOTIONANALYSIS #include "libmotioncapture/motionanalysis.h" #endif +#ifdef ENABLE_FZMOTION +#include "libmotioncapture/fzmotion.h" +#endif namespace libmotioncapture { @@ -211,6 +214,16 @@ namespace libmotioncapture { mocap = new libmotioncapture::MotionCaptureMotionAnalysis( getString(cfg, "hostname", "localhost")); } +#endif +#ifdef ENABLE_FZMOTION + else if (type == "fzmotion") + { + mocap = libmotioncapture::MotionCaptureFZMotion::getInstance( + getString(cfg, "local_IP", "localhost"), + getInt(cfg, "local_port", 1510), + getString(cfg, "hostname", "fzmotion"), + getInt(cfg, "remote_port", 1510)); + } #endif else {