$search
00001 """autogenerated by genmsg_py from LookupTransformActionGoal.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import roslib.rostime 00006 import actionlib_msgs.msg 00007 import tf2_msgs.msg 00008 import std_msgs.msg 00009 00010 class LookupTransformActionGoal(roslib.message.Message): 00011 _md5sum = "f2e7bcdb75c847978d0351a13e699da5" 00012 _type = "tf2_msgs/LookupTransformActionGoal" 00013 _has_header = True #flag to mark the presence of a Header object 00014 _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00015 00016 Header header 00017 actionlib_msgs/GoalID goal_id 00018 LookupTransformGoal goal 00019 00020 ================================================================================ 00021 MSG: std_msgs/Header 00022 # Standard metadata for higher-level stamped data types. 00023 # This is generally used to communicate timestamped data 00024 # in a particular coordinate frame. 00025 # 00026 # sequence ID: consecutively increasing ID 00027 uint32 seq 00028 #Two-integer timestamp that is expressed as: 00029 # * stamp.secs: seconds (stamp_secs) since epoch 00030 # * stamp.nsecs: nanoseconds since stamp_secs 00031 # time-handling sugar is provided by the client library 00032 time stamp 00033 #Frame this data is associated with 00034 # 0: no frame 00035 # 1: global frame 00036 string frame_id 00037 00038 ================================================================================ 00039 MSG: actionlib_msgs/GoalID 00040 # The stamp should store the time at which this goal was requested. 00041 # It is used by an action server when it tries to preempt all 00042 # goals that were requested before a certain time 00043 time stamp 00044 00045 # The id provides a way to associate feedback and 00046 # result message with specific goal requests. The id 00047 # specified must be unique. 00048 string id 00049 00050 00051 ================================================================================ 00052 MSG: tf2_msgs/LookupTransformGoal 00053 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00054 #Simple API 00055 string target_frame 00056 string source_frame 00057 time source_time 00058 duration timeout 00059 00060 #Advanced API 00061 time target_time 00062 string fixed_frame 00063 00064 #Whether or not to use the advanced API 00065 bool advanced 00066 00067 00068 """ 00069 __slots__ = ['header','goal_id','goal'] 00070 _slot_types = ['Header','actionlib_msgs/GoalID','tf2_msgs/LookupTransformGoal'] 00071 00072 def __init__(self, *args, **kwds): 00073 """ 00074 Constructor. Any message fields that are implicitly/explicitly 00075 set to None will be assigned a default value. The recommend 00076 use is keyword arguments as this is more robust to future message 00077 changes. You cannot mix in-order arguments and keyword arguments. 00078 00079 The available fields are: 00080 header,goal_id,goal 00081 00082 @param args: complete set of field values, in .msg order 00083 @param kwds: use keyword arguments corresponding to message field names 00084 to set specific fields. 00085 """ 00086 if args or kwds: 00087 super(LookupTransformActionGoal, self).__init__(*args, **kwds) 00088 #message fields cannot be None, assign default values for those that are 00089 if self.header is None: 00090 self.header = std_msgs.msg._Header.Header() 00091 if self.goal_id is None: 00092 self.goal_id = actionlib_msgs.msg.GoalID() 00093 if self.goal is None: 00094 self.goal = tf2_msgs.msg.LookupTransformGoal() 00095 else: 00096 self.header = std_msgs.msg._Header.Header() 00097 self.goal_id = actionlib_msgs.msg.GoalID() 00098 self.goal = tf2_msgs.msg.LookupTransformGoal() 00099 00100 def _get_types(self): 00101 """ 00102 internal API method 00103 """ 00104 return self._slot_types 00105 00106 def serialize(self, buff): 00107 """ 00108 serialize message into buffer 00109 @param buff: buffer 00110 @type buff: StringIO 00111 """ 00112 try: 00113 _x = self 00114 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs)) 00115 _x = self.header.frame_id 00116 length = len(_x) 00117 buff.write(struct.pack('<I%ss'%length, length, _x)) 00118 _x = self 00119 buff.write(_struct_2I.pack(_x.goal_id.stamp.secs, _x.goal_id.stamp.nsecs)) 00120 _x = self.goal_id.id 00121 length = len(_x) 00122 buff.write(struct.pack('<I%ss'%length, length, _x)) 00123 _x = self.goal.target_frame 00124 length = len(_x) 00125 buff.write(struct.pack('<I%ss'%length, length, _x)) 00126 _x = self.goal.source_frame 00127 length = len(_x) 00128 buff.write(struct.pack('<I%ss'%length, length, _x)) 00129 _x = self 00130 buff.write(_struct_2I2i2I.pack(_x.goal.source_time.secs, _x.goal.source_time.nsecs, _x.goal.timeout.secs, _x.goal.timeout.nsecs, _x.goal.target_time.secs, _x.goal.target_time.nsecs)) 00131 _x = self.goal.fixed_frame 00132 length = len(_x) 00133 buff.write(struct.pack('<I%ss'%length, length, _x)) 00134 buff.write(_struct_B.pack(self.goal.advanced)) 00135 except struct.error as se: self._check_types(se) 00136 except TypeError as 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 if self.goal_id is None: 00148 self.goal_id = actionlib_msgs.msg.GoalID() 00149 if self.goal is None: 00150 self.goal = tf2_msgs.msg.LookupTransformGoal() 00151 end = 0 00152 _x = self 00153 start = end 00154 end += 12 00155 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00156 start = end 00157 end += 4 00158 (length,) = _struct_I.unpack(str[start:end]) 00159 start = end 00160 end += length 00161 self.header.frame_id = str[start:end] 00162 _x = self 00163 start = end 00164 end += 8 00165 (_x.goal_id.stamp.secs, _x.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00166 start = end 00167 end += 4 00168 (length,) = _struct_I.unpack(str[start:end]) 00169 start = end 00170 end += length 00171 self.goal_id.id = str[start:end] 00172 start = end 00173 end += 4 00174 (length,) = _struct_I.unpack(str[start:end]) 00175 start = end 00176 end += length 00177 self.goal.target_frame = str[start:end] 00178 start = end 00179 end += 4 00180 (length,) = _struct_I.unpack(str[start:end]) 00181 start = end 00182 end += length 00183 self.goal.source_frame = str[start:end] 00184 _x = self 00185 start = end 00186 end += 24 00187 (_x.goal.source_time.secs, _x.goal.source_time.nsecs, _x.goal.timeout.secs, _x.goal.timeout.nsecs, _x.goal.target_time.secs, _x.goal.target_time.nsecs,) = _struct_2I2i2I.unpack(str[start:end]) 00188 start = end 00189 end += 4 00190 (length,) = _struct_I.unpack(str[start:end]) 00191 start = end 00192 end += length 00193 self.goal.fixed_frame = str[start:end] 00194 start = end 00195 end += 1 00196 (self.goal.advanced,) = _struct_B.unpack(str[start:end]) 00197 self.goal.advanced = bool(self.goal.advanced) 00198 return self 00199 except struct.error as e: 00200 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00201 00202 00203 def serialize_numpy(self, buff, numpy): 00204 """ 00205 serialize message with numpy array types into buffer 00206 @param buff: buffer 00207 @type buff: StringIO 00208 @param numpy: numpy python module 00209 @type numpy module 00210 """ 00211 try: 00212 _x = self 00213 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs)) 00214 _x = self.header.frame_id 00215 length = len(_x) 00216 buff.write(struct.pack('<I%ss'%length, length, _x)) 00217 _x = self 00218 buff.write(_struct_2I.pack(_x.goal_id.stamp.secs, _x.goal_id.stamp.nsecs)) 00219 _x = self.goal_id.id 00220 length = len(_x) 00221 buff.write(struct.pack('<I%ss'%length, length, _x)) 00222 _x = self.goal.target_frame 00223 length = len(_x) 00224 buff.write(struct.pack('<I%ss'%length, length, _x)) 00225 _x = self.goal.source_frame 00226 length = len(_x) 00227 buff.write(struct.pack('<I%ss'%length, length, _x)) 00228 _x = self 00229 buff.write(_struct_2I2i2I.pack(_x.goal.source_time.secs, _x.goal.source_time.nsecs, _x.goal.timeout.secs, _x.goal.timeout.nsecs, _x.goal.target_time.secs, _x.goal.target_time.nsecs)) 00230 _x = self.goal.fixed_frame 00231 length = len(_x) 00232 buff.write(struct.pack('<I%ss'%length, length, _x)) 00233 buff.write(_struct_B.pack(self.goal.advanced)) 00234 except struct.error as se: self._check_types(se) 00235 except TypeError as te: self._check_types(te) 00236 00237 def deserialize_numpy(self, str, numpy): 00238 """ 00239 unpack serialized message in str into this message instance using numpy for array types 00240 @param str: byte array of serialized message 00241 @type str: str 00242 @param numpy: numpy python module 00243 @type numpy: module 00244 """ 00245 try: 00246 if self.header is None: 00247 self.header = std_msgs.msg._Header.Header() 00248 if self.goal_id is None: 00249 self.goal_id = actionlib_msgs.msg.GoalID() 00250 if self.goal is None: 00251 self.goal = tf2_msgs.msg.LookupTransformGoal() 00252 end = 0 00253 _x = self 00254 start = end 00255 end += 12 00256 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00257 start = end 00258 end += 4 00259 (length,) = _struct_I.unpack(str[start:end]) 00260 start = end 00261 end += length 00262 self.header.frame_id = str[start:end] 00263 _x = self 00264 start = end 00265 end += 8 00266 (_x.goal_id.stamp.secs, _x.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00267 start = end 00268 end += 4 00269 (length,) = _struct_I.unpack(str[start:end]) 00270 start = end 00271 end += length 00272 self.goal_id.id = str[start:end] 00273 start = end 00274 end += 4 00275 (length,) = _struct_I.unpack(str[start:end]) 00276 start = end 00277 end += length 00278 self.goal.target_frame = str[start:end] 00279 start = end 00280 end += 4 00281 (length,) = _struct_I.unpack(str[start:end]) 00282 start = end 00283 end += length 00284 self.goal.source_frame = str[start:end] 00285 _x = self 00286 start = end 00287 end += 24 00288 (_x.goal.source_time.secs, _x.goal.source_time.nsecs, _x.goal.timeout.secs, _x.goal.timeout.nsecs, _x.goal.target_time.secs, _x.goal.target_time.nsecs,) = _struct_2I2i2I.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.goal.fixed_frame = str[start:end] 00295 start = end 00296 end += 1 00297 (self.goal.advanced,) = _struct_B.unpack(str[start:end]) 00298 self.goal.advanced = bool(self.goal.advanced) 00299 return self 00300 except struct.error as e: 00301 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00302 00303 _struct_I = roslib.message.struct_I 00304 _struct_3I = struct.Struct("<3I") 00305 _struct_B = struct.Struct("<B") 00306 _struct_2I = struct.Struct("<2I") 00307 _struct_2I2i2I = struct.Struct("<2I2i2I")