Skip to main content

To use this mvnx parser

To install this mvnx parser:

pip install mvnx_parser

To use this tool:

import mvnx_parser
my_data = mvnx_parser.Mvnx_p(<path/to/your/mvnx/file.mvnx>)

You can then either access the data through the frames list that has all the data of all normal frames, or through the item lists if you want to have all data of one item (for example orientation, or position). You can also get some data from the header frames.

Normal frames

The frames start at 0 and go up to how ever many frames you have -1. Therefore to get for example the 2. frame:

my_data.frames[1]

To get a whole item, for example orientation from the 2. frame:

my_data.frames[1]["orientation"]

To get the orientation of the first joint of the 2. frame:

my_data.frames[1]["orientation"][0]

Item lists

To access all data of one item (for example "orientation"):

my_data.orientation

To get the data of the first frame of the item orientation you would write:

my_data.orientation[0]

Header frames

There are three frames in the mvnx file written in front of the normal frames with the types: "identity", "tpose" and "tpose-isb".
You can access them by:

my_data.identity
my_data.tpose
my_data.tpose_isb

If you want to access for example the first orientation of tpose:

my_data.tpose["orientation"][0]

The data structure

frames list

frames is the list with all the frames of the type "normal" which are all the frames of the xsens recording. This list contains each frame as a dictionary.
Here is the structure it uses (Stuff behind a "#" are comments I wrote in here to explain the structure better):

[ #list of all frames
  { #dictionary with all item names of one frame as keys and the item data as values
    <item_name01>: 
      [ #list of data or in most cases groups of related data (coordinates with x, y, z or x, y, z, w)
        [x, y, z], [x, y, z], ... #just as an example
      ],
    <item_name02>:
      [ 
        [x, y, z], [x, y, z], ... #just as an example
      ]
    ...
  },
  {...},
  ...
]

item lists

The item lists contain the values of each item per frame. (It's a list of frames with lists of value(groups)).
It's structure looks like follows (Stuff behind a "#" are comments I wrote in here to explain the structure better):

[ #list of frames
  [#list of grouped item values of the first frame
    [x, y, z], #just as example group/list
    [x, y, z],
    [...],
    ...
  ],
  [#list of grouped item values of the second frame
    [x, y, z], #just as example group/list
    [x, y, z],
    [...],
    ...
  ],
  [...],
  ...
]

header dictionaries

The header dicts look like the following:

{ #dictionary with item names as keys and their data as values
  <item_name01>: [ #list of data groups
    [x, y, z, w],
    [...],
    ...
  ],
  <item_name02>: [
    [...],
    ...
  ],
  ...
}

Metadata

Release files for mvnx-parser 0.0.5

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

Source distribution (sdist)

Source distribution for mvnx-parser 0.0.5
File Size Uploaded Provenance Actions
mvnx_parser-0.0.5.tar.gz 15.6 kB Without provenance Details for mvnx_parser-0.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mvnx-parser 0.0.5
File Interpreter ABI Platform Actions
mvnx_parser-0.0.5-py3-none-any.whl Python 3 none any Details for mvnx_parser-0.0.5-py3-none-any.whl

Total release size: 32.0 kB

Release files / mvnx_parser-0.0.5.tar.gz

Download URL mvnx_parser-0.0.5.tar.gz
Size 15.6 kB
Tags Source
SHA-256 checksum
How to use checksums
cae37042d61dde0d47698fbb0e62a6d324dc22da07485012f1f5b76028bb235d
BLAKE2b-256 checksum
How to use checksums
6113019b68af956b7d74a26d11d4f7425777f80ef60eaf876f0ddc4db350dc7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / mvnx_parser-0.0.5-py3-none-any.whl

Download URL mvnx_parser-0.0.5-py3-none-any.whl
Size 16.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e0c762c9a34b8873e936938087a71b872d0957ed98d41d2f86c914d8bac30e35
BLAKE2b-256 checksum
How to use checksums
ab0b746e8cee596813859651a7e26bdf7eca006b58b7b02105cf2a6ffe5e3c5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Security for mvnx-parser 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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