class documentation

class ProjectionContext:

View In Hierarchy

What a Projection needs besides the message in front of it.

Method child Return the context of one field of the message this context is on.
Method without Return this context with some paths below it removed, subtrees and all.
Instance Variable byte_string_ceiling How many bytes a bulk payload may carry, or 0 for no ceiling. It is the server's own, published in its capability variable (opensmi.ros2.server.limits), and the Projection applies it because the send path has no check of its own.
Instance Variable path The absolute ROS2 path of the message being shaped or decoded. Empty at the root.
Instance Variable qualifier What distinguishes this Component's minted DataTypes from another's. Empty outside a Component.
Instance Variable raw_names Whether fields keep their ROS2 names. The fields of a structure array's element do: they are field names of a DataType, not browse names.
Instance Variable registry How a nested type finds its own Projection.
Instance Variable rename The new browse name of a field, by its absolute ROS2 field path, from the Binding's selection.
Instance Variable selected The ROS2 field paths that survived the Binding's selection, absolute from the root of the declared message. Selection is applied before projection, so a Projection is never asked about a field the declaration removed.
Property included Return whether the selection kept the path this context is on.
def child(self, field_name: str) -> ProjectionContext:

Return the context of one field of the message this context is on.

def without(self, field_paths: Iterable[str]) -> ProjectionContext:

Return this context with some paths below it removed, subtrees and all.

This is what the drop recipe uses. A dropped field is as invisible as an excluded one.

byte_string_ceiling: int =

How many bytes a bulk payload may carry, or 0 for no ceiling. It is the server's own, published in its capability variable (opensmi.ros2.server.limits), and the Projection applies it because the send path has no check of its own.

path: str =

The absolute ROS2 path of the message being shaped or decoded. Empty at the root.

qualifier: str =

What distinguishes this Component's minted DataTypes from another's. Empty outside a Component.

raw_names: bool =

Whether fields keep their ROS2 names. The fields of a structure array's element do: they are field names of a DataType, not browse names.

How a nested type finds its own Projection.

rename: Mapping[str, str] =

The new browse name of a field, by its absolute ROS2 field path, from the Binding's selection.

selected: frozenset[str] =

The ROS2 field paths that survived the Binding's selection, absolute from the root of the declared message. Selection is applied before projection, so a Projection is never asked about a field the declaration removed.

@property
included: bool =

Return whether the selection kept the path this context is on.