A Heuristic approach to automatic grasp planning for a 3-fingered hand