00001 """autogenerated by genmsg_py from RecognizePlaceRequest.msg. Do not edit."""
00002 import roslib.message
00003 import struct
00004
00005
00006 class RecognizePlaceRequest(roslib.message.Message):
00007 _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
00008 _type = "kidnapped_robot/RecognizePlaceRequest"
00009 _has_header = False
00010 _full_text = """
00011 """
00012 __slots__ = []
00013 _slot_types = []
00014
00015 def __init__(self, *args, **kwds):
00016 """
00017 Constructor. Any message fields that are implicitly/explicitly
00018 set to None will be assigned a default value. The recommend
00019 use is keyword arguments as this is more robust to future message
00020 changes. You cannot mix in-order arguments and keyword arguments.
00021
00022 The available fields are:
00023
00024
00025 @param args: complete set of field values, in .msg order
00026 @param kwds: use keyword arguments corresponding to message field names
00027 to set specific fields.
00028 """
00029 if args or kwds:
00030 super(RecognizePlaceRequest, self).__init__(*args, **kwds)
00031
00032 def _get_types(self):
00033 """
00034 internal API method
00035 """
00036 return self._slot_types
00037
00038 def serialize(self, buff):
00039 """
00040 serialize message into buffer
00041 @param buff: buffer
00042 @type buff: StringIO
00043 """
00044 try:
00045 pass
00046 except struct.error, se: self._check_types(se)
00047 except TypeError, te: self._check_types(te)
00048
00049 def deserialize(self, str):
00050 """
00051 unpack serialized message in str into this message instance
00052 @param str: byte array of serialized message
00053 @type str: str
00054 """
00055 try:
00056 end = 0
00057 return self
00058 except struct.error, e:
00059 raise roslib.message.DeserializationError(e)
00060
00061
00062 def serialize_numpy(self, buff, numpy):
00063 """
00064 serialize message with numpy array types into buffer
00065 @param buff: buffer
00066 @type buff: StringIO
00067 @param numpy: numpy python module
00068 @type numpy module
00069 """
00070 try:
00071 pass
00072 except struct.error, se: self._check_types(se)
00073 except TypeError, te: self._check_types(te)
00074
00075 def deserialize_numpy(self, str, numpy):
00076 """
00077 unpack serialized message in str into this message instance using numpy for array types
00078 @param str: byte array of serialized message
00079 @type str: str
00080 @param numpy: numpy python module
00081 @type numpy: module
00082 """
00083 try:
00084 end = 0
00085 return self
00086 except struct.error, e:
00087 raise roslib.message.DeserializationError(e)
00088
00089 _struct_I = roslib.message.struct_I
00090 """autogenerated by genmsg_py from RecognizePlaceResponse.msg. Do not edit."""
00091 import roslib.message
00092 import struct
00093
00094 import geometry_msgs.msg
00095 import std_msgs.msg
00096
00097 class RecognizePlaceResponse(roslib.message.Message):
00098 _md5sum = "d0f933c333979d9974126ed3d4eed372"
00099 _type = "kidnapped_robot/RecognizePlaceResponse"
00100 _has_header = False
00101 _full_text = """geometry_msgs/PoseStamped pose
00102 int32 inliers
00103
00104
00105 ================================================================================
00106 MSG: geometry_msgs/PoseStamped
00107 # A Pose with reference coordinate frame and timestamp
00108 Header header
00109 Pose pose
00110
00111 ================================================================================
00112 MSG: std_msgs/Header
00113 # Standard metadata for higher-level stamped data types.
00114 # This is generally used to communicate timestamped data
00115 # in a particular coordinate frame.
00116 #
00117 # sequence ID: consecutively increasing ID
00118 uint32 seq
00119 #Two-integer timestamp that is expressed as:
00120 # * stamp.secs: seconds (stamp_secs) since epoch
00121 # * stamp.nsecs: nanoseconds since stamp_secs
00122 # time-handling sugar is provided by the client library
00123 time stamp
00124 #Frame this data is associated with
00125 # 0: no frame
00126 # 1: global frame
00127 string frame_id
00128
00129 ================================================================================
00130 MSG: geometry_msgs/Pose
00131 # A representation of pose in free space, composed of postion and orientation.
00132 Point position
00133 Quaternion orientation
00134
00135 ================================================================================
00136 MSG: geometry_msgs/Point
00137 # This contains the position of a point in free space
00138 float64 x
00139 float64 y
00140 float64 z
00141
00142 ================================================================================
00143 MSG: geometry_msgs/Quaternion
00144 # This represents an orientation in free space in quaternion form.
00145
00146 float64 x
00147 float64 y
00148 float64 z
00149 float64 w
00150
00151 """
00152 __slots__ = ['pose','inliers']
00153 _slot_types = ['geometry_msgs/PoseStamped','int32']
00154
00155 def __init__(self, *args, **kwds):
00156 """
00157 Constructor. Any message fields that are implicitly/explicitly
00158 set to None will be assigned a default value. The recommend
00159 use is keyword arguments as this is more robust to future message
00160 changes. You cannot mix in-order arguments and keyword arguments.
00161
00162 The available fields are:
00163 pose,inliers
00164
00165 @param args: complete set of field values, in .msg order
00166 @param kwds: use keyword arguments corresponding to message field names
00167 to set specific fields.
00168 """
00169 if args or kwds:
00170 super(RecognizePlaceResponse, self).__init__(*args, **kwds)
00171
00172 if self.pose is None:
00173 self.pose = geometry_msgs.msg.PoseStamped()
00174 if self.inliers is None:
00175 self.inliers = 0
00176 else:
00177 self.pose = geometry_msgs.msg.PoseStamped()
00178 self.inliers = 0
00179
00180 def _get_types(self):
00181 """
00182 internal API method
00183 """
00184 return self._slot_types
00185
00186 def serialize(self, buff):
00187 """
00188 serialize message into buffer
00189 @param buff: buffer
00190 @type buff: StringIO
00191 """
00192 try:
00193 _x = self
00194 buff.write(_struct_3I.pack(_x.pose.header.seq, _x.pose.header.stamp.secs, _x.pose.header.stamp.nsecs))
00195 _x = self.pose.header.frame_id
00196 length = len(_x)
00197 buff.write(struct.pack('<I%ss'%length, length, _x))
00198 _x = self
00199 buff.write(_struct_7di.pack(_x.pose.pose.position.x, _x.pose.pose.position.y, _x.pose.pose.position.z, _x.pose.pose.orientation.x, _x.pose.pose.orientation.y, _x.pose.pose.orientation.z, _x.pose.pose.orientation.w, _x.inliers))
00200 except struct.error, se: self._check_types(se)
00201 except TypeError, te: self._check_types(te)
00202
00203 def deserialize(self, str):
00204 """
00205 unpack serialized message in str into this message instance
00206 @param str: byte array of serialized message
00207 @type str: str
00208 """
00209 try:
00210 if self.pose is None:
00211 self.pose = geometry_msgs.msg.PoseStamped()
00212 end = 0
00213 _x = self
00214 start = end
00215 end += 12
00216 (_x.pose.header.seq, _x.pose.header.stamp.secs, _x.pose.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00217 start = end
00218 end += 4
00219 (length,) = _struct_I.unpack(str[start:end])
00220 start = end
00221 end += length
00222 self.pose.header.frame_id = str[start:end]
00223 _x = self
00224 start = end
00225 end += 60
00226 (_x.pose.pose.position.x, _x.pose.pose.position.y, _x.pose.pose.position.z, _x.pose.pose.orientation.x, _x.pose.pose.orientation.y, _x.pose.pose.orientation.z, _x.pose.pose.orientation.w, _x.inliers,) = _struct_7di.unpack(str[start:end])
00227 return self
00228 except struct.error, e:
00229 raise roslib.message.DeserializationError(e)
00230
00231
00232 def serialize_numpy(self, buff, numpy):
00233 """
00234 serialize message with numpy array types into buffer
00235 @param buff: buffer
00236 @type buff: StringIO
00237 @param numpy: numpy python module
00238 @type numpy module
00239 """
00240 try:
00241 _x = self
00242 buff.write(_struct_3I.pack(_x.pose.header.seq, _x.pose.header.stamp.secs, _x.pose.header.stamp.nsecs))
00243 _x = self.pose.header.frame_id
00244 length = len(_x)
00245 buff.write(struct.pack('<I%ss'%length, length, _x))
00246 _x = self
00247 buff.write(_struct_7di.pack(_x.pose.pose.position.x, _x.pose.pose.position.y, _x.pose.pose.position.z, _x.pose.pose.orientation.x, _x.pose.pose.orientation.y, _x.pose.pose.orientation.z, _x.pose.pose.orientation.w, _x.inliers))
00248 except struct.error, se: self._check_types(se)
00249 except TypeError, te: self._check_types(te)
00250
00251 def deserialize_numpy(self, str, numpy):
00252 """
00253 unpack serialized message in str into this message instance using numpy for array types
00254 @param str: byte array of serialized message
00255 @type str: str
00256 @param numpy: numpy python module
00257 @type numpy: module
00258 """
00259 try:
00260 if self.pose is None:
00261 self.pose = geometry_msgs.msg.PoseStamped()
00262 end = 0
00263 _x = self
00264 start = end
00265 end += 12
00266 (_x.pose.header.seq, _x.pose.header.stamp.secs, _x.pose.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00267 start = end
00268 end += 4
00269 (length,) = _struct_I.unpack(str[start:end])
00270 start = end
00271 end += length
00272 self.pose.header.frame_id = str[start:end]
00273 _x = self
00274 start = end
00275 end += 60
00276 (_x.pose.pose.position.x, _x.pose.pose.position.y, _x.pose.pose.position.z, _x.pose.pose.orientation.x, _x.pose.pose.orientation.y, _x.pose.pose.orientation.z, _x.pose.pose.orientation.w, _x.inliers,) = _struct_7di.unpack(str[start:end])
00277 return self
00278 except struct.error, e:
00279 raise roslib.message.DeserializationError(e)
00280
00281 _struct_I = roslib.message.struct_I
00282 _struct_7di = struct.Struct("<7di")
00283 _struct_3I = struct.Struct("<3I")
00284 class RecognizePlace(roslib.message.ServiceDefinition):
00285 _type = 'kidnapped_robot/RecognizePlace'
00286 _md5sum = 'd0f933c333979d9974126ed3d4eed372'
00287 _request_class = RecognizePlaceRequest
00288 _response_class = RecognizePlaceResponse