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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: quat3d-0.3.2.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.2.tar.gz
Algorithm Hash digest
SHA256 5254e536c2a38040fb2ecf4e0a937997aad219b0b4c32a48efc74da12b1b4e66
MD5 abb88d67cfaa3f1532f9922b20202521
BLAKE2b-256 bee8287dc9044965229b3d7d765c4f92b595d52916b374e197199fd2a472504a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quat3d-0.3.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 10d539e5629c920281bbdc77d0e40e0a1eb7b3321cc927a41675b7fc12ba6659
MD5 998f0aa0b1a864d2191d960bf3df7316
BLAKE2b-256 11e3218d646858ba3deb32b70a3239d59b7fabf7d0f3f98a1efab87fcd42ae34

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