Sensor-based learning for practical planning of fine motions in robotics