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