Obstacle Avoding Line Following Robot

Obstacles will be on the line and I want the servo motor turn 60 degree left

How will you determine when the 60 degree turn is complete?

robot will make a semi square

What does this mean? The robot can only move forward, turn left, and turn right. Describe what you want to do in terms of its capabilities.

But there will be also an obstacle when the robot avoiding from first obstacle. What should I do?

Go into battle bot mode, and shove it out of the way.