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