$search
00001 """autogenerated by genmsg_py from SetStaticTransformRequest.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 SetStaticTransformRequest(roslib.message.Message): 00009 _md5sum = "627ebb4e09bbb127f87308bbfdbaec08" 00010 _type = "static_transform_broadcaster/SetStaticTransformRequest" 00011 _has_header = False #flag to mark the presence of a Header object 00012 _full_text = """ 00013 00014 00015 00016 00017 geometry_msgs/TransformStamped transform 00018 00019 00020 ================================================================================ 00021 MSG: geometry_msgs/TransformStamped 00022 # This expresses a transform from coordinate frame header.frame_id 00023 # to the coordinate frame child_frame_id 00024 # 00025 # This message is mostly used by the 00026 # <a href="http://www.ros.org/wiki/tf">tf</a> package. 00027 # See it's documentation for more information. 00028 00029 Header header 00030 string child_frame_id # the frame id of the child frame 00031 Transform transform 00032 00033 ================================================================================ 00034 MSG: std_msgs/Header 00035 # Standard metadata for higher-level stamped data types. 00036 # This is generally used to communicate timestamped data 00037 # in a particular coordinate frame. 00038 # 00039 # sequence ID: consecutively increasing ID 00040 uint32 seq 00041 #Two-integer timestamp that is expressed as: 00042 # * stamp.secs: seconds (stamp_secs) since epoch 00043 # * stamp.nsecs: nanoseconds since stamp_secs 00044 # time-handling sugar is provided by the client library 00045 time stamp 00046 #Frame this data is associated with 00047 # 0: no frame 00048 # 1: global frame 00049 string frame_id 00050 00051 ================================================================================ 00052 MSG: geometry_msgs/Transform 00053 # This represents the transform between two coordinate frames in free space. 00054 00055 Vector3 translation 00056 Quaternion rotation 00057 00058 ================================================================================ 00059 MSG: geometry_msgs/Vector3 00060 # This represents a vector in free space. 00061 00062 float64 x 00063 float64 y 00064 float64 z 00065 ================================================================================ 00066 MSG: geometry_msgs/Quaternion 00067 # This represents an orientation in free space in quaternion form. 00068 00069 float64 x 00070 float64 y 00071 float64 z 00072 float64 w 00073 00074 """ 00075 __slots__ = ['transform'] 00076 _slot_types = ['geometry_msgs/TransformStamped'] 00077 00078 def __init__(self, *args, **kwds): 00079 """ 00080 Constructor. Any message fields that are implicitly/explicitly 00081 set to None will be assigned a default value. The recommend 00082 use is keyword arguments as this is more robust to future message 00083 changes. You cannot mix in-order arguments and keyword arguments. 00084 00085 The available fields are: 00086 transform 00087 00088 @param args: complete set of field values, in .msg order 00089 @param kwds: use keyword arguments corresponding to message field names 00090 to set specific fields. 00091 """ 00092 if args or kwds: 00093 super(SetStaticTransformRequest, self).__init__(*args, **kwds) 00094 #message fields cannot be None, assign default values for those that are 00095 if self.transform is None: 00096 self.transform = geometry_msgs.msg.TransformStamped() 00097 else: 00098 self.transform = geometry_msgs.msg.TransformStamped() 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.transform.header.seq, _x.transform.header.stamp.secs, _x.transform.header.stamp.nsecs)) 00115 _x = self.transform.header.frame_id 00116 length = len(_x) 00117 buff.write(struct.pack('<I%ss'%length, length, _x)) 00118 _x = self.transform.child_frame_id 00119 length = len(_x) 00120 buff.write(struct.pack('<I%ss'%length, length, _x)) 00121 _x = self 00122 buff.write(_struct_7d.pack(_x.transform.transform.translation.x, _x.transform.transform.translation.y, _x.transform.transform.translation.z, _x.transform.transform.rotation.x, _x.transform.transform.rotation.y, _x.transform.transform.rotation.z, _x.transform.transform.rotation.w)) 00123 except struct.error as se: self._check_types(se) 00124 except TypeError as te: self._check_types(te) 00125 00126 def deserialize(self, str): 00127 """ 00128 unpack serialized message in str into this message instance 00129 @param str: byte array of serialized message 00130 @type str: str 00131 """ 00132 try: 00133 if self.transform is None: 00134 self.transform = geometry_msgs.msg.TransformStamped() 00135 end = 0 00136 _x = self 00137 start = end 00138 end += 12 00139 (_x.transform.header.seq, _x.transform.header.stamp.secs, _x.transform.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00140 start = end 00141 end += 4 00142 (length,) = _struct_I.unpack(str[start:end]) 00143 start = end 00144 end += length 00145 self.transform.header.frame_id = str[start:end] 00146 start = end 00147 end += 4 00148 (length,) = _struct_I.unpack(str[start:end]) 00149 start = end 00150 end += length 00151 self.transform.child_frame_id = str[start:end] 00152 _x = self 00153 start = end 00154 end += 56 00155 (_x.transform.transform.translation.x, _x.transform.transform.translation.y, _x.transform.transform.translation.z, _x.transform.transform.rotation.x, _x.transform.transform.rotation.y, _x.transform.transform.rotation.z, _x.transform.transform.rotation.w,) = _struct_7d.unpack(str[start:end]) 00156 return self 00157 except struct.error as e: 00158 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00159 00160 00161 def serialize_numpy(self, buff, numpy): 00162 """ 00163 serialize message with numpy array types into buffer 00164 @param buff: buffer 00165 @type buff: StringIO 00166 @param numpy: numpy python module 00167 @type numpy module 00168 """ 00169 try: 00170 _x = self 00171 buff.write(_struct_3I.pack(_x.transform.header.seq, _x.transform.header.stamp.secs, _x.transform.header.stamp.nsecs)) 00172 _x = self.transform.header.frame_id 00173 length = len(_x) 00174 buff.write(struct.pack('<I%ss'%length, length, _x)) 00175 _x = self.transform.child_frame_id 00176 length = len(_x) 00177 buff.write(struct.pack('<I%ss'%length, length, _x)) 00178 _x = self 00179 buff.write(_struct_7d.pack(_x.transform.transform.translation.x, _x.transform.transform.translation.y, _x.transform.transform.translation.z, _x.transform.transform.rotation.x, _x.transform.transform.rotation.y, _x.transform.transform.rotation.z, _x.transform.transform.rotation.w)) 00180 except struct.error as se: self._check_types(se) 00181 except TypeError as te: self._check_types(te) 00182 00183 def deserialize_numpy(self, str, numpy): 00184 """ 00185 unpack serialized message in str into this message instance using numpy for array types 00186 @param str: byte array of serialized message 00187 @type str: str 00188 @param numpy: numpy python module 00189 @type numpy: module 00190 """ 00191 try: 00192 if self.transform is None: 00193 self.transform = geometry_msgs.msg.TransformStamped() 00194 end = 0 00195 _x = self 00196 start = end 00197 end += 12 00198 (_x.transform.header.seq, _x.transform.header.stamp.secs, _x.transform.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00199 start = end 00200 end += 4 00201 (length,) = _struct_I.unpack(str[start:end]) 00202 start = end 00203 end += length 00204 self.transform.header.frame_id = str[start:end] 00205 start = end 00206 end += 4 00207 (length,) = _struct_I.unpack(str[start:end]) 00208 start = end 00209 end += length 00210 self.transform.child_frame_id = str[start:end] 00211 _x = self 00212 start = end 00213 end += 56 00214 (_x.transform.transform.translation.x, _x.transform.transform.translation.y, _x.transform.transform.translation.z, _x.transform.transform.rotation.x, _x.transform.transform.rotation.y, _x.transform.transform.rotation.z, _x.transform.transform.rotation.w,) = _struct_7d.unpack(str[start:end]) 00215 return self 00216 except struct.error as e: 00217 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00218 00219 _struct_I = roslib.message.struct_I 00220 _struct_3I = struct.Struct("<3I") 00221 _struct_7d = struct.Struct("<7d") 00222 """autogenerated by genmsg_py from SetStaticTransformResponse.msg. Do not edit.""" 00223 import roslib.message 00224 import struct 00225 00226 00227 class SetStaticTransformResponse(roslib.message.Message): 00228 _md5sum = "d41d8cd98f00b204e9800998ecf8427e" 00229 _type = "static_transform_broadcaster/SetStaticTransformResponse" 00230 _has_header = False #flag to mark the presence of a Header object 00231 _full_text = """ 00232 00233 00234 """ 00235 __slots__ = [] 00236 _slot_types = [] 00237 00238 def __init__(self, *args, **kwds): 00239 """ 00240 Constructor. Any message fields that are implicitly/explicitly 00241 set to None will be assigned a default value. The recommend 00242 use is keyword arguments as this is more robust to future message 00243 changes. You cannot mix in-order arguments and keyword arguments. 00244 00245 The available fields are: 00246 00247 00248 @param args: complete set of field values, in .msg order 00249 @param kwds: use keyword arguments corresponding to message field names 00250 to set specific fields. 00251 """ 00252 if args or kwds: 00253 super(SetStaticTransformResponse, self).__init__(*args, **kwds) 00254 00255 def _get_types(self): 00256 """ 00257 internal API method 00258 """ 00259 return self._slot_types 00260 00261 def serialize(self, buff): 00262 """ 00263 serialize message into buffer 00264 @param buff: buffer 00265 @type buff: StringIO 00266 """ 00267 try: 00268 pass 00269 except struct.error as se: self._check_types(se) 00270 except TypeError as te: self._check_types(te) 00271 00272 def deserialize(self, str): 00273 """ 00274 unpack serialized message in str into this message instance 00275 @param str: byte array of serialized message 00276 @type str: str 00277 """ 00278 try: 00279 end = 0 00280 return self 00281 except struct.error as e: 00282 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00283 00284 00285 def serialize_numpy(self, buff, numpy): 00286 """ 00287 serialize message with numpy array types into buffer 00288 @param buff: buffer 00289 @type buff: StringIO 00290 @param numpy: numpy python module 00291 @type numpy module 00292 """ 00293 try: 00294 pass 00295 except struct.error as se: self._check_types(se) 00296 except TypeError as te: self._check_types(te) 00297 00298 def deserialize_numpy(self, str, numpy): 00299 """ 00300 unpack serialized message in str into this message instance using numpy for array types 00301 @param str: byte array of serialized message 00302 @type str: str 00303 @param numpy: numpy python module 00304 @type numpy: module 00305 """ 00306 try: 00307 end = 0 00308 return self 00309 except struct.error as e: 00310 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00311 00312 _struct_I = roslib.message.struct_I 00313 class SetStaticTransform(roslib.message.ServiceDefinition): 00314 _type = 'static_transform_broadcaster/SetStaticTransform' 00315 _md5sum = '627ebb4e09bbb127f87308bbfdbaec08' 00316 _request_class = SetStaticTransformRequest 00317 _response_class = SetStaticTransformResponse