pytransform3d.transformations.transform_from_pq

pytransform3d.transformations.transform_from_pq(pq)[source]

Compute transformation matrix from position and quaternion.

Parameters
pqarray-like, shape (7,)

Position and orientation quaternion: (x, y, z, qw, qx, qy, qz)

Returns
A2Barray-like, shape (4, 4)

Transformation matrix from frame A to frame B

Examples using pytransform3d.transformations.transform_from_pq