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