pytransform3d.transform_manager.NumpyTimeseriesTransform#

class pytransform3d.transform_manager.NumpyTimeseriesTransform(time, pqs)[source]#

Bases: TimeVaryingTransform

Transformation sequence, represented in a numpy array.

The interpolation is computed using screw linear interpolation (ScLERP) method.

Parameters:
time: array, shape (n_steps,)

Numeric timesteps corresponding to the transformation samples. You can use, for example, unix timestamps, relative time (starting with 0).

pqsarray, shape (n_steps, 7)

Time-sequence of transformations, with each row representing a single sample as position-quarternion (PQ) structure.

__init__(time, pqs)[source]#

Methods

__init__(time, pqs)

as_matrix(query_time)

Get transformation matrix at given time.

check_transforms()

Checks all transformations.

as_matrix(query_time)[source]#

Get transformation matrix at given time.

Parameters:
query_timefloat

Query time

Returns:
A2B_tarray, shape (4, 4)

Homogeneous transformation matrix at given time.

check_transforms()[source]#

Checks all transformations.

Returns:
selfTimeVaryingTransform

Validated transformations.

Examples using pytransform3d.transform_manager.NumpyTimeseriesTransform#

Managing Transformations over Time

Managing Transformations over Time