GithubHelp home page GithubHelp logo

iiot-demo-opendds's Introduction

iiot-demo-opendds

Install and Run Steps

  1. Prerequisites
  • Node.js version 6.x (LTS version at this time) is required.

  • The V8 Javascript Engine header file (v8.h) is required. On Debian-based Linux systems install the package libv8-dev. Other Linux distros may use different package names. On Windows, Node.js's node-gyp module includes v8.h so a separate install is not needed.

  1. Build OpenDDS

Linux:

  $ git clone -b latest-release https://github.com/objectcomputing/OpenDDS.git
  $ cd OpenDDS
  $ ./configure --no-tests --macros=CCFLAGS+=-std=c++11
  $ make
  $ cd ..

Windows:

  > git clone -b latest-release https://github.com/objectcomputing/OpenDDS.git
  > cd OpenDDS
  > configure --no-tests
  > msbuild DDS_TAOv2.sln /p:Platform=x64;Configuration=Release
  > :: Use Platform=Win32 if Node.js is 32-bit and Platform=x64 if Node.js is 64-bit
  > cd ..
  1. Build shared library and publishing application

Linux:

  $ source OpenDDS/setenv.sh
  $ export V8_ROOT=/usr # assuming /usr/include/v8.h exists
  $ export NAN_ROOT=`pwd`/node_modules/nan
  $ npm install
  $ mwc.pl -type gnuace -exclude OpenDDS
  $ make

Windows: (adjust versions of Node.js and Visual Studio as necessary)

  > set V8_ROOT=%USERPROFILE%\.node-gyp\6.12.3
  > set NAN_ROOT=%CD%\node_modules\nan
  > npm install
  > mwc.pl -type vc14 -exclude OpenDDS
  > msbuild iiot_demo_opendds.sln /p:Platform=x64;Configuration=Release
  1. Run the node server which acts as a DDS subscriber (Environment from step 2 must still be set)

Linux:

  $ cd server
  $ npm install
  $ node main.js -DCPSConfigFile ../rtps_disc.ini

Windows:

  > cd server

 if the Release configuration was built:
  > npm install opendds --lib_suffix=

 if the Debug configuration was built:
  > npm install opendds --debug --lib_suffix=d

  > npm install
  > node main.js -DCPSConfigFile ../rtps_disc.ini
  1. Run the publisher (Environment from step 2 must still be set)

Linux:

  $ bin/NexmatixMockPublisher -DCPSConfigFile rtps_disc.ini

Windows:

  > bin\NexmatixMockPublisher -DCPSConfigFile rtps_disc.ini
  1. Run the webapp

Edit public/config.json to have the correct URL for your server

 $ npm run build-css
 $ npm start

The web server is running on port 3000

iiot-demo-opendds's People

Contributors

mitza-oci avatar huangminghuang avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.