pytransform3d.transformations.transform#

pytransform3d.transformations.transform(A2B, PA, strict_check=True)[source]#

Transform point or list of points or directions.

Parameters:
A2Barray-like, shape (4, 4)

Transform from frame A to frame B

PAarray-like, shape (4,) or (n_points, 4)

One of multiple points or directions in frame A that are represented by homogeneous coordinates.

strict_checkbool, optional (default: True)

Raise a ValueError if the transformation matrix is not numerically close enough to a real transformation matrix. Otherwise we print a warning.

Returns:
PBarray-like, shape (4,) or (n_points, 4)

One of multiple points or directions in frame B that are represented by homogeneous coordinates.

Raises:
ValueError

If dimensions are incorrect

See also

pytransform3d.transformations.vector_to_point

Convert one 3D vector to a point in homogeneous coordinates.

pytransform3d.transformations.vectors_to_points

Convert 3D vectors to points in homogeneous coordinates.

pytransform3d.transformations.vector_to_direction

Convert one 3D vector to a direction in homogeneous coordinates.

pytransform3d.transformations.vectors_to_directions

Convert 3D vectors to directions in homogeneous coordinates.

Examples using pytransform3d.transformations.transform#

Transform Concatenation

Transform Concatenation

Managing Transformations over Time

Managing Transformations over Time

Visualize Wrench

Visualize Wrench