PoseTrajectoryPoint
No docstring in robot_msgs yet.
Fields
| Name | Type | Default |
|---|---|---|
t | float | required |
channels | Mapping[str, Any] | {} |
header | Header | Header() |
position | Array | None | None |
orientation | Array | None | None |
linear_velocity | Array | None | None |
angular_velocity | Array | None | None |
Example
One instance from the package's own test catalog; the output is its real repr().
PoseTrajectoryPoint(t=0.5, header=Header(stamp=0.0, frame_id='base_link'), position=[ 0.4 , -0.1 , 0.15], orientation=[-0.0353, 0.7062, 0.1749, 0.6851], linear_velocity=[0., 0., 0.], angular_velocity=[0., 0., 0.])to_dict() as JSON
{
"_type": "trajectory/PoseTrajectoryPoint",
"t": 0.5,
"channels": {},
"header": {
"_type": "std/Header",
"stamp": 0.0,
"frame_id": "base_link",
"meta": {}
},
"position": {
"dtype": "<f8",
"shape": [3],
"data": [0.4, -0.1, 0.14999999999999997]
},
"orientation": {
"dtype": "<f8",
"shape": [4],
"data": [-0.035340609509366974, 0.7062230818371108, 0.17494101728127348, 0.6851245437674769]
},
"linear_velocity": {
"dtype": "<f8",
"shape": [3],
"data": [0.0, 0.0, 0.0]
},
"angular_velocity": {
"dtype": "<f8",
"shape": [3],
"data": [2.7755575615628914e-17, 6.938893903907228e-17, 0.0]
}
}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.