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