Point
Metres. Arithmetic returns Point, as the ROS type has no separate displacement type.
Fields
| Name | Type | Default |
|---|---|---|
x | float | 0.0 |
y | float | 0.0 |
z | float | 0.0 |
Example
One instance from the package's own test catalog; the output is its real repr().
Point(x=0.1, y=0.2, z=0.3)to_dict() as JSON
{
"_type": "geometry/Point",
"x": 0.1,
"y": 0.2,
"z": 0.3
}Long arrays are cut after 16 values and say so with “…”.
Functions
Constructors
Classmethods and staticmethods: ways to build one.
Methods
Return new values; messages are never mutated.
to_dict
from Msgto_dict() -> dict[str, Any]JSON-safe dict with a "_type" key; arrays keep their dtype and shape.
Operators
Python operators and protocols the type supports.