Wrench.from_data

classmethod Wrench.from_data(data)

Construct a wrench from its data representation.

Parameters

data (dict) – The data dictionary.

Returns

Wrench – The constructed wrench.

Examples

>>> data = {"force": [1, 2, 3], "torque": [0.1, 0.2, 0.3]}
>>> w = Wrench.from_data(data)