Wrench
- class compas_fab.robots.Wrench[source]
Bases:
Data
A wrench represents force in free space, separated into its linear (force) and angular (torque) parts.
Examples
>>> from compas.geometry import Vector >>> w = Wrench([1, 2, 3], [0.1, 0.2, 0.3]) >>> w = Wrench(Vector(1, 2, 3), Vector(0.1, 0.2, 0.3))
- Attributes:
- force
Vector
[Fx, Fy, Fz] force vector in Newtons
- torque
Vector
[Tx, Ty, Tz] moments vector in Newton-meters
- force
Methods
Construct the wrench by sampled data, allowing to filter.
Make a copy of this
Wrench
.Construct a wrench from a list of 6
float
values.Removes the force and torque in effect of gravity from the wrench.
Transforms a Wrench with the transformation.
Returns a transformed copy of the Wrench.
Inherited Methods
Converts the instance to a string.
Construct an object of this type from a JSON file.
Construct an object of this type from a JSON string.
Compute a hash of the data for comparison during version control using the sha256 algorithm.
Convert an object to its native data representation and save it to a JSON file.
Convert an object to its native data representation and save it to a JSON string.
Validate the data against the object's data schema.