VrepClient.get_object_matrices
- VrepClient.get_object_matrices(object_handles)[source]
Gets a dictionary of matrices keyed by object handle.
- Parameters
object_handles (
listoffloat) – List of object handles (identifiers) to retrieve matrices from.- Returns
dict – Dictionary of matrices represented by a
listof 12floatvalues.
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.