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.4.tar.gz
(16.7 MB
view details)
Built Distribution
File details
Details for the file quat3d-0.3.4.tar.gz
.
File metadata
- Download URL: quat3d-0.3.4.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 | 5af00525164b675013b200e59500025f94ee2df589a6f0e98cd1bd98fcabb3ca |
|
MD5 | e2f5c260d3249cdc79e654782f5508e9 |
|
BLAKE2b-256 | 6131a5e2a47e5288a988149613961e21844b903275c3fa5a070aaa47421769d9 |
File details
Details for the file quat3d-0.3.4-py3-none-any.whl
.
File metadata
- Download URL: quat3d-0.3.4-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 629202dfc97bd55b8c192d3a30e8dc1378a9923cabc1f3efef4c8e7ea33c58f7 |
|
MD5 | 210e0edc2643f4e9f08b58777b941e94 |
|
BLAKE2b-256 | 1ddc684fa1e18526927e30065fafc0ec7fb30d8ca69a76591089b551d575e014 |