|
a |
|
b/Docs/Applications/Mocap/BVH.md |
|
|
1 |
--- |
|
|
2 |
gallery_title: "Inertial MoCap (Xsens)" |
|
|
3 |
gallery_image: "/Applications/images/BVH.webp" |
|
|
4 |
--- |
|
|
5 |
|
|
|
6 |
(sphx_glr_auto_examples_Mocap_plot_BVH.py)= |
|
|
7 |
(example_mocap_bvh)= |
|
|
8 |
# Inertial MoCap example |
|
|
9 |
|
|
|
10 |
````{sidebar} **Example** |
|
|
11 |
<img src="/Applications/images/BVH.webp" width="70%" align="center"> |
|
|
12 |
```` |
|
|
13 |
|
|
|
14 |
Example of a MoCap model using data from an inertial motion capture suit. |
|
|
15 |
The model uses a BVH file with data from an Xsens suit. The ground reaction |
|
|
16 |
forces are predicted using the GRF prediction algorithm. |
|
|
17 |
|
|
|
18 |
|
|
|
19 |
|
|
|
20 |
:::{seealso} |
|
|
21 |
**Main file Example:** |
|
|
22 |
|
|
|
23 |
{menuselection}`Application --> MocapExamples --> BVH_Xsens --> Subjects --> S1 --> S01_Trial01 --> Main.any` |
|
|
24 |
::: |
|
|
25 |
|
|
|
26 |
The model works using virtual markers placed on the BVH rig (i.e. the stick-figure |
|
|
27 |
model specified by the BVH file). The virtual markers are used to make the |
|
|
28 |
Musculoskeletal model moved similar to marker based MoCap models. |
|
|
29 |
|
|
|
30 |
AnyBody automatically calculates the virtual markers positions, and the model is scaled directly from |
|
|
31 |
the size of the BVH stick figure. Hence the model contains no *Parameter identification* step to find the parameters. |
|
|
32 |
The remaining parts of the model are equivalent to other {ref}`MoCap model <anymocap>` based on C3D files. |
|
|
33 |
|
|
|
34 |
|
|
|
35 |
|
|
|
36 |
:::{versionadded} 2.2.3 The example uses features added in v.7.2.3 of the AnyBody Modeling system. It fixes the problems which can occur in some BVH files due to gimbal locks and multiple solutions ($N2\pi$) to the euler angle equations. See the section below on how to update old examples. |
|
|
37 |
::: |
|
|
38 |
|
|
|
39 |
|
|
|
40 |
::::{dropdown} Updating old (ammr \< 2.2.3) BVH based models |
|
|
41 |
|
|
|
42 |
The safest approach is to reimplement your model based on the newest BVH example and AMMR v.2.3. |
|
|
43 |
|
|
|
44 |
However, it is also possible to change a few files in existing models to utilize the |
|
|
45 |
new BVH improvements in AnyBody v.7.3. |
|
|
46 |
|
|
|
47 |
:::{Important} |
|
|
48 |
Make sure your use the new AMMR (>=2.3) and new AnyBody Modeling System (>=7.3). |
|
|
49 |
You can copy your existing model folder into the new AMMR, or edit the local `libdef.any` file to point to the new AMMR. |
|
|
50 |
::: |
|
|
51 |
|
|
|
52 |
:::: |