VrepClient.get_object_matrices

VrepClient.get_object_matrices(object_handles)[source]

Gets a dictionary of matrices keyed by object handle.

Args:
object_handles (list of float): List of object handles (identifiers)

to retrieve matrices from.

Returns:

dict: Dictionary of matrices represented by a list of 12 float values.

Examples:

>>> from compas_fab.backends import VrepClient
>>> with VrepClient() as client:
...     matrices = client.get_object_matrices([0])
...     print([int(i) for i in matrices[0]])   
[0, 0, 0, 19, 0, 0, 0, 10, 0, 0, 0, 6]         

Note

The resulting dictionary is keyed by object handle.