This study investigates the 2-D relative localization problem, which estimates the relative orientation and position between two moving robots using inter-robot range measurements. We propose a novel formulation and a robust weighted semidefinite relaxation solution for the relative localization problem in the presence of range measurement error and robot state transition error. Theoretical analysis and simulations show that the weighted semidefinite relaxation solution achieves Cramér–Rao lower bound performance when the measurement noise and the odometry uncertainty follow Gaussian distributions with moderate noise power. Demonstrations using data from a laboratory environment validate the promising and robust performance of the weighted semidefinite relaxation method. The root-mean-square errors in estimating the orientation and position are <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><tex-math notation="LaTeX">$3.97^\circ$</tex-math></inline-formula> and 0.22 m with affordable hardware.