Pose2D
Metres and radians; theta is the heading about +Z, stored as given (not wrapped).
Fields
| Name | Type | Default |
|---|---|---|
x | float | 0.0 |
y | float | 0.0 |
theta | float | 0.0 |
Example
One instance from the package's own test catalog; the output is its real repr().
Pose2D(x=1.0, y=2.0, theta=0.5)to_dict() as JSON
{
"_type": "geometry/Pose2D",
"x": 1.0,
"y": 2.0,
"theta": 0.5
}Long arrays are cut after 16 values and say so with “…”.
Functions
Constructors
Classmethods and staticmethods: ways to build one.