rclpy.type_support module

class rclpy.type_support.CommonMsgSrvMetaClass(name, bases, namespace, /, **kwargs)

Bases: _ProtocolMeta

Shared attributes between messages and services.

class rclpy.type_support.Msg(*args, **kwargs)

Bases: Protocol

Generic Message Alias.

class rclpy.type_support.MsgMetaClass(name, bases, namespace, /, **kwargs)

Bases: CommonMsgSrvMetaClass

Generic Message Metaclass Alias.

class rclpy.type_support.PyCapsule(*args, **kwargs)

Bases: Protocol

Alias for PyCapsule Pybind object.

class rclpy.type_support.Srv

Bases: Protocol[SrvRequestT, SrvResponseT, SrvEventT]

Generic Service Type Alias.

Event: Type[SrvEventT]
Request: Type[SrvRequestT]
Response: Type[SrvResponseT]
rclpy.type_support.check_for_type_support(msg_or_srv_type: Type[Msg | Srv]) None
rclpy.type_support.check_is_valid_msg_type(msg_type: Type[Msg]) None
rclpy.type_support.check_is_valid_srv_type(srv_type: Type[Srv]) None