Object creation
The starting point for working with Pyomeca is to create an object with one of the specific methods associated with the different classes available:
Pyomeca offers several ways to create these objects: from scratch, from random data, from files or from other data structures.
From scratch
The first way to create a data array in Pyomeca is to directly specify the data.
Example
From random data
We occasionally want to quickly create an object to test implementations or prototype new features. In this case, we could simply use random numerical values. Pyomeca offers a method for directly creating objects from random data.
Example
From files
Most of the time, we want to create objects from files collected during experimentation. Pyomeca supports most of the formats used in biomechanics.
Note
Pyomeca does not support a format you need? You can inform us by opening an issue or even submit a pull request to make your implementation available to the whole community!
Example
Example
Example
Example
Example
Example
From other data structures
We often have to switch between different representations of the same data. Pyomeca implements different matrix manipulation routines such as getting Euler angles or a marker to/from a rototranslation matrix.
Angles & Rototrans
Example
Markers & Rototrans
Example
Processed Rototrans
Example