robot_msgs

PoseTrajectoryPoint

No docstring in robot_msgs yet.

Import
from robot_msgs.trajectory import PoseTrajectoryPoint
ROS 2no ROS equivalent

Fields

NameTypeDefault
tfloatrequired
channelsMapping[str, Any]{}
headerHeaderHeader()
positionArray | NoneNone
orientationArray | NoneNone
linear_velocityArray | NoneNone
angular_velocityArray | NoneNone

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.

from_dict

from Msg
from_dict(data: Mapping[str, Any]) -> M

No docstring.

Properties

Read-only views computed from the fields.

pose: Pose

No docstring.

time_from_start: float

ROS's name for t.

Methods

Return new values; messages are never mutated.

replace

from Msg
replace(**changes: Any) -> M

A copy with some fields changed. Validation runs again.

to_dict

from Msg
to_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.

__getitem__(name: str) -> Any

No docstring.

Uses

Types its fields refer to.

Header

Extends

The base class it specialises.

TrajectoryPoint

Sample of

The trajectory whose samples this is.

PoseTrajectory

robot_msgs 0.1.0 @ 2dc6666GitHub · MIT license · generated from the package, not written per type