Replace wooden closet rods

Hello,

The closets in my house have cyclindrical wooden rods. There is a socket on each end of the closet for the rod to feed into as well as metal hooks which are meant to support them. The rods have started to bow over time due to the weight of the clothes and need to be replaced. I was wondering if I just took measurements of the rods (e.g. the diameter & length of each, would I be able to go to a lumber place and have them create new rods for me? Would a lumber yard be able to re-create cylindrical rods like this (sanded and everything)? I wouldn't want to have the rods made & then find out that they don't fit... Any advice would be greatly appreciatd.

A while back a heard a crash in my closet. Guess what, it was the wooden rod broken in half from the weight of the clothes. I made a quick measurement of the rod length - wall to wall, took the rod to work, asked my boss for a piece of gas iron pipe which HD sells, but we had it in stock at the office warehouse. (Funny, he already knew what my problem was as his wife had the same incident happen a week earlier) Voila!!! It is not the prettiest rod but, after 5 years of holding my clothes, no bending breaking or crashing. I now have gas pipe in all of my closets.