rotate and deviate and avoid obstacles