Use JointTranslation of dimension 2 and 3 for planar and freeflyer root.