def get_foot_trajectory(data, header, foot):
    """Get the trajectory of the foot translations."""
    tx = header.index(foot + "_tx")
    ty = header.index(foot + "_ty")
    tz = header.index(foot + "_tz")
    return data[:, [tx, ty, tz]]