Pattern-oriented Implementation for Automatic and Deliberative Skills of a Mobile Robot