Achieving dextrous grasping by integrating planning and vision-based sensing