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

  • PyQt6
  • 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.3.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: quat3d-0.3.3.tar.gz
  • Upload date:
  • Size: 5.2 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.3.tar.gz
Algorithm Hash digest
SHA256 e12636047691ff923059096b6cbb56926dff4a0c08b73d9c7eb30c3024fba46c
MD5 f8be91d922f097039f862fe52efc2ea5
BLAKE2b-256 4ea232bde70ff3e57d633be25022db066430b842eec36d2d038cd014ee05ec30

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quat3d-0.3.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 df2f40dff3b9e5df8368ba6354c5d5b7bde8744e20cd72fbd2e604a1bf6bc3ae
MD5 bc94918aac26e6eb7fea74e4608cff49
BLAKE2b-256 48c9bed476b0a6068616edc6c6da6f20b22582ce011c71032b0073afd83f9122

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