The Human Model Generator is a Python-based tool designed to generate anthropometric human whole-body models in the Unified Robot Description Format (URDF) standard, suitable in robotics for motion analysis and simulation applications.
The movement of the human body is made possible through the synergistic action of the nervous, muscular, and skeletal systems. The nervous system sends signals to the muscles, causing them to contract and exert forces on the skeletal system. This intricate interaction between these systems enables complex and coordinated motions. Musculoskeletal models offer a valuable approximation of the human anatomy and they are used extensively in fields like biomechanics, robotics, and computer simulations to study and mimic human movement. Muscle modeling is essential for a comprehensive understanding of human movement. This involves the simulation of the behavior of muscles, including their activation patterns, force production, and interaction with the skeletal system. Accurate muscle models can predict how whole-body movement and performance are affected by changes in muscle strength, coordination, and fatigue. However, for a more accurate representation, additional data is required to customize models for different subjects, such as inertial parameters of body segments and anthropometric measurements. Therefore, the goal of the HMG is to develop an advanced human model that integrates both skeletal and muscular information. This model not only includes detailed anatomical and inertial data, but it is also scalable to accommodate the specific features of each human subject. The HMG also incorporates meshes for both the links and muscles, which are modeled to enhance the visual and physical representation of the human body.
This library requires the following dependencies:
Installation with conda (recommended)
Create and activate a brand new enviroment with the required dependencies:
conda create -n hmgenv python numpy urchin idyntree urdf-modifiers
conda activate hmgenv
git clone https://github.com/ami-iit/human-model-generator.git
cd human-model-generator/code
- Open the file
config.py
with a text editor - Manually modify the parameters according to the human subject anthropometric measurements (see this file)
- Generate the model by running
python main.py
- The URDF model will be saved in the folder
models/humanModels
The meshes for the links are derived from the Blendswap model under the CC-BY license, whereas the meshes for the muscles are derived from BodyParts3D and Blendswap, both under the CC-BY-SA license. All the meshes were trimmed, morphed, and totally or partially reconstructed to achieve the desired shape and topology.