$search
00001 """autogenerated by genmsg_py from DetectWallRequest.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 00006 class DetectWallRequest(roslib.message.Message): 00007 _md5sum = "d41d8cd98f00b204e9800998ecf8427e" 00008 _type = "stereo_wall_detection/DetectWallRequest" 00009 _has_header = False #flag to mark the presence of a Header object 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(DetectWallRequest, 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 as se: self._check_types(se) 00047 except TypeError as 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 as e: 00059 raise roslib.message.DeserializationError(e) #most likely buffer underfill 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 as se: self._check_types(se) 00073 except TypeError as 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 as e: 00087 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00088 00089 _struct_I = roslib.message.struct_I 00090 """autogenerated by genmsg_py from DetectWallResponse.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 DetectWallResponse(roslib.message.Message): 00098 _md5sum = "a6870b3c0e483b78cb98aac96d566717" 00099 _type = "stereo_wall_detection/DetectWallResponse" 00100 _has_header = False #flag to mark the presence of a Header object 00101 _full_text = """geometry_msgs/PointStamped wall_point 00102 geometry_msgs/Vector3Stamped wall_norm 00103 00104 00105 ================================================================================ 00106 MSG: geometry_msgs/PointStamped 00107 # This represents a Point with reference coordinate frame and timestamp 00108 Header header 00109 Point point 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/Point 00131 # This contains the position of a point in free space 00132 float64 x 00133 float64 y 00134 float64 z 00135 00136 ================================================================================ 00137 MSG: geometry_msgs/Vector3Stamped 00138 # This represents a Vector3 with reference coordinate frame and timestamp 00139 Header header 00140 Vector3 vector 00141 00142 ================================================================================ 00143 MSG: geometry_msgs/Vector3 00144 # This represents a vector in free space. 00145 00146 float64 x 00147 float64 y 00148 float64 z 00149 """ 00150 __slots__ = ['wall_point','wall_norm'] 00151 _slot_types = ['geometry_msgs/PointStamped','geometry_msgs/Vector3Stamped'] 00152 00153 def __init__(self, *args, **kwds): 00154 """ 00155 Constructor. Any message fields that are implicitly/explicitly 00156 set to None will be assigned a default value. The recommend 00157 use is keyword arguments as this is more robust to future message 00158 changes. You cannot mix in-order arguments and keyword arguments. 00159 00160 The available fields are: 00161 wall_point,wall_norm 00162 00163 @param args: complete set of field values, in .msg order 00164 @param kwds: use keyword arguments corresponding to message field names 00165 to set specific fields. 00166 """ 00167 if args or kwds: 00168 super(DetectWallResponse, self).__init__(*args, **kwds) 00169 #message fields cannot be None, assign default values for those that are 00170 if self.wall_point is None: 00171 self.wall_point = geometry_msgs.msg.PointStamped() 00172 if self.wall_norm is None: 00173 self.wall_norm = geometry_msgs.msg.Vector3Stamped() 00174 else: 00175 self.wall_point = geometry_msgs.msg.PointStamped() 00176 self.wall_norm = geometry_msgs.msg.Vector3Stamped() 00177 00178 def _get_types(self): 00179 """ 00180 internal API method 00181 """ 00182 return self._slot_types 00183 00184 def serialize(self, buff): 00185 """ 00186 serialize message into buffer 00187 @param buff: buffer 00188 @type buff: StringIO 00189 """ 00190 try: 00191 _x = self 00192 buff.write(_struct_3I.pack(_x.wall_point.header.seq, _x.wall_point.header.stamp.secs, _x.wall_point.header.stamp.nsecs)) 00193 _x = self.wall_point.header.frame_id 00194 length = len(_x) 00195 buff.write(struct.pack('<I%ss'%length, length, _x)) 00196 _x = self 00197 buff.write(_struct_3d3I.pack(_x.wall_point.point.x, _x.wall_point.point.y, _x.wall_point.point.z, _x.wall_norm.header.seq, _x.wall_norm.header.stamp.secs, _x.wall_norm.header.stamp.nsecs)) 00198 _x = self.wall_norm.header.frame_id 00199 length = len(_x) 00200 buff.write(struct.pack('<I%ss'%length, length, _x)) 00201 _x = self 00202 buff.write(_struct_3d.pack(_x.wall_norm.vector.x, _x.wall_norm.vector.y, _x.wall_norm.vector.z)) 00203 except struct.error as se: self._check_types(se) 00204 except TypeError as te: self._check_types(te) 00205 00206 def deserialize(self, str): 00207 """ 00208 unpack serialized message in str into this message instance 00209 @param str: byte array of serialized message 00210 @type str: str 00211 """ 00212 try: 00213 if self.wall_point is None: 00214 self.wall_point = geometry_msgs.msg.PointStamped() 00215 if self.wall_norm is None: 00216 self.wall_norm = geometry_msgs.msg.Vector3Stamped() 00217 end = 0 00218 _x = self 00219 start = end 00220 end += 12 00221 (_x.wall_point.header.seq, _x.wall_point.header.stamp.secs, _x.wall_point.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00222 start = end 00223 end += 4 00224 (length,) = _struct_I.unpack(str[start:end]) 00225 start = end 00226 end += length 00227 self.wall_point.header.frame_id = str[start:end] 00228 _x = self 00229 start = end 00230 end += 36 00231 (_x.wall_point.point.x, _x.wall_point.point.y, _x.wall_point.point.z, _x.wall_norm.header.seq, _x.wall_norm.header.stamp.secs, _x.wall_norm.header.stamp.nsecs,) = _struct_3d3I.unpack(str[start:end]) 00232 start = end 00233 end += 4 00234 (length,) = _struct_I.unpack(str[start:end]) 00235 start = end 00236 end += length 00237 self.wall_norm.header.frame_id = str[start:end] 00238 _x = self 00239 start = end 00240 end += 24 00241 (_x.wall_norm.vector.x, _x.wall_norm.vector.y, _x.wall_norm.vector.z,) = _struct_3d.unpack(str[start:end]) 00242 return self 00243 except struct.error as e: 00244 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00245 00246 00247 def serialize_numpy(self, buff, numpy): 00248 """ 00249 serialize message with numpy array types into buffer 00250 @param buff: buffer 00251 @type buff: StringIO 00252 @param numpy: numpy python module 00253 @type numpy module 00254 """ 00255 try: 00256 _x = self 00257 buff.write(_struct_3I.pack(_x.wall_point.header.seq, _x.wall_point.header.stamp.secs, _x.wall_point.header.stamp.nsecs)) 00258 _x = self.wall_point.header.frame_id 00259 length = len(_x) 00260 buff.write(struct.pack('<I%ss'%length, length, _x)) 00261 _x = self 00262 buff.write(_struct_3d3I.pack(_x.wall_point.point.x, _x.wall_point.point.y, _x.wall_point.point.z, _x.wall_norm.header.seq, _x.wall_norm.header.stamp.secs, _x.wall_norm.header.stamp.nsecs)) 00263 _x = self.wall_norm.header.frame_id 00264 length = len(_x) 00265 buff.write(struct.pack('<I%ss'%length, length, _x)) 00266 _x = self 00267 buff.write(_struct_3d.pack(_x.wall_norm.vector.x, _x.wall_norm.vector.y, _x.wall_norm.vector.z)) 00268 except struct.error as se: self._check_types(se) 00269 except TypeError as te: self._check_types(te) 00270 00271 def deserialize_numpy(self, str, numpy): 00272 """ 00273 unpack serialized message in str into this message instance using numpy for array types 00274 @param str: byte array of serialized message 00275 @type str: str 00276 @param numpy: numpy python module 00277 @type numpy: module 00278 """ 00279 try: 00280 if self.wall_point is None: 00281 self.wall_point = geometry_msgs.msg.PointStamped() 00282 if self.wall_norm is None: 00283 self.wall_norm = geometry_msgs.msg.Vector3Stamped() 00284 end = 0 00285 _x = self 00286 start = end 00287 end += 12 00288 (_x.wall_point.header.seq, _x.wall_point.header.stamp.secs, _x.wall_point.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00289 start = end 00290 end += 4 00291 (length,) = _struct_I.unpack(str[start:end]) 00292 start = end 00293 end += length 00294 self.wall_point.header.frame_id = str[start:end] 00295 _x = self 00296 start = end 00297 end += 36 00298 (_x.wall_point.point.x, _x.wall_point.point.y, _x.wall_point.point.z, _x.wall_norm.header.seq, _x.wall_norm.header.stamp.secs, _x.wall_norm.header.stamp.nsecs,) = _struct_3d3I.unpack(str[start:end]) 00299 start = end 00300 end += 4 00301 (length,) = _struct_I.unpack(str[start:end]) 00302 start = end 00303 end += length 00304 self.wall_norm.header.frame_id = str[start:end] 00305 _x = self 00306 start = end 00307 end += 24 00308 (_x.wall_norm.vector.x, _x.wall_norm.vector.y, _x.wall_norm.vector.z,) = _struct_3d.unpack(str[start:end]) 00309 return self 00310 except struct.error as e: 00311 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00312 00313 _struct_I = roslib.message.struct_I 00314 _struct_3d3I = struct.Struct("<3d3I") 00315 _struct_3I = struct.Struct("<3I") 00316 _struct_3d = struct.Struct("<3d") 00317 class DetectWall(roslib.message.ServiceDefinition): 00318 _type = 'stereo_wall_detection/DetectWall' 00319 _md5sum = 'a6870b3c0e483b78cb98aac96d566717' 00320 _request_class = DetectWallRequest 00321 _response_class = DetectWallResponse