Skip to main content

This is a sensor data oscilloscope for xkit.

History

  • V1.0.0
    • Real-time sensor data plotting
    • Supports plotting up to 16 data
    • Support plotting selection
    • Supports saving collected data as csv format file
    • UDPServer or MulticastReceiver

Install

pip install quat

Dependencies

  • PySide6
  • PythonQwt
  • numpy
  • genlib

Run

UDP Server (default port 7321)

smon

MulticastReceiver (default group 239.8.7.6, default port 7321)

smon --mcast

options
--mcast --group=<group> (default 239.8.7.6) --iport=<port> (default 7321) --log=<stream | file>

Client Implementations

  • UDPClient or MulticastSender

sensor data format

x, y, z, ...

Example

import time
from genlib.upd import UDPClient
from pop.ext import IMU

imu = IMU()
udp = UDPClient()

SMON_IP = '192.168.0.100'
SMON_PORT = 7321

while True:
    w, x, y, z = imu.read(IMU.QUATERNION)
    data = "{},{},{},{},".format(w, x, y, z)
    x, y, z = imu.read(IMU.ACCELERATION)
    data += "{},{},{},".format(x, y, z)
    x, y, z = imu.read(IMU.GYROSCOPE) 
    data += "{},{},{},".format(x, y, z)
    x, y, z = imu.read(IMU.MAGNETIC)
    data += "{},{},{},".format(x, y, z)
    x, y, z = imu.read(IMU.EULER)
    data += "{},{},{}".format(x, y, z)

    udp.sendTo(data.encode(), (SMON_IP, SMON_PORT))
    time.sleep(20/1000)  

Metadata

Release files for smon 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for smon 1.1.0
File Size Uploaded
smon-1.1.0.tar.gz 42.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for smon 1.1.0
File Interpreter ABI Platform
smon-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 83.1 kB

Release files / smon-1.1.0.tar.gz

Download URL smon-1.1.0.tar.gz
Size 42.2 kB
Tags Source
SHA-256 checksum
How to use checksums
536578fdb192fca1e8c2124c4fd382ab3c78c056a478e272f0c8b44cb7d56395
BLAKE2b-256 checksum
How to use checksums
a85bb1b5e321afea97d5e30b1439c8a82297e0fb7d92938c4ac68039df4059ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.9

Release files / smon-1.1.0-py3-none-any.whl

Download URL smon-1.1.0-py3-none-any.whl
Size 40.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b562ee7bcec3a171399f1c84a934dd7a56f2500050a343bc5efb4606aba6a811
BLAKE2b-256 checksum
How to use checksums
031534c3ff962f8107843c2f863d70480fb7299740819b88dfa13d90d90208df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page