PyMoCapViewer Documentation
PyMoCapViewer is a Python package designed to visualize motion capture data in a user-friendly and interactive manner. It allows you to load various mocap file formats, animate the skeleton, and control the viewing experience with keyboard shortcuts.
Installation
You can install PyMoCapViewer using pip:
pip install PyMoCapViewer
Keyboard Shortcuts
The following keyboard shortcuts are available for interacting with PyMoCapViewer:
| Key | Action |
|---|---|
| Space | Play/pause animation |
| s | Capture screenshot |
| Enter | Capture Screenvideo |
| i | Print current frame number |
| 0 | Jump to first frame |
| Left/Right Arrow | Previous/Next frame |
| Left Mouse Button | Interact with scene |
| q | Quit application |
Example Usage
Load the kinematic data as a Pandas Dataframe. The columns should contain the joints in the following format: J1 (x), J1 (y), J1 (z), ..., JN (x), JN (y), JN (z).
from PyMoCapViewer import MoCapViewer
from PyMoCapViewer.examples import get_azure_data, get_vicon_data
df_pos, df_ori = get_azure_data()
viewer = MoCapViewer(sphere_radius=0.01, sampling_frequency=30)
viewer.add_skeleton(df_pos, skeleton_connection="azure", skeleton_orientations=df_ori, orientation="quaternion")
viewer.show_window()
df = get_vicon_data()
viewer = MoCapViewer(sphere_radius=0.01, sampling_frequency=100)
viewer.add_skeleton(df, skeleton_connection="vicon", color="red")
viewer.show_window()
Release files for PyMoCapViewer 0.0.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pymocapviewer-0.0.15.tar.gz | 12.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| PyMoCapViewer-0.0.15-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.5 kB
Release files / pymocapviewer-0.0.15.tar.gz
| Download URL | pymocapviewer-0.0.15.tar.gz |
|---|---|
| Size | 12.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3ec52426e6fe31f30d6cf96838adb235a580dedcb766126c58291a77b1484c67
|
|
BLAKE2b-256 checksum How to use checksums |
5c89832d44b84ce4c196941540e3005bc1024a3b2c995207ef5398d4c83a9298
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Release files / PyMoCapViewer-0.0.15-py3-none-any.whl
| Download URL | PyMoCapViewer-0.0.15-py3-none-any.whl |
|---|---|
| Size | 13.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4fad6f97de5e9a803fb218a19dbda78e8e56d80b6506814e319b5e4e99b9af0b
|
|
BLAKE2b-256 checksum How to use checksums |
cd889e668740ace4bc6d524abc2c1827adbe8bef41e2bca4c5b33114f9f2ae8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|