In the following class we found two term :
class InertiaParametersTemplate:
def __init__(
self,
mass: Callable = None,
center_of_mass: Callable = None,
inertia: Callable = None,
):
"""
This is a pre-constructor for the InertiaParametersReal class. It allows to create a
generic model by marker names
Parameters
----------
mass
The callback function that returns the mass of the segment with respect to the full body
center_of_mass
The callback function that returns the position of the center of mass
from the segment coordinate system on the main axis
inertia
The callback function that returns the inertia xx, yy and zz parameters of the segment
"""
self.relative_mass = mass
self.center_of_mass = center_of_mass
self.inertia = inertia
==> why having the name of the attribute being relative_mass when the name of the parameter is mass ?
In the following class we found two term :
==> why having the name of the attribute being relative_mass when the name of the parameter is mass ?