$search
00001 """autogenerated by genmsg_py from SetPointMapRequest.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 SetPointMapRequest(roslib.message.Message): 00009 _md5sum = "b84fbb39505086eb6a62d933c75cb7b4" 00010 _type = "cob_3d_mapping_msgs/SetPointMapRequest" 00011 _has_header = False #flag to mark the presence of a Header object 00012 _full_text = """sensor_msgs/PointCloud2 map 00013 00014 ================================================================================ 00015 MSG: sensor_msgs/PointCloud2 00016 # This message holds a collection of N-dimensional points, which may 00017 # contain additional information such as normals, intensity, etc. The 00018 # point data is stored as a binary blob, its layout described by the 00019 # contents of the "fields" array. 00020 00021 # The point cloud data may be organized 2d (image-like) or 1d 00022 # (unordered). Point clouds organized as 2d images may be produced by 00023 # camera depth sensors such as stereo or time-of-flight. 00024 00025 # Time of sensor data acquisition, and the coordinate frame ID (for 3d 00026 # points). 00027 Header header 00028 00029 # 2D structure of the point cloud. If the cloud is unordered, height is 00030 # 1 and width is the length of the point cloud. 00031 uint32 height 00032 uint32 width 00033 00034 # Describes the channels and their layout in the binary data blob. 00035 PointField[] fields 00036 00037 bool is_bigendian # Is this data bigendian? 00038 uint32 point_step # Length of a point in bytes 00039 uint32 row_step # Length of a row in bytes 00040 uint8[] data # Actual point data, size is (row_step*height) 00041 00042 bool is_dense # True if there are no invalid points 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 MSG: sensor_msgs/PointField 00064 # This message holds the description of one point entry in the 00065 # PointCloud2 message format. 00066 uint8 INT8 = 1 00067 uint8 UINT8 = 2 00068 uint8 INT16 = 3 00069 uint8 UINT16 = 4 00070 uint8 INT32 = 5 00071 uint8 UINT32 = 6 00072 uint8 FLOAT32 = 7 00073 uint8 FLOAT64 = 8 00074 00075 string name # Name of field 00076 uint32 offset # Offset from start of point struct 00077 uint8 datatype # Datatype enumeration, see above 00078 uint32 count # How many elements in the field 00079 00080 """ 00081 __slots__ = ['map'] 00082 _slot_types = ['sensor_msgs/PointCloud2'] 00083 00084 def __init__(self, *args, **kwds): 00085 """ 00086 Constructor. Any message fields that are implicitly/explicitly 00087 set to None will be assigned a default value. The recommend 00088 use is keyword arguments as this is more robust to future message 00089 changes. You cannot mix in-order arguments and keyword arguments. 00090 00091 The available fields are: 00092 map 00093 00094 @param args: complete set of field values, in .msg order 00095 @param kwds: use keyword arguments corresponding to message field names 00096 to set specific fields. 00097 """ 00098 if args or kwds: 00099 super(SetPointMapRequest, self).__init__(*args, **kwds) 00100 #message fields cannot be None, assign default values for those that are 00101 if self.map is None: 00102 self.map = sensor_msgs.msg.PointCloud2() 00103 else: 00104 self.map = sensor_msgs.msg.PointCloud2() 00105 00106 def _get_types(self): 00107 """ 00108 internal API method 00109 """ 00110 return self._slot_types 00111 00112 def serialize(self, buff): 00113 """ 00114 serialize message into buffer 00115 @param buff: buffer 00116 @type buff: StringIO 00117 """ 00118 try: 00119 _x = self 00120 buff.write(_struct_3I.pack(_x.map.header.seq, _x.map.header.stamp.secs, _x.map.header.stamp.nsecs)) 00121 _x = self.map.header.frame_id 00122 length = len(_x) 00123 buff.write(struct.pack('<I%ss'%length, length, _x)) 00124 _x = self 00125 buff.write(_struct_2I.pack(_x.map.height, _x.map.width)) 00126 length = len(self.map.fields) 00127 buff.write(_struct_I.pack(length)) 00128 for val1 in self.map.fields: 00129 _x = val1.name 00130 length = len(_x) 00131 buff.write(struct.pack('<I%ss'%length, length, _x)) 00132 _x = val1 00133 buff.write(_struct_IBI.pack(_x.offset, _x.datatype, _x.count)) 00134 _x = self 00135 buff.write(_struct_B2I.pack(_x.map.is_bigendian, _x.map.point_step, _x.map.row_step)) 00136 _x = self.map.data 00137 length = len(_x) 00138 # - if encoded as a list instead, serialize as bytes instead of string 00139 if type(_x) in [list, tuple]: 00140 buff.write(struct.pack('<I%sB'%length, length, *_x)) 00141 else: 00142 buff.write(struct.pack('<I%ss'%length, length, _x)) 00143 buff.write(_struct_B.pack(self.map.is_dense)) 00144 except struct.error as se: self._check_types(se) 00145 except TypeError as 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 if self.map is None: 00155 self.map = sensor_msgs.msg.PointCloud2() 00156 end = 0 00157 _x = self 00158 start = end 00159 end += 12 00160 (_x.map.header.seq, _x.map.header.stamp.secs, _x.map.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00161 start = end 00162 end += 4 00163 (length,) = _struct_I.unpack(str[start:end]) 00164 start = end 00165 end += length 00166 self.map.header.frame_id = str[start:end] 00167 _x = self 00168 start = end 00169 end += 8 00170 (_x.map.height, _x.map.width,) = _struct_2I.unpack(str[start:end]) 00171 start = end 00172 end += 4 00173 (length,) = _struct_I.unpack(str[start:end]) 00174 self.map.fields = [] 00175 for i in range(0, length): 00176 val1 = sensor_msgs.msg.PointField() 00177 start = end 00178 end += 4 00179 (length,) = _struct_I.unpack(str[start:end]) 00180 start = end 00181 end += length 00182 val1.name = str[start:end] 00183 _x = val1 00184 start = end 00185 end += 9 00186 (_x.offset, _x.datatype, _x.count,) = _struct_IBI.unpack(str[start:end]) 00187 self.map.fields.append(val1) 00188 _x = self 00189 start = end 00190 end += 9 00191 (_x.map.is_bigendian, _x.map.point_step, _x.map.row_step,) = _struct_B2I.unpack(str[start:end]) 00192 self.map.is_bigendian = bool(self.map.is_bigendian) 00193 start = end 00194 end += 4 00195 (length,) = _struct_I.unpack(str[start:end]) 00196 start = end 00197 end += length 00198 self.map.data = str[start:end] 00199 start = end 00200 end += 1 00201 (self.map.is_dense,) = _struct_B.unpack(str[start:end]) 00202 self.map.is_dense = bool(self.map.is_dense) 00203 return self 00204 except struct.error as e: 00205 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00206 00207 00208 def serialize_numpy(self, buff, numpy): 00209 """ 00210 serialize message with numpy array types into buffer 00211 @param buff: buffer 00212 @type buff: StringIO 00213 @param numpy: numpy python module 00214 @type numpy module 00215 """ 00216 try: 00217 _x = self 00218 buff.write(_struct_3I.pack(_x.map.header.seq, _x.map.header.stamp.secs, _x.map.header.stamp.nsecs)) 00219 _x = self.map.header.frame_id 00220 length = len(_x) 00221 buff.write(struct.pack('<I%ss'%length, length, _x)) 00222 _x = self 00223 buff.write(_struct_2I.pack(_x.map.height, _x.map.width)) 00224 length = len(self.map.fields) 00225 buff.write(_struct_I.pack(length)) 00226 for val1 in self.map.fields: 00227 _x = val1.name 00228 length = len(_x) 00229 buff.write(struct.pack('<I%ss'%length, length, _x)) 00230 _x = val1 00231 buff.write(_struct_IBI.pack(_x.offset, _x.datatype, _x.count)) 00232 _x = self 00233 buff.write(_struct_B2I.pack(_x.map.is_bigendian, _x.map.point_step, _x.map.row_step)) 00234 _x = self.map.data 00235 length = len(_x) 00236 # - if encoded as a list instead, serialize as bytes instead of string 00237 if type(_x) in [list, tuple]: 00238 buff.write(struct.pack('<I%sB'%length, length, *_x)) 00239 else: 00240 buff.write(struct.pack('<I%ss'%length, length, _x)) 00241 buff.write(_struct_B.pack(self.map.is_dense)) 00242 except struct.error as se: self._check_types(se) 00243 except TypeError as te: self._check_types(te) 00244 00245 def deserialize_numpy(self, str, numpy): 00246 """ 00247 unpack serialized message in str into this message instance using numpy for array types 00248 @param str: byte array of serialized message 00249 @type str: str 00250 @param numpy: numpy python module 00251 @type numpy: module 00252 """ 00253 try: 00254 if self.map is None: 00255 self.map = sensor_msgs.msg.PointCloud2() 00256 end = 0 00257 _x = self 00258 start = end 00259 end += 12 00260 (_x.map.header.seq, _x.map.header.stamp.secs, _x.map.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00261 start = end 00262 end += 4 00263 (length,) = _struct_I.unpack(str[start:end]) 00264 start = end 00265 end += length 00266 self.map.header.frame_id = str[start:end] 00267 _x = self 00268 start = end 00269 end += 8 00270 (_x.map.height, _x.map.width,) = _struct_2I.unpack(str[start:end]) 00271 start = end 00272 end += 4 00273 (length,) = _struct_I.unpack(str[start:end]) 00274 self.map.fields = [] 00275 for i in range(0, length): 00276 val1 = sensor_msgs.msg.PointField() 00277 start = end 00278 end += 4 00279 (length,) = _struct_I.unpack(str[start:end]) 00280 start = end 00281 end += length 00282 val1.name = str[start:end] 00283 _x = val1 00284 start = end 00285 end += 9 00286 (_x.offset, _x.datatype, _x.count,) = _struct_IBI.unpack(str[start:end]) 00287 self.map.fields.append(val1) 00288 _x = self 00289 start = end 00290 end += 9 00291 (_x.map.is_bigendian, _x.map.point_step, _x.map.row_step,) = _struct_B2I.unpack(str[start:end]) 00292 self.map.is_bigendian = bool(self.map.is_bigendian) 00293 start = end 00294 end += 4 00295 (length,) = _struct_I.unpack(str[start:end]) 00296 start = end 00297 end += length 00298 self.map.data = str[start:end] 00299 start = end 00300 end += 1 00301 (self.map.is_dense,) = _struct_B.unpack(str[start:end]) 00302 self.map.is_dense = bool(self.map.is_dense) 00303 return self 00304 except struct.error as e: 00305 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00306 00307 _struct_I = roslib.message.struct_I 00308 _struct_IBI = struct.Struct("<IBI") 00309 _struct_3I = struct.Struct("<3I") 00310 _struct_B = struct.Struct("<B") 00311 _struct_2I = struct.Struct("<2I") 00312 _struct_B2I = struct.Struct("<B2I") 00313 """autogenerated by genmsg_py from SetPointMapResponse.msg. Do not edit.""" 00314 import roslib.message 00315 import struct 00316 00317 00318 class SetPointMapResponse(roslib.message.Message): 00319 _md5sum = "d41d8cd98f00b204e9800998ecf8427e" 00320 _type = "cob_3d_mapping_msgs/SetPointMapResponse" 00321 _has_header = False #flag to mark the presence of a Header object 00322 _full_text = """ 00323 00324 """ 00325 __slots__ = [] 00326 _slot_types = [] 00327 00328 def __init__(self, *args, **kwds): 00329 """ 00330 Constructor. Any message fields that are implicitly/explicitly 00331 set to None will be assigned a default value. The recommend 00332 use is keyword arguments as this is more robust to future message 00333 changes. You cannot mix in-order arguments and keyword arguments. 00334 00335 The available fields are: 00336 00337 00338 @param args: complete set of field values, in .msg order 00339 @param kwds: use keyword arguments corresponding to message field names 00340 to set specific fields. 00341 """ 00342 if args or kwds: 00343 super(SetPointMapResponse, self).__init__(*args, **kwds) 00344 00345 def _get_types(self): 00346 """ 00347 internal API method 00348 """ 00349 return self._slot_types 00350 00351 def serialize(self, buff): 00352 """ 00353 serialize message into buffer 00354 @param buff: buffer 00355 @type buff: StringIO 00356 """ 00357 try: 00358 pass 00359 except struct.error as se: self._check_types(se) 00360 except TypeError as te: self._check_types(te) 00361 00362 def deserialize(self, str): 00363 """ 00364 unpack serialized message in str into this message instance 00365 @param str: byte array of serialized message 00366 @type str: str 00367 """ 00368 try: 00369 end = 0 00370 return self 00371 except struct.error as e: 00372 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00373 00374 00375 def serialize_numpy(self, buff, numpy): 00376 """ 00377 serialize message with numpy array types into buffer 00378 @param buff: buffer 00379 @type buff: StringIO 00380 @param numpy: numpy python module 00381 @type numpy module 00382 """ 00383 try: 00384 pass 00385 except struct.error as se: self._check_types(se) 00386 except TypeError as te: self._check_types(te) 00387 00388 def deserialize_numpy(self, str, numpy): 00389 """ 00390 unpack serialized message in str into this message instance using numpy for array types 00391 @param str: byte array of serialized message 00392 @type str: str 00393 @param numpy: numpy python module 00394 @type numpy: module 00395 """ 00396 try: 00397 end = 0 00398 return self 00399 except struct.error as e: 00400 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00401 00402 _struct_I = roslib.message.struct_I 00403 class SetPointMap(roslib.message.ServiceDefinition): 00404 _type = 'cob_3d_mapping_msgs/SetPointMap' 00405 _md5sum = 'b84fbb39505086eb6a62d933c75cb7b4' 00406 _request_class = SetPointMapRequest 00407 _response_class = SetPointMapResponse