00001 """autogenerated by genmsg_py from RossrvBRequest.msg. Do not edit."""
00002 import roslib.message
00003 import struct
00004
00005 import std_msgs.msg
00006
00007 class RossrvBRequest(roslib.message.Message):
00008 _md5sum = "6aac6c697d5414bc0fcede8c33981d0e"
00009 _type = "test_rosmsg/RossrvBRequest"
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(RossrvBRequest, 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
00104 """autogenerated by genmsg_py from RossrvBResponse.msg. Do not edit."""
00105 import roslib.message
00106 import struct
00107
00108 import std_msgs.msg
00109
00110 class RossrvBResponse(roslib.message.Message):
00111 _md5sum = "6aac6c697d5414bc0fcede8c33981d0e"
00112 _type = "test_rosmsg/RossrvBResponse"
00113 _has_header = False
00114 _full_text = """std_msgs/Empty empty
00115
00116
00117 ================================================================================
00118 MSG: std_msgs/Empty
00119
00120 """
00121 __slots__ = ['empty']
00122 _slot_types = ['std_msgs/Empty']
00123
00124 def __init__(self, *args, **kwds):
00125 """
00126 Constructor. Any message fields that are implicitly/explicitly
00127 set to None will be assigned a default value. The recommend
00128 use is keyword arguments as this is more robust to future message
00129 changes. You cannot mix in-order arguments and keyword arguments.
00130
00131 The available fields are:
00132 empty
00133
00134 @param args: complete set of field values, in .msg order
00135 @param kwds: use keyword arguments corresponding to message field names
00136 to set specific fields.
00137 """
00138 if args or kwds:
00139 super(RossrvBResponse, self).__init__(*args, **kwds)
00140
00141 if self.empty is None:
00142 self.empty = std_msgs.msg.Empty()
00143 else:
00144 self.empty = std_msgs.msg.Empty()
00145
00146 def _get_types(self):
00147 """
00148 internal API method
00149 """
00150 return self._slot_types
00151
00152 def serialize(self, buff):
00153 """
00154 serialize message into buffer
00155 @param buff: buffer
00156 @type buff: StringIO
00157 """
00158 try:
00159 pass
00160 except struct.error, se: self._check_types(se)
00161 except TypeError, te: self._check_types(te)
00162
00163 def deserialize(self, str):
00164 """
00165 unpack serialized message in str into this message instance
00166 @param str: byte array of serialized message
00167 @type str: str
00168 """
00169 try:
00170 if self.empty is None:
00171 self.empty = std_msgs.msg.Empty()
00172 end = 0
00173 return self
00174 except struct.error, e:
00175 raise roslib.message.DeserializationError(e)
00176
00177
00178 def serialize_numpy(self, buff, numpy):
00179 """
00180 serialize message with numpy array types into buffer
00181 @param buff: buffer
00182 @type buff: StringIO
00183 @param numpy: numpy python module
00184 @type numpy module
00185 """
00186 try:
00187 pass
00188 except struct.error, se: self._check_types(se)
00189 except TypeError, te: self._check_types(te)
00190
00191 def deserialize_numpy(self, str, numpy):
00192 """
00193 unpack serialized message in str into this message instance using numpy for array types
00194 @param str: byte array of serialized message
00195 @type str: str
00196 @param numpy: numpy python module
00197 @type numpy: module
00198 """
00199 try:
00200 if self.empty is None:
00201 self.empty = std_msgs.msg.Empty()
00202 end = 0
00203 return self
00204 except struct.error, e:
00205 raise roslib.message.DeserializationError(e)
00206
00207 _struct_I = roslib.message.struct_I
00208 class RossrvB(roslib.message.ServiceDefinition):
00209 _type = 'test_rosmsg/RossrvB'
00210 _md5sum = '928fb104d412cd4f5983340b98df1876'
00211 _request_class = RossrvBRequest
00212 _response_class = RossrvBResponse