Safe motion control and planning for autonomous racing vehicles