analyses/utils.py
def comdot_time_series(m: biorbd.Model, q: np.array, qdot: np.array):
    """
    Compute the comdot time series

    Parameters
    ----------
    m : biorbd.Model
        Biorbd Model
    q : numpy.array
        generalized coordinates
    qdot : numpy.array
        generalized velocities
    """
    n = q.shape[1]
    comdot = np.zeros((3, n))
    for ii in range(n):
        comdot[:, ii] = m.CoMdot(q[:, ii], qdot[:, ii], True).to_array()

    return comdot

    Compute the comdot time series

    Parameters
    ----------
    m : biorbd.Model
        Biorbd Model
    q : numpy.array
        generalized coordinates
    qdot : numpy.array
        generalized velocities
    
Compute the comdot time series
Parameters

m : biorbd.Model
Biorbd Model
q : numpy.array
generalized coordinates
qdot : numpy.array
generalized velocities
Compute the comdot time series Parameters m : biorbd . Model Biorbd Model q : numpy . array generalized coordinates qdot : numpy . array generalized velocities
def comdot_time_series(m: biorbd.Model, q: np.array, qdot: np.array):
    n = q.shape[1]
    comdot = np.zeros((3, n))
    for ii in range(n):
        comdot[:, ii] = m.CoMdot(q[:, ii], qdot[:, ii], True).to_array()
    return comdot
def comdot_time_series ( m : biorbd . Model , q : np . array , qdot : np . array ) : n = q . shape [ 1 ] comdot = np . zeros ( ( 3 , n ) ) for ii in range ( n ) : comdot [ : , ii ] = m . CoMdot ( q [ : , ii ] , qdot [ : , ii ] , True ) . to_array ( ) return comdot
Compute the comdot time series
Parameters
Compute the comdot time series Parameters
"""
    Compute the comdot time series

    Parameters
    ----------
    m : biorbd.Model
        Biorbd Model
    q : numpy.array
        generalized coordinates
    qdot : numpy.array
        generalized velocities
    """
m
biorbd.Model
q
np.array
qdot
np.array