TrajectoryPoint
One sample: its time and the value of every per-sample field at that time.
Full docstring
`header` is the trajectory's: `t` counts from its stamp, and its frame and meta say what the values are relative to. WHY a point carries it (ROS's points don't): a point taken out with `traj[i]` or `traj.at(t)` would otherwise lose its frame, origin and units.
Fields
| Name | Type | Default |
|---|---|---|
t | float | required |
channels | Mapping[str, Any] | {} |
header | Header | Header() |
Example
One instance from the package's own test catalog; the output is its real repr().
TrajectoryPoint(t=0.0, channels={'x': 1.0})to_dict() as JSON
{
"_type": "trajectory/TrajectoryPoint",
"t": 0.0,
"channels": {
"x": 1.0
},
"header": {
"_type": "std/Header",
"stamp": 0.0,
"frame_id": "",
"meta": {}
}
}Long arrays are cut after 16 values and say so with “…”.
Functions
Constructors
Classmethods and staticmethods: ways to build one.
Properties
Read-only views computed from the fields.
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.