Skip to main content

This is an IMU quaternion data visualization tool for xkit.

Project description

This is an IMU quaternion data visualization tool for xkit.

History

  • V0.3.0
    • Implementing 3D visualization with OpenGL
    • STL file included(jet.stl)
    • UDPServer or MulticastReceiver

Install

pip install quat

Dependencies

  • PySide6
  • PyOpenGL
  • pyqtgraph
  • numpy-stl
  • genlib

Running

UDP Server (port 7321)

quat

MulticastReceiver (group 239.8.7.6, port 7321)

quat --mcast

etc
--group=<group>
--iport=<port>
--log=<stream | file>

Client Implementations

  • UDPClient or MulticastSender

quaternion data format

w, x, y, z

Example

import time
from genlib.upd import UDPClient
from pop.ext import IMU

imu = IMU()
udp = UDPClient()

QUAT_IP = '192.168.0.100'
QUAT_PORT = 7321

while True:
    w, x, y, z = imu.read(IMU.QUATERNION)
    udp.sendTo(f"{w}, {x}, {y}, {z}".encode(), (QUAT_IP, QUAT_PORT))
    time.sleep(20/1000)  

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quat3d-0.3.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

quat3d-0.3.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file quat3d-0.3.0.tar.gz.

File metadata

  • Download URL: quat3d-0.3.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for quat3d-0.3.0.tar.gz
Algorithm Hash digest
SHA256 ef3b042952e567467bda81d4c0ffddddd418dd7d9047ddb68816b04fb93aaac4
MD5 118460ccfeb4e406d49dd41e61a0678b
BLAKE2b-256 ae13a68e62fe318fd31f8316a4c18c3ebdac4493a08d24867aaac9bb72c44be5

See more details on using hashes here.

File details

Details for the file quat3d-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: quat3d-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for quat3d-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 06ce4733e445c3c7bdd0bb015bfc194fb9af2e1f381e5d502912129f20f7aeb2
MD5 10bac58b8c3a73164ea64b1a9acfa1c8
BLAKE2b-256 d99463296ca39c8ba3ec3d49d57fc356fb2a289152be0fa91e77a69f444a6ff4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page