Wrench
- class compas_fab.robots.Wrench(force, torque)[source]
Bases:
object
A wrench represents force in free space, separated into its linear (force) and angular (torque) parts.
- Attributes
force (
Vector
) – [Fx, Fy, Fz] force vector in Newtonstorque (
Vector
) – [Tx, Ty, Tz] moments vector in Newton-meters
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))
Methods
Construct the wrench by sampled data, allowing to filter.
Make a copy of this
Wrench
.Construct a wrench from its data representation.
Construct a wrench from a list of 6
float
values.Removes the force and torque in effect of gravity from the wrench.
Returns the data dictionary that represents the wrench.
Transforms a Wrench with the transformation.
Returns a transformed copy of the Wrench.