Model-based manipulation of linear flexible objects