00001 """autogenerated by genmsg_py from ConfigActionGoal.msg. Do not edit."""
00002 import roslib.message
00003 import struct
00004
00005 import interval_intersection.msg
00006 import roslib.rostime
00007 import actionlib_msgs.msg
00008 import std_msgs.msg
00009
00010 class ConfigActionGoal(roslib.message.Message):
00011 _md5sum = "3b9fc6a01b069b3d8598f7752ccdee82"
00012 _type = "interval_intersection/ConfigActionGoal"
00013 _has_header = True
00014 _full_text = """
00015 Header header
00016 actionlib_msgs/GoalID goal_id
00017 ConfigGoal goal
00018
00019 ================================================================================
00020 MSG: std_msgs/Header
00021 # Standard metadata for higher-level stamped data types.
00022 # This is generally used to communicate timestamped data
00023 # in a particular coordinate frame.
00024 #
00025 # sequence ID: consecutively increasing ID
00026 uint32 seq
00027 #Two-integer timestamp that is expressed as:
00028 # * stamp.secs: seconds (stamp_secs) since epoch
00029 # * stamp.nsecs: nanoseconds since stamp_secs
00030 # time-handling sugar is provided by the client library
00031 time stamp
00032 #Frame this data is associated with
00033 # 0: no frame
00034 # 1: global frame
00035 string frame_id
00036
00037 ================================================================================
00038 MSG: actionlib_msgs/GoalID
00039 # The stamp should store the time at which this goal was requested.
00040 # It is used by an action server when it tries to preempt all
00041 # goals that were requested before a certain time
00042 time stamp
00043
00044 # The id provides a way to associate feedback and
00045 # result message with specific goal requests. The id
00046 # specified must be unique.
00047 string id
00048
00049
00050 ================================================================================
00051 MSG: interval_intersection/ConfigGoal
00052 string[] topics
00053
00054 """
00055 __slots__ = ['header','goal_id','goal']
00056 _slot_types = ['Header','actionlib_msgs/GoalID','interval_intersection/ConfigGoal']
00057
00058 def __init__(self, *args, **kwds):
00059 """
00060 Constructor. Any message fields that are implicitly/explicitly
00061 set to None will be assigned a default value. The recommend
00062 use is keyword arguments as this is more robust to future message
00063 changes. You cannot mix in-order arguments and keyword arguments.
00064
00065 The available fields are:
00066 header,goal_id,goal
00067
00068 @param args: complete set of field values, in .msg order
00069 @param kwds: use keyword arguments corresponding to message field names
00070 to set specific fields.
00071 """
00072 if args or kwds:
00073 super(ConfigActionGoal, self).__init__(*args, **kwds)
00074
00075 if self.header is None:
00076 self.header = std_msgs.msg._Header.Header()
00077 if self.goal_id is None:
00078 self.goal_id = actionlib_msgs.msg.GoalID()
00079 if self.goal is None:
00080 self.goal = interval_intersection.msg.ConfigGoal()
00081 else:
00082 self.header = std_msgs.msg._Header.Header()
00083 self.goal_id = actionlib_msgs.msg.GoalID()
00084 self.goal = interval_intersection.msg.ConfigGoal()
00085
00086 def _get_types(self):
00087 """
00088 internal API method
00089 """
00090 return self._slot_types
00091
00092 def serialize(self, buff):
00093 """
00094 serialize message into buffer
00095 @param buff: buffer
00096 @type buff: StringIO
00097 """
00098 try:
00099 _x = self
00100 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00101 _x = self.header.frame_id
00102 length = len(_x)
00103 buff.write(struct.pack('<I%ss'%length, length, _x))
00104 _x = self
00105 buff.write(_struct_2I.pack(_x.goal_id.stamp.secs, _x.goal_id.stamp.nsecs))
00106 _x = self.goal_id.id
00107 length = len(_x)
00108 buff.write(struct.pack('<I%ss'%length, length, _x))
00109 length = len(self.goal.topics)
00110 buff.write(_struct_I.pack(length))
00111 for val1 in self.goal.topics:
00112 length = len(val1)
00113 buff.write(struct.pack('<I%ss'%length, length, val1))
00114 except struct.error, se: self._check_types(se)
00115 except TypeError, te: self._check_types(te)
00116
00117 def deserialize(self, str):
00118 """
00119 unpack serialized message in str into this message instance
00120 @param str: byte array of serialized message
00121 @type str: str
00122 """
00123 try:
00124 if self.header is None:
00125 self.header = std_msgs.msg._Header.Header()
00126 if self.goal_id is None:
00127 self.goal_id = actionlib_msgs.msg.GoalID()
00128 if self.goal is None:
00129 self.goal = interval_intersection.msg.ConfigGoal()
00130 end = 0
00131 _x = self
00132 start = end
00133 end += 12
00134 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00135 start = end
00136 end += 4
00137 (length,) = _struct_I.unpack(str[start:end])
00138 start = end
00139 end += length
00140 self.header.frame_id = str[start:end]
00141 _x = self
00142 start = end
00143 end += 8
00144 (_x.goal_id.stamp.secs, _x.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00145 start = end
00146 end += 4
00147 (length,) = _struct_I.unpack(str[start:end])
00148 start = end
00149 end += length
00150 self.goal_id.id = str[start:end]
00151 start = end
00152 end += 4
00153 (length,) = _struct_I.unpack(str[start:end])
00154 self.goal.topics = []
00155 for i in xrange(0, length):
00156 start = end
00157 end += 4
00158 (length,) = _struct_I.unpack(str[start:end])
00159 start = end
00160 end += length
00161 val1 = str[start:end]
00162 self.goal.topics.append(val1)
00163 return self
00164 except struct.error, e:
00165 raise roslib.message.DeserializationError(e)
00166
00167
00168 def serialize_numpy(self, buff, numpy):
00169 """
00170 serialize message with numpy array types into buffer
00171 @param buff: buffer
00172 @type buff: StringIO
00173 @param numpy: numpy python module
00174 @type numpy module
00175 """
00176 try:
00177 _x = self
00178 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00179 _x = self.header.frame_id
00180 length = len(_x)
00181 buff.write(struct.pack('<I%ss'%length, length, _x))
00182 _x = self
00183 buff.write(_struct_2I.pack(_x.goal_id.stamp.secs, _x.goal_id.stamp.nsecs))
00184 _x = self.goal_id.id
00185 length = len(_x)
00186 buff.write(struct.pack('<I%ss'%length, length, _x))
00187 length = len(self.goal.topics)
00188 buff.write(_struct_I.pack(length))
00189 for val1 in self.goal.topics:
00190 length = len(val1)
00191 buff.write(struct.pack('<I%ss'%length, length, val1))
00192 except struct.error, se: self._check_types(se)
00193 except TypeError, te: self._check_types(te)
00194
00195 def deserialize_numpy(self, str, numpy):
00196 """
00197 unpack serialized message in str into this message instance using numpy for array types
00198 @param str: byte array of serialized message
00199 @type str: str
00200 @param numpy: numpy python module
00201 @type numpy: module
00202 """
00203 try:
00204 if self.header is None:
00205 self.header = std_msgs.msg._Header.Header()
00206 if self.goal_id is None:
00207 self.goal_id = actionlib_msgs.msg.GoalID()
00208 if self.goal is None:
00209 self.goal = interval_intersection.msg.ConfigGoal()
00210 end = 0
00211 _x = self
00212 start = end
00213 end += 12
00214 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00215 start = end
00216 end += 4
00217 (length,) = _struct_I.unpack(str[start:end])
00218 start = end
00219 end += length
00220 self.header.frame_id = str[start:end]
00221 _x = self
00222 start = end
00223 end += 8
00224 (_x.goal_id.stamp.secs, _x.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00225 start = end
00226 end += 4
00227 (length,) = _struct_I.unpack(str[start:end])
00228 start = end
00229 end += length
00230 self.goal_id.id = str[start:end]
00231 start = end
00232 end += 4
00233 (length,) = _struct_I.unpack(str[start:end])
00234 self.goal.topics = []
00235 for i in xrange(0, length):
00236 start = end
00237 end += 4
00238 (length,) = _struct_I.unpack(str[start:end])
00239 start = end
00240 end += length
00241 val1 = str[start:end]
00242 self.goal.topics.append(val1)
00243 return self
00244 except struct.error, e:
00245 raise roslib.message.DeserializationError(e)
00246
00247 _struct_I = roslib.message.struct_I
00248 _struct_3I = struct.Struct("<3I")
00249 _struct_2I = struct.Struct("<2I")