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.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: quat3d-0.3.1.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.1.tar.gz
Algorithm Hash digest
SHA256 920836203e29cda6b8043ed7ce2e07ada886a16e46f1ba29b655b99993d1d9a8
MD5 ccb9c69e8145a88f694aec70143371b6
BLAKE2b-256 d8c264b0c75540b423e0b5b3457d00a1ed6c157a91fb4a6fbbde1ec235b1485a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quat3d-0.3.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7a4651bfe267f74e10a2ef75c660caefebfbed999aa60c599d80655453620b4a
MD5 0501c4c2a80bc6583801f6c99e12a062
BLAKE2b-256 cec45a6b971925078d442e6464b84f526d17daa9aaaad26bfe6f20d87d541ad3

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