newton.core.transform_wrench#

newton.core.transform_wrench(t, x)[source]#

Transform a spatial wrench between coordinate frames.

A spatial wrench is the dual vector to a spatial twist and consists of a torque-force pair x = (τ, f).

Given a wrench expressed in the source frame and a transform t (source → destination), this function returns the equivalent wrench in the destination frame:

\[x' = egin{bmatrix} R & [p]_{ imes} R \ 0 & R \end{bmatrix} x\]
Parameters:
  • t (transform) – The transform from the source frame to the destination frame.

  • x (spatial_vector) – The spatial wrench expressed in the source frame.

Returns:

The wrench expressed in the destination frame.

Return type:

spatial_vector