added ros parameter to disable user input thread.