robot_msgs

PoseTolerance

Limits on a pose error's magnitudes: position (m) and rotation angle (rad).

Full docstring
Same rule as `JointTolerance`: above 0 is a limit, 0 or -1 is not checked.
Import
from robot_msgs.compare import PoseTolerance
ROS 2no ROS equivalent

Fields

NameTypeDefault
positionfloat0.0
rotationfloat0.0

Example

One instance from the package's own test catalog; the output is its real repr().

PoseTolerance(position=0.005, rotation=0.02)
to_dict() as JSON
{
  "_type": "compare/PoseTolerance",
  "position": 0.005,
  "rotation": 0.02
}

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.

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.

Used by

Types whose fields refer to it.

Tolerances

robot_msgs 0.2.0 @ 22ec67fGitHub · MIT license · generated from the package, not written per type