Construct semicircles on both sides of a line segment with each as the diameter (as shown in the figure). Then the length of this curve is $\qquad$

Translate the text above into English, please keep the original text's line breaks and format, and output the translation result directly.
1. $\frac{1}{2} \pi a$.