Esempio n. 1
0
def set_mass(biorbd_model: biorbd.Model, value: MX):
    """
    The pre dynamics function is called right before defining the dynamics of the system. If one wants to
    modify the dynamics (e.g. optimize the gravity in this case), then this function is the proper way to do it.

    Parameters
    ----------
    biorbd_model: biorbd.Model
        The model to modify by the parameters
    value: MX
        The CasADi variables to modify the model
    """

    biorbd_model.segment(0).characteristics().setMass(value)
Esempio n. 2
0
def set_mass(biorbd_model: biorbd.Model, value: MX):
    biorbd_model.segment(0).characteristics().setMass(value)