This is an IMU quaternion data visualization tool for xkit.
Project description
This is an IMU quaternion data visualization tool for xkit.
History
- V1.0.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 (default port 7321)
quat
MulticastReceiver (default group 239.8.7.6, default port 7321)
quat --mcast
options
--mcast
--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-1.0.0.tar.gz
(16.7 MB
view details)
Built Distribution
quat3d-1.0.0-py3-none-any.whl
(16.7 MB
view details)
File details
Details for the file quat3d-1.0.0.tar.gz
.
File metadata
- Download URL: quat3d-1.0.0.tar.gz
- Upload date:
- Size: 16.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f6c49e28329d6cceb25789ef239a0c404775042a5fce421e5747cc16fdc5d2c |
|
MD5 | fb923ed7ffc92be7ffe654f89288c398 |
|
BLAKE2b-256 | 94e73aa77bb2cf285de7795d597741de32e957751efe087f29f368bae64cef07 |
File details
Details for the file quat3d-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: quat3d-1.0.0-py3-none-any.whl
- Upload date:
- Size: 16.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5578a81a38f7a1ecb188c3ae02697f5a9b8a01ad775011382c402e6b27292a99 |
|
MD5 | 955ec02b54aee0f77f019c3fbc0be91a |
|
BLAKE2b-256 | 4e3081efabf685651f87482bbe95a245fc4088e6d50b3ce01fb240604339acc2 |