def _get_all_motion_types(tr, motion_type):
    """ Get a dict of all motion types. First detrend """
    assert motion_type == 'velocity'
    tr.detrend('linear')
    acc = tr.copy()
    dis = tr.copy()
    dis.integrate()
    dis.detrend('linear')
    acc.differentiate()
    acc.detrend('linear')
    return dict(displacement=dis, velocity=tr, acceleration=acc)
