Changed state machine so that it should only move in SearchPattern state with motor commands from the search pattern node