gallery_title: "Posture Prediction Model"
gallery_image: "/Applications/images/StandingPosturePredictionModel.webp"
(sphx_glr_auto_examples_adls_and_ergonomics_plot_PosturePredictionModel.py)=
(example_posture_prediction)=
````{sidebar} Example
````
This is a model which can predict the posture as a consequence of applied loads in hands.
It does this by minimizing joint torques and applying balance drivers which account for external
applied loads.
:::{seealso}
Main file location in AMMR:
{menuselection}Application --> Examples --> StandingPosturePredictionWithLoad -->
StandingPosturePrediction.main.any
:::
:::{figure} /Applications/images/StandingPosturePredictionModel_UpwardsForce.jpg
:align: center
:::
Two type of loads can be applied, either a fixed weight of the object and/or a force vector.
:::{figure} /Applications/images/StandingPosturePredictionModel_UponLoading.jpg
:align: center
:::
The example model has a force vector applied on the object, currently the object has no weight (this is editable)
AnyVar ObjectWeight = 0; //weight of mass applied
:::{figure} /Applications/images/StandingPosturePredictionModel_WidgetMovement.jpg
:align: center
:::
:::{figure} /Applications/images/StandingPosturePredictionModel_PickupBox.jpg
:align: center
:::
There are three remaining widgets, 2 controlling the starting position of the feet, and 1 controlling object's location.
:::{figure} /Applications/images/StandingPosturePredictionModel_FootWidgets.jpg
:align: center
:::
The model can also be adjusted to apply the load to both hands or a single hand.
Three combinations can be made using the define statements
#define LoadInRightHand 1
#define LoadInLeftHand 1
In the following example a force vector is applied to only the right hand.
:::{figure} /Applications/images/StandingPosturePredictionModel_Onearm.jpg
:align: center
:::
The following video shows an example of how you can manipulate the multiple widgets to achieve different predictive postures:
```{raw} html
```
Please note the speed of the video was increased for viewing purposes.