Take measurements at the top, middle and bottom of the wall. Use the smallest clear dimension when planning the wardrobe.
Measurement Guides
How to Measure Your Space Before Buying a Wardrobe
Measure width, height, depth and access paths correctly before choosing.