$search
00001 """autogenerated by genmsg_py from RecoveryCallRequest.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import std_msgs.msg 00006 import sensor_msgs.msg 00007 00008 class RecoveryCallRequest(roslib.message.Message): 00009 _md5sum = "d8c981c42f573c72a3ae56e97b3577db" 00010 _type = "blort_ros/RecoveryCallRequest" 00011 _has_header = False #flag to mark the presence of a Header object 00012 _full_text = """sensor_msgs/Image Image 00013 00014 ================================================================================ 00015 MSG: sensor_msgs/Image 00016 # This message contains an uncompressed image 00017 # (0, 0) is at top-left corner of image 00018 # 00019 00020 Header header # Header timestamp should be acquisition time of image 00021 # Header frame_id should be optical frame of camera 00022 # origin of frame should be optical center of cameara 00023 # +x should point to the right in the image 00024 # +y should point down in the image 00025 # +z should point into to plane of the image 00026 # If the frame_id here and the frame_id of the CameraInfo 00027 # message associated with the image conflict 00028 # the behavior is undefined 00029 00030 uint32 height # image height, that is, number of rows 00031 uint32 width # image width, that is, number of columns 00032 00033 # The legal values for encoding are in file src/image_encodings.cpp 00034 # If you want to standardize a new string format, join 00035 # ros-users@lists.sourceforge.net and send an email proposing a new encoding. 00036 00037 string encoding # Encoding of pixels -- channel meaning, ordering, size 00038 # taken from the list of strings in src/image_encodings.cpp 00039 00040 uint8 is_bigendian # is this data bigendian? 00041 uint32 step # Full row length in bytes 00042 uint8[] data # actual matrix data, size is (step * rows) 00043 00044 ================================================================================ 00045 MSG: std_msgs/Header 00046 # Standard metadata for higher-level stamped data types. 00047 # This is generally used to communicate timestamped data 00048 # in a particular coordinate frame. 00049 # 00050 # sequence ID: consecutively increasing ID 00051 uint32 seq 00052 #Two-integer timestamp that is expressed as: 00053 # * stamp.secs: seconds (stamp_secs) since epoch 00054 # * stamp.nsecs: nanoseconds since stamp_secs 00055 # time-handling sugar is provided by the client library 00056 time stamp 00057 #Frame this data is associated with 00058 # 0: no frame 00059 # 1: global frame 00060 string frame_id 00061 00062 """ 00063 __slots__ = ['Image'] 00064 _slot_types = ['sensor_msgs/Image'] 00065 00066 def __init__(self, *args, **kwds): 00067 """ 00068 Constructor. Any message fields that are implicitly/explicitly 00069 set to None will be assigned a default value. The recommend 00070 use is keyword arguments as this is more robust to future message 00071 changes. You cannot mix in-order arguments and keyword arguments. 00072 00073 The available fields are: 00074 Image 00075 00076 @param args: complete set of field values, in .msg order 00077 @param kwds: use keyword arguments corresponding to message field names 00078 to set specific fields. 00079 """ 00080 if args or kwds: 00081 super(RecoveryCallRequest, self).__init__(*args, **kwds) 00082 #message fields cannot be None, assign default values for those that are 00083 if self.Image is None: 00084 self.Image = sensor_msgs.msg.Image() 00085 else: 00086 self.Image = sensor_msgs.msg.Image() 00087 00088 def _get_types(self): 00089 """ 00090 internal API method 00091 """ 00092 return self._slot_types 00093 00094 def serialize(self, buff): 00095 """ 00096 serialize message into buffer 00097 @param buff: buffer 00098 @type buff: StringIO 00099 """ 00100 try: 00101 _x = self 00102 buff.write(_struct_3I.pack(_x.Image.header.seq, _x.Image.header.stamp.secs, _x.Image.header.stamp.nsecs)) 00103 _x = self.Image.header.frame_id 00104 length = len(_x) 00105 buff.write(struct.pack('<I%ss'%length, length, _x)) 00106 _x = self 00107 buff.write(_struct_2I.pack(_x.Image.height, _x.Image.width)) 00108 _x = self.Image.encoding 00109 length = len(_x) 00110 buff.write(struct.pack('<I%ss'%length, length, _x)) 00111 _x = self 00112 buff.write(_struct_BI.pack(_x.Image.is_bigendian, _x.Image.step)) 00113 _x = self.Image.data 00114 length = len(_x) 00115 # - if encoded as a list instead, serialize as bytes instead of string 00116 if type(_x) in [list, tuple]: 00117 buff.write(struct.pack('<I%sB'%length, length, *_x)) 00118 else: 00119 buff.write(struct.pack('<I%ss'%length, length, _x)) 00120 except struct.error as se: self._check_types(se) 00121 except TypeError as te: self._check_types(te) 00122 00123 def deserialize(self, str): 00124 """ 00125 unpack serialized message in str into this message instance 00126 @param str: byte array of serialized message 00127 @type str: str 00128 """ 00129 try: 00130 if self.Image is None: 00131 self.Image = sensor_msgs.msg.Image() 00132 end = 0 00133 _x = self 00134 start = end 00135 end += 12 00136 (_x.Image.header.seq, _x.Image.header.stamp.secs, _x.Image.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00137 start = end 00138 end += 4 00139 (length,) = _struct_I.unpack(str[start:end]) 00140 start = end 00141 end += length 00142 self.Image.header.frame_id = str[start:end] 00143 _x = self 00144 start = end 00145 end += 8 00146 (_x.Image.height, _x.Image.width,) = _struct_2I.unpack(str[start:end]) 00147 start = end 00148 end += 4 00149 (length,) = _struct_I.unpack(str[start:end]) 00150 start = end 00151 end += length 00152 self.Image.encoding = str[start:end] 00153 _x = self 00154 start = end 00155 end += 5 00156 (_x.Image.is_bigendian, _x.Image.step,) = _struct_BI.unpack(str[start:end]) 00157 start = end 00158 end += 4 00159 (length,) = _struct_I.unpack(str[start:end]) 00160 start = end 00161 end += length 00162 self.Image.data = str[start:end] 00163 return self 00164 except struct.error as e: 00165 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00166 00167 00168 def serialize_numpy(self, buff, numpy): 00169 """ 00170 serialize message with numpy array types into buffer 00171 @param buff: buffer 00172 @type buff: StringIO 00173 @param numpy: numpy python module 00174 @type numpy module 00175 """ 00176 try: 00177 _x = self 00178 buff.write(_struct_3I.pack(_x.Image.header.seq, _x.Image.header.stamp.secs, _x.Image.header.stamp.nsecs)) 00179 _x = self.Image.header.frame_id 00180 length = len(_x) 00181 buff.write(struct.pack('<I%ss'%length, length, _x)) 00182 _x = self 00183 buff.write(_struct_2I.pack(_x.Image.height, _x.Image.width)) 00184 _x = self.Image.encoding 00185 length = len(_x) 00186 buff.write(struct.pack('<I%ss'%length, length, _x)) 00187 _x = self 00188 buff.write(_struct_BI.pack(_x.Image.is_bigendian, _x.Image.step)) 00189 _x = self.Image.data 00190 length = len(_x) 00191 # - if encoded as a list instead, serialize as bytes instead of string 00192 if type(_x) in [list, tuple]: 00193 buff.write(struct.pack('<I%sB'%length, length, *_x)) 00194 else: 00195 buff.write(struct.pack('<I%ss'%length, length, _x)) 00196 except struct.error as se: self._check_types(se) 00197 except TypeError as te: self._check_types(te) 00198 00199 def deserialize_numpy(self, str, numpy): 00200 """ 00201 unpack serialized message in str into this message instance using numpy for array types 00202 @param str: byte array of serialized message 00203 @type str: str 00204 @param numpy: numpy python module 00205 @type numpy: module 00206 """ 00207 try: 00208 if self.Image is None: 00209 self.Image = sensor_msgs.msg.Image() 00210 end = 0 00211 _x = self 00212 start = end 00213 end += 12 00214 (_x.Image.header.seq, _x.Image.header.stamp.secs, _x.Image.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00215 start = end 00216 end += 4 00217 (length,) = _struct_I.unpack(str[start:end]) 00218 start = end 00219 end += length 00220 self.Image.header.frame_id = str[start:end] 00221 _x = self 00222 start = end 00223 end += 8 00224 (_x.Image.height, _x.Image.width,) = _struct_2I.unpack(str[start:end]) 00225 start = end 00226 end += 4 00227 (length,) = _struct_I.unpack(str[start:end]) 00228 start = end 00229 end += length 00230 self.Image.encoding = str[start:end] 00231 _x = self 00232 start = end 00233 end += 5 00234 (_x.Image.is_bigendian, _x.Image.step,) = _struct_BI.unpack(str[start:end]) 00235 start = end 00236 end += 4 00237 (length,) = _struct_I.unpack(str[start:end]) 00238 start = end 00239 end += length 00240 self.Image.data = str[start:end] 00241 return self 00242 except struct.error as e: 00243 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00244 00245 _struct_I = roslib.message.struct_I 00246 _struct_3I = struct.Struct("<3I") 00247 _struct_2I = struct.Struct("<2I") 00248 _struct_BI = struct.Struct("<BI") 00249 """autogenerated by genmsg_py from RecoveryCallResponse.msg. Do not edit.""" 00250 import roslib.message 00251 import struct 00252 00253 import geometry_msgs.msg 00254 00255 class RecoveryCallResponse(roslib.message.Message): 00256 _md5sum = "db774e2f8d3bbd66cc277b8a8ce62817" 00257 _type = "blort_ros/RecoveryCallResponse" 00258 _has_header = False #flag to mark the presence of a Header object 00259 _full_text = """geometry_msgs/Pose Pose 00260 00261 00262 ================================================================================ 00263 MSG: geometry_msgs/Pose 00264 # A representation of pose in free space, composed of postion and orientation. 00265 Point position 00266 Quaternion orientation 00267 00268 ================================================================================ 00269 MSG: geometry_msgs/Point 00270 # This contains the position of a point in free space 00271 float64 x 00272 float64 y 00273 float64 z 00274 00275 ================================================================================ 00276 MSG: geometry_msgs/Quaternion 00277 # This represents an orientation in free space in quaternion form. 00278 00279 float64 x 00280 float64 y 00281 float64 z 00282 float64 w 00283 00284 """ 00285 __slots__ = ['Pose'] 00286 _slot_types = ['geometry_msgs/Pose'] 00287 00288 def __init__(self, *args, **kwds): 00289 """ 00290 Constructor. Any message fields that are implicitly/explicitly 00291 set to None will be assigned a default value. The recommend 00292 use is keyword arguments as this is more robust to future message 00293 changes. You cannot mix in-order arguments and keyword arguments. 00294 00295 The available fields are: 00296 Pose 00297 00298 @param args: complete set of field values, in .msg order 00299 @param kwds: use keyword arguments corresponding to message field names 00300 to set specific fields. 00301 """ 00302 if args or kwds: 00303 super(RecoveryCallResponse, self).__init__(*args, **kwds) 00304 #message fields cannot be None, assign default values for those that are 00305 if self.Pose is None: 00306 self.Pose = geometry_msgs.msg.Pose() 00307 else: 00308 self.Pose = geometry_msgs.msg.Pose() 00309 00310 def _get_types(self): 00311 """ 00312 internal API method 00313 """ 00314 return self._slot_types 00315 00316 def serialize(self, buff): 00317 """ 00318 serialize message into buffer 00319 @param buff: buffer 00320 @type buff: StringIO 00321 """ 00322 try: 00323 _x = self 00324 buff.write(_struct_7d.pack(_x.Pose.position.x, _x.Pose.position.y, _x.Pose.position.z, _x.Pose.orientation.x, _x.Pose.orientation.y, _x.Pose.orientation.z, _x.Pose.orientation.w)) 00325 except struct.error as se: self._check_types(se) 00326 except TypeError as te: self._check_types(te) 00327 00328 def deserialize(self, str): 00329 """ 00330 unpack serialized message in str into this message instance 00331 @param str: byte array of serialized message 00332 @type str: str 00333 """ 00334 try: 00335 if self.Pose is None: 00336 self.Pose = geometry_msgs.msg.Pose() 00337 end = 0 00338 _x = self 00339 start = end 00340 end += 56 00341 (_x.Pose.position.x, _x.Pose.position.y, _x.Pose.position.z, _x.Pose.orientation.x, _x.Pose.orientation.y, _x.Pose.orientation.z, _x.Pose.orientation.w,) = _struct_7d.unpack(str[start:end]) 00342 return self 00343 except struct.error as e: 00344 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00345 00346 00347 def serialize_numpy(self, buff, numpy): 00348 """ 00349 serialize message with numpy array types into buffer 00350 @param buff: buffer 00351 @type buff: StringIO 00352 @param numpy: numpy python module 00353 @type numpy module 00354 """ 00355 try: 00356 _x = self 00357 buff.write(_struct_7d.pack(_x.Pose.position.x, _x.Pose.position.y, _x.Pose.position.z, _x.Pose.orientation.x, _x.Pose.orientation.y, _x.Pose.orientation.z, _x.Pose.orientation.w)) 00358 except struct.error as se: self._check_types(se) 00359 except TypeError as te: self._check_types(te) 00360 00361 def deserialize_numpy(self, str, numpy): 00362 """ 00363 unpack serialized message in str into this message instance using numpy for array types 00364 @param str: byte array of serialized message 00365 @type str: str 00366 @param numpy: numpy python module 00367 @type numpy: module 00368 """ 00369 try: 00370 if self.Pose is None: 00371 self.Pose = geometry_msgs.msg.Pose() 00372 end = 0 00373 _x = self 00374 start = end 00375 end += 56 00376 (_x.Pose.position.x, _x.Pose.position.y, _x.Pose.position.z, _x.Pose.orientation.x, _x.Pose.orientation.y, _x.Pose.orientation.z, _x.Pose.orientation.w,) = _struct_7d.unpack(str[start:end]) 00377 return self 00378 except struct.error as e: 00379 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00380 00381 _struct_I = roslib.message.struct_I 00382 _struct_7d = struct.Struct("<7d") 00383 class RecoveryCall(roslib.message.ServiceDefinition): 00384 _type = 'blort_ros/RecoveryCall' 00385 _md5sum = '69e8db3137edfcf2b5cce1855b31782b' 00386 _request_class = RecoveryCallRequest 00387 _response_class = RecoveryCallResponse