Skip to content

Commit

Permalink
actually add fzmotion
Browse files Browse the repository at this point in the history
  • Loading branch information
whoenig committed Jun 3, 2024
1 parent d14cc61 commit 5ce3bee
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/motioncapture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
#ifdef ENABLE_MOTIONANALYSIS
#include "libmotioncapture/motionanalysis.h"
#endif
#ifdef ENABLE_FZMOTION
#include "libmotioncapture/fzmotion.h"
#endif

namespace libmotioncapture {

Expand Down Expand Up @@ -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
{
Expand Down

0 comments on commit 5ce3bee

Please sign in to comment.