Posture regularization (calc_posture)
Joint-space term folded into the reduced RHS.
τpost=−kqqerr−dqq˙qerr=atan2(sin(q−qref),cos(q−qref))
Lifted to the reduced space via the transposed coordinate transform:
RHSpost=[Γ−⊤[06τpost]]3:
(wrapped revolute error avoids 2π discontinuities)