Giter VIP home page Giter VIP logo

python-orientation-visualization-app's Introduction

ORIENTATION VISUALIZATION

๐Ÿ’ก About

The module that allows observing orientations through a 3D object from Euler angles or quaternion transmitted with WebSocket via wi-fi or serial port.

๐ŸŽฅ Preview

๐Ÿš€ Technologies

โœ‹ Warning

To use this module, remember that data must be transmitted via serial port or WIFI in string where each data has to be separated by a comma.

  • Quaternion

    "w,x,y,z"
    • Data example
      "00.0000000,00.0000000,00.0000000,00.0000000"
  • Euler angles

    "pitch,roll,yaw"
    • Data example
      "00.0000000,00.0000000,00.0000000"

โ„น๏ธ Getting Started

  1. Fork this repository and clone it on your machine.
  2. Change the directory to python-orientation-visualization-app where you cloned it.

โšก Module Getting Started

  1. Install requirements.
$ pi3 install -r requirements.txt
  1. Startup
$ python3 App.py
  • If you are going to use data transmission via Wifi, when connecting, keep in mind that the WebSocket server IP will be your machine's IP and port 8080.

Made with โ™ฅ๏ธ by Nelson Wenner ๐Ÿ‘‹ Get in touch!

python-orientation-visualization-app's People

Contributors

nelsonwenner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

python-orientation-visualization-app's Issues

AttributeError: 'NoneType' object has no attribute 'is_open'

In SerialCommands.py having an issue with this function:

def get_data(self):
if not self.serial.is_open:
return None
else:
return self.serial.readline().decode('utf-8').split(',')

getting this error:

AttributeError: 'NoneType' object has no attribute 'is_open'

NoneType object I'm believing is self.serial this could be my package but my pyserial is 3.5

opengles==0.0.1

I am getting following error on MacOS / Python 3.11 while installing requirements:

ERROR: Could not find a version that satisfies the requirement opengles==0.0.1 (from versions: none)
ERROR: No matching distribution found for opengles==0.0.1

Trouble sending data using WebSocket

Hello,

Thanks for making a nice visualizer. I am having trouble sending the correct format of data to the websocket. Do you have any example code of what the server side computing the quaternion should look like? i.e which libraries do I need to import/what commands do I need to run to send the data in the string specified format?

Thanks!

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.