This is the main statemachin for ROS based robocars implementation.