Integrating A* with camera