Implemented the point_robot_at_target function