Skip to main content

A python packege to get data from qualisys cameras

Project description

qualisys_python_IO

This repository provides an interface for connecting to and interacting with a Qualisys Motion Capture system. The main components include a Python class for handling the connection and data retrieval, and supporting functions for processing the motion capture data.

Files

  1. qualisys_io.py
    • Purpose: Manages the connection to the Qualisys system and handles the retrieval of position and rotation data.
    • Key Classes/Methods:
      • qualisys_io: Initializes the connection, starts/stops the data stream, and retrieves position and rotation data.
      • connect(): Starts the data streaming process.
      • stop(): Stops the data streaming and disconnects from the system.
      • get_position_rotation(): Retrieves the latest position and rotation data from the Qualisys system.
  2. lib.py
    • Purpose: Contains the underlying logic to connect to the Qualisys system and process 6DoF data.
    • Key Functions:
      • run(): Main loop to handle the real-time data processing and streaming.
      • create_body_index(): Parses the XML data to create a dictionary mapping body names to indices.
      • body_enabled_count(): Counts the number of enabled 6DoF bodies.
      • main(): Handles the connection to the Qualisys system, retrieves data, and processes it in real-time.

How to Use

example:

import time
from Qualisys_Python_IO import qualisys_tools

robo_position = qualisys_tools.qualisys_io("Robo01","192.168.0.26","password")

robo_position.connect()
time.sleep(1)
position,rotation = robo_position.get_position_rotation()
print(position,"\n",rotation)

robo_position.stop()

INSTALATION

pip install Qualisys-Python-IO

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

qualisys_python_io-0.0.3.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qualisys_python_io-0.0.3-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file qualisys_python_io-0.0.3.tar.gz.

File metadata

  • Download URL: qualisys_python_io-0.0.3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for qualisys_python_io-0.0.3.tar.gz
Algorithm Hash digest
SHA256 bcd17f949a597046db84b9d4b18e2f27b9d11f213ae1dad5fb180349082278c2
MD5 fc3eae57ce626608e12cb03e8ada3c6d
BLAKE2b-256 45cc6a9188db86b59f3268c3bab9ca8565dfb1c5bde9754eeadf384bfe15209f

See more details on using hashes here.

File details

Details for the file qualisys_python_io-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for qualisys_python_io-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 75b8ca10ac98aa098a51853078cd612196d04135f810643f1f16065bd75df2ce
MD5 087bcab65345f0ea33227065d127491d
BLAKE2b-256 8be6c4ad4148b0810e675212f05929cb42fa7972e50962aa81721e9f41278a85

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page