Go to the documentation of this file.00001 """autogenerated by genmsg_py from appl_requestRequest.msg. Do not edit."""
00002 import roslib.message
00003 import struct
00004
00005
00006 class appl_requestRequest(roslib.message.Message):
00007 _md5sum = "400c6a941cb3f9c6180e3b4474dde6ac"
00008 _type = "appl/appl_requestRequest"
00009 _has_header = False
00010 _full_text = """int64 cmd
00011 string obs
00012 string xstate
00013
00014 """
00015 __slots__ = ['cmd','obs','xstate']
00016 _slot_types = ['int64','string','string']
00017
00018 def __init__(self, *args, **kwds):
00019 """
00020 Constructor. Any message fields that are implicitly/explicitly
00021 set to None will be assigned a default value. The recommend
00022 use is keyword arguments as this is more robust to future message
00023 changes. You cannot mix in-order arguments and keyword arguments.
00024
00025 The available fields are:
00026 cmd,obs,xstate
00027
00028 @param args: complete set of field values, in .msg order
00029 @param kwds: use keyword arguments corresponding to message field names
00030 to set specific fields.
00031 """
00032 if args or kwds:
00033 super(appl_requestRequest, self).__init__(*args, **kwds)
00034
00035 if self.cmd is None:
00036 self.cmd = 0
00037 if self.obs is None:
00038 self.obs = ''
00039 if self.xstate is None:
00040 self.xstate = ''
00041 else:
00042 self.cmd = 0
00043 self.obs = ''
00044 self.xstate = ''
00045
00046 def _get_types(self):
00047 """
00048 internal API method
00049 """
00050 return self._slot_types
00051
00052 def serialize(self, buff):
00053 """
00054 serialize message into buffer
00055 @param buff: buffer
00056 @type buff: StringIO
00057 """
00058 try:
00059 buff.write(_struct_q.pack(self.cmd))
00060 _x = self.obs
00061 length = len(_x)
00062 buff.write(struct.pack('<I%ss'%length, length, _x))
00063 _x = self.xstate
00064 length = len(_x)
00065 buff.write(struct.pack('<I%ss'%length, length, _x))
00066 except struct.error as se: self._check_types(se)
00067 except TypeError as te: self._check_types(te)
00068
00069 def deserialize(self, str):
00070 """
00071 unpack serialized message in str into this message instance
00072 @param str: byte array of serialized message
00073 @type str: str
00074 """
00075 try:
00076 end = 0
00077 start = end
00078 end += 8
00079 (self.cmd,) = _struct_q.unpack(str[start:end])
00080 start = end
00081 end += 4
00082 (length,) = _struct_I.unpack(str[start:end])
00083 start = end
00084 end += length
00085 self.obs = str[start:end]
00086 start = end
00087 end += 4
00088 (length,) = _struct_I.unpack(str[start:end])
00089 start = end
00090 end += length
00091 self.xstate = str[start:end]
00092 return self
00093 except struct.error as e:
00094 raise roslib.message.DeserializationError(e)
00095
00096
00097 def serialize_numpy(self, buff, numpy):
00098 """
00099 serialize message with numpy array types into buffer
00100 @param buff: buffer
00101 @type buff: StringIO
00102 @param numpy: numpy python module
00103 @type numpy module
00104 """
00105 try:
00106 buff.write(_struct_q.pack(self.cmd))
00107 _x = self.obs
00108 length = len(_x)
00109 buff.write(struct.pack('<I%ss'%length, length, _x))
00110 _x = self.xstate
00111 length = len(_x)
00112 buff.write(struct.pack('<I%ss'%length, length, _x))
00113 except struct.error as se: self._check_types(se)
00114 except TypeError as te: self._check_types(te)
00115
00116 def deserialize_numpy(self, str, numpy):
00117 """
00118 unpack serialized message in str into this message instance using numpy for array types
00119 @param str: byte array of serialized message
00120 @type str: str
00121 @param numpy: numpy python module
00122 @type numpy: module
00123 """
00124 try:
00125 end = 0
00126 start = end
00127 end += 8
00128 (self.cmd,) = _struct_q.unpack(str[start:end])
00129 start = end
00130 end += 4
00131 (length,) = _struct_I.unpack(str[start:end])
00132 start = end
00133 end += length
00134 self.obs = str[start:end]
00135 start = end
00136 end += 4
00137 (length,) = _struct_I.unpack(str[start:end])
00138 start = end
00139 end += length
00140 self.xstate = str[start:end]
00141 return self
00142 except struct.error as e:
00143 raise roslib.message.DeserializationError(e)
00144
00145 _struct_I = roslib.message.struct_I
00146 _struct_q = struct.Struct("<q")
00147 """autogenerated by genmsg_py from appl_requestResponse.msg. Do not edit."""
00148 import roslib.message
00149 import struct
00150
00151
00152 class appl_requestResponse(roslib.message.Message):
00153 _md5sum = "b460309c977f7566468f25ecee904c29"
00154 _type = "appl/appl_requestResponse"
00155 _has_header = False
00156 _full_text = """int64 action
00157
00158
00159 """
00160 __slots__ = ['action']
00161 _slot_types = ['int64']
00162
00163 def __init__(self, *args, **kwds):
00164 """
00165 Constructor. Any message fields that are implicitly/explicitly
00166 set to None will be assigned a default value. The recommend
00167 use is keyword arguments as this is more robust to future message
00168 changes. You cannot mix in-order arguments and keyword arguments.
00169
00170 The available fields are:
00171 action
00172
00173 @param args: complete set of field values, in .msg order
00174 @param kwds: use keyword arguments corresponding to message field names
00175 to set specific fields.
00176 """
00177 if args or kwds:
00178 super(appl_requestResponse, self).__init__(*args, **kwds)
00179
00180 if self.action is None:
00181 self.action = 0
00182 else:
00183 self.action = 0
00184
00185 def _get_types(self):
00186 """
00187 internal API method
00188 """
00189 return self._slot_types
00190
00191 def serialize(self, buff):
00192 """
00193 serialize message into buffer
00194 @param buff: buffer
00195 @type buff: StringIO
00196 """
00197 try:
00198 buff.write(_struct_q.pack(self.action))
00199 except struct.error as se: self._check_types(se)
00200 except TypeError as te: self._check_types(te)
00201
00202 def deserialize(self, str):
00203 """
00204 unpack serialized message in str into this message instance
00205 @param str: byte array of serialized message
00206 @type str: str
00207 """
00208 try:
00209 end = 0
00210 start = end
00211 end += 8
00212 (self.action,) = _struct_q.unpack(str[start:end])
00213 return self
00214 except struct.error as e:
00215 raise roslib.message.DeserializationError(e)
00216
00217
00218 def serialize_numpy(self, buff, numpy):
00219 """
00220 serialize message with numpy array types into buffer
00221 @param buff: buffer
00222 @type buff: StringIO
00223 @param numpy: numpy python module
00224 @type numpy module
00225 """
00226 try:
00227 buff.write(_struct_q.pack(self.action))
00228 except struct.error as se: self._check_types(se)
00229 except TypeError as te: self._check_types(te)
00230
00231 def deserialize_numpy(self, str, numpy):
00232 """
00233 unpack serialized message in str into this message instance using numpy for array types
00234 @param str: byte array of serialized message
00235 @type str: str
00236 @param numpy: numpy python module
00237 @type numpy: module
00238 """
00239 try:
00240 end = 0
00241 start = end
00242 end += 8
00243 (self.action,) = _struct_q.unpack(str[start:end])
00244 return self
00245 except struct.error as e:
00246 raise roslib.message.DeserializationError(e)
00247
00248 _struct_I = roslib.message.struct_I
00249 _struct_q = struct.Struct("<q")
00250 class appl_request(roslib.message.ServiceDefinition):
00251 _type = 'appl/appl_request'
00252 _md5sum = 'cf74ecdc95d6dcf03b9b3f55803bdb98'
00253 _request_class = appl_requestRequest
00254 _response_class = appl_requestResponse