Metric Relations and Displacement Groups in Mechanism and Robot Kinematics