rosros 0.2.5
Simple unified interface to ROS1 / ROS2 Python API
|
Stand-in for `rospy.AnyMsg`. More...
Public Member Functions | |
__init__ (self, *args) | |
Constructor. | |
__subclasshook__ (cls, C) | |
Returns true if C is AnyMsg or descendant, else `NotImplemented`. | |
deserialize (self, str) | |
Copies raw buffer into self._buff, returns self. | |
serialize (self, buff) | |
AnyMsg provides an implementation so that a node can forward messages w/o (de)serialization. | |
__subclasshook__ (cls, C) | |
Returns true if C is a ROS2 message class, else `NotImplemented`. | |
Protected Attributes | |
_buff | |
Static Protected Attributes | |
str | _full_text |
bool | _has_header |
str | _md5sum |
str | _type |
Stand-in for `rospy.AnyMsg`.
Message class to use for subscribing to any topic regardless of type. Incoming messages are not deserialized. Instead, the raw serialized data can be accessed via the buff property.
Caveat in ROS2: subscription will be made with the first available published type on this topic, creation will fail if no publisher is available. Will not provide messages of different types.
rosros.rospify.msg.AnyMsg.__init__ | ( | self, | |
* | args | ||
) |
rosros.rospify.msg.AnyMsg.__subclasshook__ | ( | cls, | |
C | |||
) |
Returns true if C is AnyMsg or descendant, else `NotImplemented`.
Reimplemented from rosros.rospify.topics.Message.
rosros.rospify.msg.AnyMsg.deserialize | ( | self, | |
str | |||
) |
rosros.rospify.msg.AnyMsg.serialize | ( | self, | |
buff | |||
) |