Wrench
Force (N) and torque (N·m) applied to a body, both in the frame the header names.
Fields
| Name | Type | Default |
|---|---|---|
force | Vector3 | Vector3() |
torque | Vector3 | Vector3() |
Example
One instance from the package's own test catalog; the output is its real repr().
Wrench(force=Vector3(x=0.0, y=0.0, z=-9.81), torque=Vector3(x=0.1, y=0.0, z=0.0))to_dict() as JSON
{
"_type": "geometry/Wrench",
"force": {
"_type": "geometry/Vector3",
"x": 0.0,
"y": 0.0,
"z": -9.81
},
"torque": {
"_type": "geometry/Vector3",
"x": 0.1,
"y": 0.0,
"z": 0.0
}
}Long arrays are cut after 16 values and say so with “…”.
Functions
Constructors
Classmethods and staticmethods: ways to build one.