A Cognitive Robot Architecture Based on 3D Simulator of Robot and Environment