class documentation

class Drop(Projection):

View In Hierarchy

The generic walk with some fields taken out of it.

Dropping a path takes its whole subtree with it, as the declaration's own exclude does.

A Drop never inverts: its only inverse would fill the dropped fields with defaults, and a covariance of zeros means perfectly certain in ROS2, not unknown.

Method decode Read what is left of the payload.
Method shape Walk what is left of the message.
Instance Variable fields The ROS2 field paths to remove, relative to this type.
Method _without Return the context with the dropped paths gone.
def decode(self, message: Message, context: ProjectionContext) -> Mapping[str, object]:

Read what is left of the payload.

def shape(self, message_type: type[Message], context: ProjectionContext) -> tuple[PlanEntry, ...]:

Walk what is left of the message.

fields: Collection[str] =

The ROS2 field paths to remove, relative to this type.

def _without(self, message_type: type[Message], context: ProjectionContext) -> ProjectionContext:

Return the context with the dropped paths gone.

Raises
UnprojectableFieldErrorWhen a dropped path is not a path of this type.