00001 """autogenerated by genmsg_py from RosmsgB.msg. Do not edit."""
00002 import roslib.message
00003 import struct
00004
00005 import std_msgs.msg
00006
00007 class RosmsgB(roslib.message.Message):
00008 _md5sum = "6aac6c697d5414bc0fcede8c33981d0e"
00009 _type = "test_rosmsg/RosmsgB"
00010 _has_header = False
00011 _full_text = """std_msgs/Empty empty
00012
00013 ================================================================================
00014 MSG: std_msgs/Empty
00015
00016 """
00017 __slots__ = ['empty']
00018 _slot_types = ['std_msgs/Empty']
00019
00020 def __init__(self, *args, **kwds):
00021 """
00022 Constructor. Any message fields that are implicitly/explicitly
00023 set to None will be assigned a default value. The recommend
00024 use is keyword arguments as this is more robust to future message
00025 changes. You cannot mix in-order arguments and keyword arguments.
00026
00027 The available fields are:
00028 empty
00029
00030 @param args: complete set of field values, in .msg order
00031 @param kwds: use keyword arguments corresponding to message field names
00032 to set specific fields.
00033 """
00034 if args or kwds:
00035 super(RosmsgB, self).__init__(*args, **kwds)
00036
00037 if self.empty is None:
00038 self.empty = std_msgs.msg.Empty()
00039 else:
00040 self.empty = std_msgs.msg.Empty()
00041
00042 def _get_types(self):
00043 """
00044 internal API method
00045 """
00046 return self._slot_types
00047
00048 def serialize(self, buff):
00049 """
00050 serialize message into buffer
00051 @param buff: buffer
00052 @type buff: StringIO
00053 """
00054 try:
00055 pass
00056 except struct.error, se: self._check_types(se)
00057 except TypeError, te: self._check_types(te)
00058
00059 def deserialize(self, str):
00060 """
00061 unpack serialized message in str into this message instance
00062 @param str: byte array of serialized message
00063 @type str: str
00064 """
00065 try:
00066 if self.empty is None:
00067 self.empty = std_msgs.msg.Empty()
00068 end = 0
00069 return self
00070 except struct.error, e:
00071 raise roslib.message.DeserializationError(e)
00072
00073
00074 def serialize_numpy(self, buff, numpy):
00075 """
00076 serialize message with numpy array types into buffer
00077 @param buff: buffer
00078 @type buff: StringIO
00079 @param numpy: numpy python module
00080 @type numpy module
00081 """
00082 try:
00083 pass
00084 except struct.error, se: self._check_types(se)
00085 except TypeError, te: self._check_types(te)
00086
00087 def deserialize_numpy(self, str, numpy):
00088 """
00089 unpack serialized message in str into this message instance using numpy for array types
00090 @param str: byte array of serialized message
00091 @type str: str
00092 @param numpy: numpy python module
00093 @type numpy: module
00094 """
00095 try:
00096 if self.empty is None:
00097 self.empty = std_msgs.msg.Empty()
00098 end = 0
00099 return self
00100 except struct.error, e:
00101 raise roslib.message.DeserializationError(e)
00102
00103 _struct_I = roslib.message.struct_I