Skip to content

Developer's Guide

István Papp edited this page Jan 17, 2017 · 7 revisions

Development environment setup - Eclipse

Install Eclipse Modeling Tools - Neon Release (4.6.0)

  • Download & run eclipse installer

  • Select Eclipse Modeling Tools

  • Install m2e - Maven Integration for Eclipse

Install Viatra-CEP

  • Follow the instructions in the installation guide.

    • The demo was created with Viatra CEP 0.14 version.

Install Drools Fusion

Install with Oomph

  • Download the Oomph Setup

  • Start the eclipse installer and select Eclipse Modeling Tools (Neon)

  • Switch to advanced mode

  • Import the downloaded setup (with green add button)

  • Check related paths and finish the installation

Third party library & driver installation

LeapMotion driver & SDK

  • Installation on Linux

  • Installation on Windows

    • Download & install the latest SDK version

ZeroMQ installation

Protobuf installation

Frame stream processor

To create new frame stream you only need to inherit your stream handler class from AbstractProtoFrameStream and implement the processFrame method. After you start the component the processFrame will be called if a new frame arrived from the LeapMotion controller.

Build

Run maven build:

mvn -P eclipse clean verify

Run the demo

  • IoT CEP Demo - LeapMotion - Record — start LeapMotion controller application in record mode.

    • -record <path to output directory>

    • -fps <1-150> — transmit stream with the given frame per second

Note: The frame stream always be recorded with the maximum FPS available through Leap Motion controller. The -fps parameter only impact the publishing frequency to processing components.

  • IoT CEP Demo - LeapMotion - Replay — start LeapMotion controller application in replay mode.

    • -replay <path to _.lmstream file>_

    • -fps <1-150> — replay stream with the given frame per second

    • Replay commands:

      • replay - start continuous replay

      • pause - pause current replay

      • step - replay only the next frame from the current position

      • reset - Reset the replay - jump to the first frame

  • IoT CEP Demo - Drools — start the Drools Fusion component

  • IoT CEP Demo - Viatra CEP — start the Viatra CEP component