Task-Based Decision Making And Control Of Robotic Manipulators