Perception and Controls for Task-Flexible Manufacturing Robots