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