Accel
Linear and angular acceleration 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().
Accel(linear=Vector3(x=0.0, y=0.0, z=9.81))to_dict() as JSON
{
"_type": "geometry/Accel",
"linear": {
"_type": "geometry/Vector3",
"x": 0.0,
"y": 0.0,
"z": 9.81
},
"angular": {
"_type": "geometry/Vector3",
"x": 0.0,
"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.