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