Code Monkey home page Code Monkey logo

demonstration-interface's Introduction

Demonstration Interface

Basic Setup

Configuration can be found in src/config.py

Data Collection

Record a session using record_session.py:

$ python scripts/record_session.py

This will save the recordings in the following format:

data/
└─ session_YYYYMMDD_HHMMSS/
   └─ episode_YYYYMMDD_HHMMSS.h5

Development

Install the package in "editable" mode. This creates a symbolic link from the site-package directory to your development directory, allowing for direct changes.

$ pip install -e .

When working in ARM-based architectures (Jetson etc.) install HDF5 manually because h5py will try to build from source. Because there's no pre-built package for ARM computers yet.

$ sudo apt-get install libhdf5-dev
$ pip install h5py

Install Libcanberra for cv2 visualization

RealSense SDK on Jetson

Convenience script from JetsonHacks

Camera Web Viewer

Running the server and making it publicly available on your network:

$ export FLASK_APP=web_viewer/app.py
$ flask run --host=0.0.0.0 

demonstration-interface's People

Contributors

j4nn1k avatar

Stargazers

Leon Voland avatar

Watchers

 avatar

demonstration-interface's Issues

Serial connection does not work properly

Sometimes the byte sequence from the serial port can't be decoded:

Traceback (most recent call last):
  File "scripts/test_trigger.py", line 20, in <module>
    main()
  File "scripts/test_trigger.py", line 8, in main
    trigger.calibrate()
  File "/home/jannik/Repos/demonstration-interface/src/components/trigger.py", line 43, in calibrate
    value = self.get_adc_value()
  File "/home/jannik/Repos/demonstration-interface/src/components/trigger.py", line 53, in get_adc_value
    line = self.read_serial()
  File "/home/jannik/Repos/demonstration-interface/src/components/trigger.py", line 87, in read_serial
    line = self.ser.readline().decode().rstrip()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf8 in position 8: invalid start byte

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.