Robot: Line follower - Obstacle avoidance - High Speed

So line leads to obstacle. Robot is supposed to leave line, turn 90 degrees, drive along a circle with some radius. Some 180 degrees or until line is detected.

Can the robot turn its obstacle sensor to the sides? Can the line sensor sweep over say a 45 degree sector in front of the robot?